ansible.role.gluster/README.md
2019-05-02 23:00:46 +08:00

29 lines
999 B
Markdown

# 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
Try these in the next build.
```
# tuned-adm list
# tuned-adm profile throughput-performance
# tuned-adm active
```