tasks | ||
README.md |
playbook for installing gluster 6.1.
This role installs the necessary packages for gluster. It does not create any volume. An example is shown below on how to create a 2 replica volume with 1 arbiter.
Nodes
This role sets up 3 servers. All have a secondary data disk attached. They will be formatted in ext4 and mounted under /.gluster/brick1. ext4 is used for better performance with small files.
Create gluster: 2 replica and 1 arbiter
Run these on gluster-a1:
gluster peer probe gluster-s1
gluster peer probe gluster-s2
gluster vol create gv0 replica 2 arbiter 1 gluster-s1:/.gluster/brick1 gluster-s2:/.gluster/brick1 gluster-a1:/.gluster/brick1
gluster vol start gv0
gluster vol set gv0 performance.cache-size 256MB
gluster vol set gv0 nfs.disable On
gluster vol set gv0 server.event-threads 12
gluster vol set gv0 client.event-threads 4
System tuning
Playbook changes tuned profile for gluster
# tuned-adm profile throughput-performance
# tuned-adm active