gluster / glusterfs

Gluster Filesystem : Build your distributed storage in minutes
https://www.gluster.org
GNU General Public License v2.0
4.51k stars 1.07k forks source link

[RFE] Manual option to select Active Geo-replication worker #4304

Open aravindavk opened 3 months ago

aravindavk commented 3 months ago

New Geo-replication option to manually choose Active workers. From each distribute group the first brick is selected as Active worker and all other workers will be Passive. This approach has multiple problems:

Meta Volume option (https://docs.gluster.org/en/main/Administrator-Guide/Geo-Replication/#configurable-options) is introduced in Geo-rep that makes automatic switching when a worker goes to Faulty. This is good, but causes lot of fluctuations and repeat syncing.

Introduce a new option to manually select the Active workers. By default, select the first node of a distribute group as Active.

gluster volume geo-replication <primary-volume> <secondary-host>::<secondary-volume> \
    config active-workers <brick-paths>

Example:

gluster volume geo-replication vol1 server1b::vol2 \
    config active-workers "server1:/data/gfs/vol1/b1,server4:/data/gfs/vol1/b4"