Commit 46343f37 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #42038 from humblec/glusterfs-backup-vol1

Automatic merge from submit-queue (batch tested with PRs 42038, 42083) Add backup-volfile-servers to mount option. This feature ensures the `backup servers` in the trusted pool is contacted if there is a failure in the connected server. Mount option becomes: mount -t glusterfs -o log-level=ERROR,log-file=/var/lib/kubelet/plugins/kubernetes.io/glusterfs/glustermount/glusterpod-glusterfs.log,backup-volfile-servers=192.168.100.0:192.168.200.0:192.168.43.149 .. Signed-off-by: 's avatarHumble Chirammal <hchiramm@redhat.com>
parents 4a8c73a1 43c0a686
...@@ -329,6 +329,8 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error { ...@@ -329,6 +329,8 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
} }
options = append(options, "backup-volfile-servers="+dstrings.Join(addrlist[:], ":"))
// Avoid mount storm, pick a host randomly. // Avoid mount storm, pick a host randomly.
// Iterate all hosts until mount succeeds. // Iterate all hosts until mount succeeds.
for _, ip := range addrlist { for _, ip := range addrlist {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment