<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div style="font-family:Arial;"><br></div>
<div><br></div>
<div><br></div>
<div>On Mon, Apr 24, 2017, at 10:14 AM, atris adam wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div style="font-family:Arial;">I have two data centers in two different provinces. Each data centers have 3 servers. I want to setup cloud storage with glusterfs.<br></div>
<div style="font-family:Arial;">I want to make one glusterfs volume with these information.<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">province "a"==> 3 servers, each server has one 5TB brick (bricks number is from 1-3)<br></div>
<div style="font-family:Arial;">province "b"==> 3 servers, each server has one 5TB brick (bricks number is from 4-6)<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">distributed gluster volume size: 30TB<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Does glusterfs support servers with long distance?<br></div>
<div style="font-family:Arial;">If yes, if an end user in province "a" create a file, where the file is allocated? I mean which brick is selected to write the file on it? I need the brick number from 1-3 to be<br></div>
<div style="font-family:Arial;">selected. Because I think if glusterfs select other bricks (num 4-6, which is in province "b"), higher latency and unnecessary network traffic will be consumed. Am I right?<br></div>
</div>
</div>
</blockquote><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">The "nufa" translator/option exists for exactly this purpose, but it's a bit more limited than what I think you want. When creating a file, it will create it in a brick *on the same node* if possible, but it doesn't distinguish between other nodes near or far away. This might be good enough if you're using NFS as the access protocol, because in that case the "same node" is the one running the NFS/Gluster proxy.<br></div>
</body>
</html>