Tuesday, March 23, 2021

Types of GlusterFS Volumes

Distributed
- default type
- distributes data evenly across nodes (with 100 files, 50 will be on node1 and 50 will be on node2)
- a file is located on one brick only
- faster than replicated
- no redunduncy
- no automatic failover
- volume size is the sum of brick sizes
- sample command:
  gluster volume create test-volume server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4
Replicated
- w/ redunduncy
- a file appears on all bricks
- volume size is the size of each brick
- sample command:
  gluster volume create test-volume replica 2 transport tcp server1:/exp1 server2:/exp2
    * "replica 2" means keep 2 copies of data at a given time
Distributed-Replicated
- adjacent bricks are replicas of each other
    * e.g with 8 bricks, brick1 and brick2 are replicas of each other, brick3 and brick4 are
      replicas of each other, and so on..
- sample command:
  gluster volume create test-volume replica 2 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4
Striped
- a file is divided in chunks
- each chunk is located on each bricks
- faster access
- no redunduncy
- sample command:
  gluster volume create test-volume stripe 2 transport tcp server1:/exp1 server2:/exp2

No comments:

Post a Comment