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
Copy file name to clipboardExpand all lines: articles/iot-operations/manage-mqtt-broker/howto-configure-availability-scale.md
+77-4Lines changed: 77 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,15 +133,88 @@ Then, run the following command to deploy the broker:
133
133
kubectl apply -f <path-to-yaml-file>
134
134
```
135
135
136
-
## Configure MQTT broker diagnostic settings
136
+
## Configure MQTT broker advanced settings
137
+
138
+
The following table lists the properties of the broker advanced settings that include client configurations, encryption of internal traffic, certificate rotation, and node tolerations.
| internalCerts.duration |`string`| Lifetime of certificate. Must be specified using a *Go**time.Duration* format (h, m, s). For example, 240h for 240 hours and 45m for 45 minutes. |
157
+
| internalCerts.privateKey |`CertManagerPrivateKey`| Configuration of certificate private key |
158
+
| internalCerts.renewBefore |`string`| Duration before renewing a certificate. Must be specified using a *Go**time.Duration* format (h, m, s). For example, 240h for 240 hours and 45m for 45 minutes. |
159
+
| internalCerts.privateKey.algorithm | PrivateKeyAlgorithm | Algorithm for private key |
Here's an example of a *Broker* with advanced settings:
179
+
180
+
```yml
181
+
apiVersion: mq.iotoperations.azure.com/v1beta1
182
+
kind: Broker
183
+
metadata:
184
+
name: broker
185
+
namespace: azure-iot-operations
186
+
spec:
187
+
advanced:
188
+
clients:
189
+
maxSessionExpirySeconds: 282277
190
+
maxMessageExpirySeconds: 1622
191
+
subscriberQueueLimit:
192
+
length: 1000
193
+
strategy: DropOldest
194
+
maxReceiveMaximum: 15000
195
+
maxKeepAliveSeconds: 300
196
+
encryptInternalTraffic: Enabled
197
+
internalCerts:
198
+
duration: 240h
199
+
renewBefore: 45m
200
+
privateKey:
201
+
algorithm: Rsa2048
202
+
rotationPolicy: Always
203
+
tolerations:
204
+
effect: string
205
+
key: string
206
+
operator: Equal
207
+
value: string
208
+
```
137
209
138
-
MQTT broker includes diagnostics that provides metrics for MQTT broker components. Operators can use these metrics to monitor the health of the system. A Prometheus endpoint is provided for metrics from all MQTT broker components including self-test metrics.
210
+
## Configure MQTT broker diagnostic settings
139
211
140
212
Diagnostic settings allow you to enable metrics and tracing for MQTT broker.
141
213
142
214
- Metrics provide information about the resource utilization and throughput of MQTT broker.
143
215
- Tracing provides detailed information about the requests and responses handled by MQTT broker.
144
-
- Adjust the log level of MQTT broker to control the amount and detail of information that is logged. The log level can be set for different components of MQTT broker. The default log level is `info`.
216
+
217
+
To override default diagnostic settings for MQTT broker, update the `spec.diagnostics` section in the *Broker* resource. Adjust the log level to control the amount and detail of information that is logged. The log level can be set for different components of MQTT broker. The default log level is `info`.
145
218
146
219
You can configure diagnostics using the *Broker* custom resource definition (CRD). The following table shows the properties of the broker diagnostic settings and all default values.
147
220
@@ -167,7 +240,7 @@ You can configure diagnostics using the *Broker* custom resource definition (CRD
0 commit comments