@itentialopensource/adapter-kafkav2 0.23.1 → 0.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Kafkav2 Adapter
2
2
 
3
- This adapter is used to integrate the Itential Automation Platform (IAP) with the Kafka System. The documenation for kafkajs is available at [https://kafka.js.org/docs/getting-started]. The adapter utilizes the kafkjs library. to provide the integrations that are deemed pertinent to IAP. This ReadMe file is intended to provide information on this adapter.
3
+ This adapter is used to integrate the Itential Automation Platform (IAP) with the Kafka System. The documenation for kafkajs is available at [https://kafka.js.org/docs/getting-started]. The adapter utilizes the kafkjs library to provide the integrations that are deemed pertinent to IAP. This Readme file is intended to provide information on this adapter.
4
4
 
5
5
  >**Note**: It is possible that some integrations will be supported through the Kafka adapter while other integrations will not.
6
6
 
@@ -301,6 +301,14 @@ The following properties are used to define the Kafka Client. These properties a
301
301
  | brokers | kafka broker:port list |
302
302
  | clientId | Client-id is a logical grouping of clients with a meaningful name chosen by the client application |
303
303
  | logLevel | There are 5 log levels available: NOTHING, ERROR, WARN, INFO, and DEBUG. INFO is configured by default |
304
+ | connectionTimeout | Time in milliseconds to wait for a successful connection. The default value is: 1000. |
305
+ | requestTimeout | The request timeout can be disabled by setting enforceRequestTimeout to false. |
306
+ | enforceRequestTimeout | Maximum wait time for a retry in milliseconds. default: 30000 |
307
+ | retry -> maxRetryTime | Maximum wait time for a retry in milliseconds. default: 30000 |
308
+ | retry -> initialRetryTime | Initial value used to calculate the retry in milliseconds (This is still randomized following the randomization factor). default: 300 |
309
+ | retry -> factor | Randomization factor. default: 0.2 |
310
+ | retry -> multiplier | Exponential factor. default: 2 |
311
+ | retry -> retries | Max number of retries per call. default: 5 |
304
312
  | ssl | Object, options to be passed to the tls broker sockets, ex. { rejectUnauthorized: false }.|
305
313
  | sasl | Object, SASL authentication configuration (Currently, supports PLAIN, SCRAM-SHA-256, SCRAM-SHA-512), ex. { mechanism: 'plain', username: 'foo', password: 'bar' }.|
306
314
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kafkav2",
3
- "version": "0.23.1",
3
+ "version": "0.23.3",
4
4
  "description": "Itential adapter to connect to kafka",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.35.0",
@@ -46,7 +46,7 @@
46
46
  "ajv": "^8.17.1",
47
47
  "avro-schema-registry": "^2.1.0",
48
48
  "avsc": "^5.4.21",
49
- "axios": "^1.7.4",
49
+ "axios": "^1.7.9",
50
50
  "fs-extra": "^11.2.0",
51
51
  "json-query": "^2.2.2",
52
52
  "kafkajs": "2.2.3",
@@ -18,6 +18,16 @@
18
18
  ],
19
19
  "clientId": "my-app",
20
20
  "logLevel": "INFO",
21
+ "connectionTimeout": 1000,
22
+ "requestTimeout": 30000,
23
+ "enforceRequestTimeout": true,
24
+ "retry": {
25
+ "maxRetryTime": 30000,
26
+ "initialRetryTime": 300,
27
+ "factor": 0.2,
28
+ "multiplier": 2,
29
+ "retries": 5
30
+ },
21
31
  "ssl": {
22
32
  "enableTrace": true,
23
33
  "ca": "/path/to/crt.pem",
Binary file