ansible.role.gluster/README.md
2019-04-26 13:44:32 +08:00

577 B

playbook for installing gluster 6.1.

Nodes

This role sets up 3 servers. All have a secondary data disk attached.

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