-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(regionserver): add graceful shutdown configuration #570
base: main
Are you sure you want to change the base?
Conversation
Extract region configuration into it's own structure. Refactor the lib and controller modules to work with the new structure in a slightly generic way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review
docs/modules/hbase/pages/usage-guide/operations/graceful-shutdown.adoc
Outdated
Show resolved
Hide resolved
extraOpts: ["--designatedFile", "/path/to/designatedFile"] <4> | ||
---- | ||
<1>: Run the region mover tool before shutting down the region server. Default is `false`. | ||
<2>: Maximum number of threads to use for moving regions. Default is 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a hint how this value should be set? Eg: number of servers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it depends on the number of regions, servers to distribute the regions to, total row count and what not.
As usual : it's complicated and if you don't have performance problems, don't touch it!
"1" is the default region mover it's self uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case, there probably should be some guidance rather than leaving it ambiguous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to defer to the experts then.
<1>: Run the region mover tool before shutting down the region server. Default is `false`. | ||
<2>: Maximum number of threads to use for moving regions. Default is 1. | ||
<3>: Enable or disable region confirmation on the present and target servers. Default is `true`. | ||
<4>: Extra options to pass to the region mover tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a link to valid options (or maybe they're covered already?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find any documentation on this tool. I used the source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we ca give a hint where to find the extra options in the source code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 7e118ab
…own.adoc Co-authored-by: Nick <[email protected]>
Co-authored-by: Sebastian Bernauer <[email protected]>
Not disagreeing, but what is the benefit against just implementing Merge for it (as it's already done) ? It seems to me like a lot more (quirky) code would be needed to achieve the same thing. |
docs/modules/hbase/pages/usage-guide/operations/graceful-shutdown.adoc
Outdated
Show resolved
Hide resolved
docs/modules/hbase/pages/usage-guide/operations/graceful-shutdown.adoc
Outdated
Show resolved
Hide resolved
docs/modules/hbase/pages/usage-guide/operations/graceful-shutdown.adoc
Outdated
Show resolved
Hide resolved
Co-authored-by: Siegfried Weber <[email protected]>
Co-authored-by: Siegfried Weber <[email protected]>
Co-authored-by: Siegfried Weber <[email protected]>
…own.adoc Co-authored-by: Siegfried Weber <[email protected]>
…own.adoc Co-authored-by: Siegfried Weber <[email protected]>
…own.adoc Co-authored-by: Siegfried Weber <[email protected]>
…own.adoc Co-authored-by: Siegfried Weber <[email protected]>
Co-authored-by: Siegfried Weber <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
part of: #508
requires: stackabletech/docker-images#898
Implementation for "approach B" in https://github.com/stackabletech/decisions/issues/30
Definition of Done Checklist
Author
Reviewer
Acceptance