A question about emqx cluster core node persistent storage #609
-
I want to deploy emqx cluster on aliyun, adopting the method of core node and copy node. I am more confused because many tutorials give different examples for persistence. For example, in the helm deployment method, you can directly use your own pre-set pvc, in the public cloud platform deployment guide, let us use the specified alibabacloud-cnfs-nas to automatically create pv and pvc, and configure the EMQX persistence task is another way. My problem is that the data persisted by the core node is the node It is enough to mount a pvc shared among them, or they should manage their own. Do you have any suggestions for the persistence of core nodes? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Maybe you can check https://docs.emqx.com/en/emqx-operator/latest/tasks/configure-emqx-persistence.html |
Beta Was this translation helpful? Give feedback.
-
Hi. Instead of creating the new Q&A I thought I will just write here. I followed the configuration above. The problem which I see is as following:
All good so far but if I restart the EMQX (I use SPOT instances, so the restart will happen) - new PVC is created and the PVC will create new PV - instead of the reusing the already created PV. EMQX operator chart version: 2.2.5
My storageClass:
I think I should set the "ensureUniqueDirectory=false" as described here: https://github.com/kubernetes-sigs/aws-efs-csi-driver/tree/master Any ideas? |
Beta Was this translation helpful? Give feedback.
Maybe you can check https://docs.emqx.com/en/emqx-operator/latest/tasks/configure-emqx-persistence.html