Yes it's possible.
So for now I'd like to explain about it below. I hope you find it helpful on how to use rack awareness on LeoFS. Please let me know if you have any questions/troubles.
- leo_storage.conf
- replication.rack_awareness.rack_id which enables you to specify which rack the leo_storage belongs
- leo_manager.conf (on master)
- consistency.rack_aware_replicas which enables you to specify how many replicas should spread across the rack
For example, let's say that we try to create a cluster with
- 6 storage nodes (node[1-6])
- 2 physical racks (rack[1-2])
- 2 replicas and each replica should belong to a different rack
then set the configurations as following
- replication.rack_awareness.rack_id on each leo_storage.conf
- node1: replication.rack_awareness.rack_id = rack1
- node2: replication.rack_awareness.rack_id = rack1
- node3: replication.rack_awareness.rack_id = rack1
- node4: replication.rack_awareness.rack_id = rack2
- node5: replication.rack_awareness.rack_id = rack2
- node6: replication.rack_awareness.rack_id = rack2
- consistency.rack_aware_replicas = 2
Best,
Kanno.
2018年5月18日金曜日 17時34分34秒 UTC+9 Martin: