<div>So I have this setup:</div><div>2 servers connected via a VPN (slow connection) since they are physically distant.</div><div>Using the CLI I created a replicated volume with one brick on each server.</div><div>The problem starts when the access to the mounted volume is slow, "# time ls /mount_point" is giving me around 0.5seconds</div>
<div>But if I cut the VPN connection the time goes down to around 0.005sec.</div><div>So I am assuming gluster is distributing the reads, being created with the CLI I tried to edit the configurations manually and added "option read-subvolume volume_name" to the cluster/replicate volume, being the read-subvolume the local one.</div>
<div>But gluster still refuses to use only the local server.</div><div>Is there a way to force it? What I need is just gluster to keep the directory mirrored, but the reads for performance reasons should be done only locally and not using the remote server.</div>
<div> </div><div>Thanks in advance</div>