-
Notifications
You must be signed in to change notification settings - Fork 183
Tweak nfs mount options for performance #1429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,12 +4,23 @@ locals { | |
| nfs_mount_path = "/orchestrator/shared-store" | ||
| nfs_mount_subdir = "chunks-cache" | ||
| nfs_mount_opts = join(",", [ // for more docs, see https://linux.die.net/man/5/nfs | ||
| "tcp", // docs say to avoid it on highspeed connections | ||
| format("nfsvers=%s", var.filestore_cache_enabled ? module.filestore[0].nfs_version == "NFS_V3" ? "3" : "4" : ""), | ||
| "lookupcache=none", // do not cache file handles | ||
| "noac", // do not use attribute caching | ||
| "noacl", // do not use an acl | ||
| "nolock", // do not use locking | ||
|
|
||
| "actimeo=600", // cache attributes for 60 seconds | ||
| "async", // delay writes until certain conditions are met | ||
| "hard", // retry nfs requests indefinitely until they succeed, never fail | ||
| "lookupcache=positive", // cache successful file handle lookups | ||
| "nconnect=7", // use multiple connections | ||
| "noacl", // do not use an acl | ||
| "nocto", // skip "close-to-open" attribute checks | ||
| "nolock", // do not use locking | ||
| "noresvport", // use a non-privileged source port | ||
| "resvport", // use a privileged source port when communicating with the NFS server | ||
| "retrans=3", // retry three times before performing recovery actions | ||
| "rsize=524288", // receive 512 KB per read request | ||
|
||
| "sec=sys", // use AUTH_SYS for all requests | ||
| "timeo=600", // wait 60 seconds (measured in deci-seconds) before retrying a failed request | ||
| "wsize=524288", // receive 512 KB per write request | ||
| ]) | ||
|
|
||
| file_hash = { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.