Performance gain by adding another server to gluster

glusterfs

We have a setup of three dedicated machines where a LAMP-Application will be installed on ubuntu 14.04. Glusterfs 3.7.x will serve as a shared storage sollution.

There are 2 high performance machines, and a third server with reasonable specs. The two high performers will host through NGINX.

The files to be served are small (2kB – 30kb). Currently the system is planed in replica 2 mode on two servers.

gluster volume create volume1 replica 2 gs1:/data/brick gs2:/data/brick

Would there be a performance gain if we add a glusterfs server on the third node?

Please note that this question is focused on glusterfs and therefore not a duplicate to the mentioned posting.

Best Answer

The scalability issues in Gluster are related to the number of bricks, not the number of servers. Gluster, in general, scales linearly on common I/O patterns. The exception to this rule is file create operations and management operations. Both cause Gluster to take a hit because of the overhead on the network increases as the cluster grows.

There are a couple of areas to look at to determine what to do to increase performance. First, take a look at "iostats -dkx 30" and "iptraf" on the server. If the util% is on the high end, or the network bandwidth close to maturing the interface. Adding clients won't help. You only option would be to add a server or give it add a network cared or replace the network card with one that can carry more bandwidth. The other option here is to add more iocache space on the clients.

Disk usage% will also fall if you increase the amount of RAM available as Linux likes to cache the file system. The next potential bottle neck is the disk itself. Run top and or isostat 5 to check the level of iowait. If its high faster disks or more disks may help.

Check your clients for charachteristics inhibiting the servers throughput, for example: CPU usage, network usage, memory usage, etc.

Related Topic