You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* replicas - this should match the partition size, so if the size is 3, set this to 3
50
+
- brokerHosts - comma separted list of host:port
51
+
- topics - the topics to subscribe to
52
+
- replicas - this should match the partition size, so if the size is 3, set this to 3
53
53
54
54
Then you will need to read up on the encryption and authentication options and update the settings accordingly.
55
55
@@ -65,46 +65,105 @@ $ helm repo update && \
65
65
66
66
## Encryption options
67
67
68
-
1) TLS off (default)
69
-
2) TLS on
68
+
1. TLS off (default)
69
+
2. TLS on
70
70
71
71
## Authentication options
72
72
73
-
1) TLS with SASL using CA from the default trust store
74
-
3) TLS with SASL using a custom CA
75
-
4) TLS with client certificates
73
+
1. TLS with SASL using CA from the default trust store
74
+
2. TLS with SASL using a custom CA
75
+
3. TLS with client certificates
76
+
77
+
## Async invocations
78
+
79
+
The connector can be configured to invoke function asynchronously. This lets you use [OpenFaaS async](https://docs.openfaas.com/reference/async/) features like retries.
80
+
To prevent the connector from consuming all Kafka messages at once and submitting them to the OpenFaaS async queue a limit on the number of inflight async invocations can be configured.
81
+
82
+
Configure the connector for async invocations:
83
+
84
+
```yaml
85
+
# Invoke functions asynchronously.
86
+
asyncInvocation: true
87
+
88
+
async:
89
+
# Limit the number of inflight async invocations for the connector.
90
+
# A value of 0 indicates no concurrency limit.
91
+
maxInflight: 0
92
+
93
+
# Configure an externally-managed NATS server.
94
+
# NATS is used for async invocations and is required when
95
+
# setting the 'async.maxInflight' parameter to a value other than 0.
96
+
# By default the OpenFaaS embedded nats deployment is used.
97
+
# These values should be identical to the configuration in your OpenFaaS deployment values.yaml file
98
+
# when external nats is enabled.
99
+
nats:
100
+
external:
101
+
enabled: false
102
+
host: ""
103
+
port: ""
104
+
```
105
+
106
+
### Reset the inflight concurrency counter
107
+
108
+
If the inflight counter gets out if sync for some reason, e.g a misconfiguration, network issues, it can be forcefully reset.
109
+
The connecter checks if a Lease object exists on startup and resets the counter if the Lease does not exist.
110
+
111
+
Remove the lease and restart the connector to reset the counter.
0 commit comments