What is the behavior of the csi-node after scaling an existing volume? #4036
-
|
As mentioned, when I used kubectl mayastor to expand a volume from 1 replica to 2 replicas, in the volumeAttributes parameter of the PV, the repl value remained 1. Will there be any special behaviors in the CSI controller or the CSI-node? Is Mayastor capable of accurately ensuring the availability of 2 copies of data? Could there be a situation where the configuration is not synchronized properly, leading to errors? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Not the CSI components themselves, these are just consumers. |
Beta Was this translation helpful? Give feedback.
Not the CSI components themselves, these are just consumers.
The data-plane makes use of etcd to record which replica contains the correct data.
So if you loose all etcd nodes then there's no sync and you'd have to manually figure it out, this is why you should use 3repl etcd. We also plan to making backups of this next to the data itself in case etcd data is lost.