Skip to content

Commit 441e0cd

Browse files
committed
Tip to explain why specify PVC
1 parent b52e18e commit 441e0cd

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

articles/iot-operations/manage-mqtt-broker/howto-configure-availability-scale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: how-to
77
ms.subservice: azure-mqtt-broker
88
ms.custom:
99
- ignite-2023
10-
ms.date: 11/04/2024
10+
ms.date: 11/11/2024
1111

1212
#CustomerIntent: As an operator, I want to understand the settings for the MQTT broker so that I can configure it for high availability and scale.
1313
ms.service: azure-iot-operations

articles/iot-operations/manage-mqtt-broker/howto-disk-backed-message-buffer.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: patricka
66
ms.topic: how-to
77
ms.service: azure-iot-operations
88
ms.subservice: azure-mqtt-broker
9-
ms.date: 11/04/2024
9+
ms.date: 11/11/2024
1010

1111
#CustomerIntent: As an operator, I want to configure MQTT broker so that I can modify the message queue behavior.
1212
---
@@ -79,24 +79,33 @@ Tailor the broker message buffer options by adjusting the following settings:
7979

8080
- **Configure the volume**: Specify a volume claim template to mount a dedicated storage volume for your message buffer.
8181

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.
8383

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).
8585

8686
Use the following sections to understand the different volume modes:
8787

8888
- [Ephemeral volume](#ephemeral-volume) is the preferred option,
8989
- [Persistent volume](#persistent-volume) is preferred next, and
9090
- [*`emptyDir`* volume](#emptydir-volume) least preferred.
9191

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.
9393

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):
95102

96103
```azurecli
97104
az iot ops create ... --broker-config-file <FILE>.json
98105
```
99106

107+
This setting cannot be changed after deployment. To change the disk-backed message buffer configuration, redeploy the Azure IoT Operations instance.
108+
100109
## Ephemeral volume
101110

102111
[Ephemeral volume](https://kubernetes.io/docs/concepts/storage/ephemeral-volumes#generic-ephemeral-volumes) is the preferred option for your message buffer.

0 commit comments

Comments
 (0)