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-disk-backed-message-buffer.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: patricka
6
6
ms.topic: how-to
7
7
ms.service: azure-iot-operations
8
8
ms.subservice: azure-mqtt-broker
9
-
ms.date: 11/04/2024
9
+
ms.date: 11/11/2024
10
10
11
11
#CustomerIntent: As an operator, I want to configure MQTT broker so that I can modify the message queue behavior.
12
12
---
@@ -79,24 +79,33 @@ Tailor the broker message buffer options by adjusting the following settings:
79
79
80
80
-**Configure the volume**: Specify a volume claim template to mount a dedicated storage volume for your message buffer.
81
81
82
-
-**Select a storage class**: Define the desired *StorageClass* using the `storageClassName` property.
82
+
-**Select a storage class**: Define the desired *StorageClass* using the `storageClassName` property.
83
83
84
-
-**Define access modes**: Determine the access modes you need for your volume. For more information, see [persistent volume access modes](https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1).
84
+
-**Define access modes**: Determine the access modes you need for your volume. For more information, see [persistent volume access modes](https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1).
85
85
86
86
Use the following sections to understand the different volume modes:
87
87
88
88
-[Ephemeral volume](#ephemeral-volume) is the preferred option,
89
89
-[Persistent volume](#persistent-volume) is preferred next, and
90
90
-[*`emptyDir`* volume](#emptydir-volume) least preferred.
91
91
92
-
Both persistent volume and ephemeral volume are generally provided by the same storage classes. If you have both options, choose ephemeral. However, ephemeral requires Kubernetes 1.23 or higher.
92
+
Both persistent and ephemeral volumes are generally provided by the same storage classes. If both options are available, choose ephemeral. Note that ephemeral volumes require Kubernetes 1.23 or higher.
93
93
94
-
Finally, deploy the Azure IoT Operations using the `az iot ops create` command with the `--broker-config-file` flag. See the following command (other parameters omitted for brevity):
94
+
> [!TIP]
95
+
> Specifying a Ephemeral Volume Claim (EVC) or Persistent Volume Claim (PVC) template lets you to use a storage class of your choice, increasing flexibility for some deployment scenarios. For example, Persistent Volumes (PVs) provisioned using a PVC template appear in commands like `kubectl get pv`, which can be useful for inspecting the cluster state.
96
+
>
97
+
> If your Kubernetes nodes lack sufficient local disk space for the message buffer, use a storage class that provides network storage like Azure Blobs. However, it's generally better to use local disk with a smaller `maxSize` value, as the message buffer benefits from fast access and doesn't require durability.
98
+
99
+
### Deploy Azure IoT Operations with disk-backed message buffer
100
+
101
+
To use disk-backed message buffer, deploy Azure IoT Operations using the `az iot ops create` command with the `--broker-config-file` flag. See the following command (other parameters omitted for brevity):
95
102
96
103
```azurecli
97
104
az iot ops create ... --broker-config-file <FILE>.json
98
105
```
99
106
107
+
This setting cannot be changed after deployment. To change the disk-backed message buffer configuration, redeploy the Azure IoT Operations instance.
108
+
100
109
## Ephemeral volume
101
110
102
111
[Ephemeral volume](https://kubernetes.io/docs/concepts/storage/ephemeral-volumes#generic-ephemeral-volumes) is the preferred option for your message buffer.
0 commit comments