-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add arbiter count to client volfile (#8)
Add arbiter-count to client volfile under afr xlator Signed-off-by: Shree Vatsa N <[email protected]>
- Loading branch information
Showing
6 changed files
with
132 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "vol1", | ||
"id": "e79048bf-ac4d-47cf-8d1f-0a07366ff1ea", | ||
"distribute_groups": [ | ||
{ | ||
"replica_count": 3, | ||
"arbiter_count": 1, | ||
"storage_units": [ | ||
{ | ||
"path": "/exports/vol1/s1", | ||
"port": 4501, | ||
"node": { | ||
"name": "server1" | ||
} | ||
}, | ||
{ | ||
"path": "/exports/vol1/s2", | ||
"port": 4502, | ||
"node": { | ||
"name": "server2" | ||
} | ||
}, | ||
{ | ||
"path": "/exports/vol1/s3", | ||
"port": 4503, | ||
"node": { | ||
"name": "server3" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
volume vol1-client-0 | ||
type protocol/client | ||
option transport.socket.read-fail-log false | ||
option volfile-key /vol1 | ||
option remote-subvolume /exports/vol1/s1 | ||
option remote-host server1 | ||
option remote-port 4501 | ||
end-volume | ||
|
||
volume vol1-client-1 | ||
type protocol/client | ||
option transport.socket.read-fail-log false | ||
option volfile-key /vol1 | ||
option remote-subvolume /exports/vol1/s2 | ||
option remote-host server2 | ||
option remote-port 4502 | ||
end-volume | ||
|
||
volume vol1-client-2 | ||
type protocol/client | ||
option transport.socket.read-fail-log false | ||
option volfile-key /vol1 | ||
option remote-subvolume /exports/vol1/s3 | ||
option remote-host server3 | ||
option remote-port 4503 | ||
end-volume | ||
|
||
volume vol1-replicate-0 | ||
type cluster/replicate | ||
option arbiter-count 1 | ||
option data-self-heal on | ||
option granular-entry-heal on | ||
option iam-self-heal-daemon off | ||
option metadata-self-heal on | ||
option entry-self-heal on | ||
option read-hash-mode 5 | ||
option afr-pending-xattr vol1-client-0,vol1-client-1,vol1-client-2 | ||
subvolumes vol1-client-0 vol1-client-1 vol1-client-2 | ||
end-volume | ||
|
||
volume vol1-utime | ||
type features/utime | ||
option noatime on | ||
subvolumes vol1-replicate-0 | ||
end-volume | ||
|
||
volume vol1-write-behind | ||
type performance/write-behind | ||
option flush-behind on | ||
option write-behind on | ||
subvolumes vol1-utime | ||
end-volume | ||
|
||
volume vol1-open-behind | ||
type performance/open-behind | ||
option read-after-open yes | ||
subvolumes vol1-write-behind | ||
end-volume | ||
|
||
volume vol1-quick-read | ||
type performance/quick-read | ||
subvolumes vol1-open-behind | ||
end-volume | ||
|
||
volume vol1-md-cache | ||
type performance/md-cache | ||
subvolumes vol1-quick-read | ||
end-volume | ||
|
||
volume vol1-io-threads | ||
type performance/io-threads | ||
subvolumes vol1-md-cache | ||
end-volume | ||
|
||
volume vol1 | ||
type debug/io-stats | ||
option volume-id e79048bf-ac4d-47cf-8d1f-0a07366ff1ea | ||
subvolumes vol1-io-threads | ||
end-volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters