<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi David,<div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 25-Feb-2020, at 3:45 AM, David Cunningham &lt;<a href="mailto:dcunningham@voisonics.com" class="">dcunningham@voisonics.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">I've a couple of questions on geo-replication that hopefully someone can help with:</div><div class=""><br class=""></div><div class="">1. If there are multiple nodes in a cluster on the master side (pushing updates to the geo-replication slave), which node actually does the pushing? Does GlusterFS decide itself automatically?</div></div></div></blockquote><div><br class=""></div>Once Geo-replication session is started, one worker will be started corresponding to each Master bricks. Each worker identifies the changes happened in respective brick and sync those changes via Mount. This way load is distributed among Master nodes. In case of Replica sub volume, one worker among the Replica group will become active and participate in the syncing. Other bricks in that Replica group will remain Passive. Passive worker will become Active if the previously Active brick goes down (This is because all Replica bricks will have the same set of changes, syncing from each worker is redundant).</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">2.With regard to copying SSH keys, presumably the SSH key of all master nodes should be authorized on the geo-replication client side?</div></div></div></blockquote><div><br class=""></div>Geo-replication session is established between one master node and one remote node. If Geo-rep create command is successful then,</div><div><br class=""></div><div>- SSH keys generated in all master nodes</div><div>- Public keys from all master nodes are copied to initiator Master node</div><div>- Public keys copied to the Remote node specified in the create command</div><div>- Master public keys are distributed to all nodes of remote Cluster and added to respective ~/.ssh/authorized_keys</div><div><br class=""></div><div>After successful Geo-rep create command, any Master node can connect to any remote node via ssh.</div><div><br class=""></div><div>Security: Command prefix is added while adding public key to remote node’s authorized_keys file, So that if anyone gain access using this key can access only gsyncd command.</div><div><br class=""></div><div>```</div><div>command=gsyncd ssh-key….</div><div>```</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Thanks for your help.<br class=""></div><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">David Cunningham, Voisonics Limited<br class=""><a href="http://voisonics.com/" target="_blank" class="">http://voisonics.com/</a><br class="">USA: +1 213 221 1092<br class="">New Zealand: +64 (0)28 2558 3782</div></div></div></div></div></div></div></div></div></div></div></div>
________<br class=""><br class=""><br class=""><br class="">Community Meeting Calendar:<br class=""><br class="">Schedule -<br class="">Every Tuesday at 14:30 IST / 09:00 UTC<br class="">Bridge: <a href="https://bluejeans.com/441850968" class="">https://bluejeans.com/441850968</a><br class=""><br class="">Gluster-users mailing list<br class=""><a href="mailto:Gluster-users@gluster.org" class="">Gluster-users@gluster.org</a><br class="">https://lists.gluster.org/mailman/listinfo/gluster-users<br class=""></div></blockquote><br class=""></div><div><br class=""></div><div>—</div><div>regards</div><div>Aravinda Vishwanathapura</div><div><a href="https://kadalu" class="">https://kadalu</a>.io</div><br class=""></div></body></html>