forked from daos-stack/daos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOS-14018 pool: dup operation detection metadata layout (daos-stack#…
…13078) This is the first of multiple patches that will implement a duplicate (retry) RPC/operation detection feature for pool/container service metadata RPCs. With this change, a new pool/container service root-level KVS (svc_ops) is added so that (eventually, after subsequent patches) a recent history of client opss handled can be kept. And so that duplicate ops can be detected and handled appropriately. A boolean (svc_ops_enabled) is also added to the pool rdb. For old layout pools, or those with the prior rdb default size 128 MiB, svc_ops_enabled will be false, since the amount of history to be kept in this design is too large for that rdb size. Related to this, the default value of DAOS_MD_CAP is increased to 1024 MiB so that new pools created will have sufficient rdb capacity. A debug log message is shown during step up to reveal (especially for pool start/create) if the feature is enabled. Because of the layout change, pool and container upgrade logic is also changed to enable migration from older layouts to this latest version (e.g., DAOS v2.4 pools at global version 2 -> 3). Also, some comments and minor logic changes in the container create/destroy handling execution flows are added, mostly as a TODO, and to show how duplicate ops scenarios can/will be handled. Finally, an independent enhancement to pool service distributed start is included in this patch. When pool service membership is changed to add new replicas, the existing rdb size is provided as the size argument, rather than rely on the DAOS_MD_CAP environment variable value that of course could have changed between server/engine starts with an administrator's edits of the daos_server.yml file. Signed-off-by: Kenneth Cain <[email protected]> Co-authored-by: Li Wei <[email protected]>
- Loading branch information
Showing
14 changed files
with
294 additions
and
65 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
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
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
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
Oops, something went wrong.