-
Notifications
You must be signed in to change notification settings - Fork 23
Implement skeleton for basic shrink scenario #1971
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
Conversation
|
In general it looks good to me, basic scenario worked for me, just a few more cosmetic changes please. |
bimboterminator1
left a comment
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, the state machine apprach is brilliantly implemented
|
Should we use a formatter for new python code? autopep8 or black/ruff? |
As long as we haven't agreed on the Python's linter to use across the entire product, I consider it as out of scope of this task. |
Implement skeleton for basic shrink scenario
This patch implements a state machine skeleton for a basic shrink scenario based
on 'transitions' library. It consists of a new 'ggrebalance' tool, which will be
a single entry point for shrink, expand, and cluster rebalance functionality,
and 'shrink.py', which contains the state machine itself with the shrink logic.
The main purpose of this half-MVP is to evaluate the state machine pattern
suitability. Therefore it implements only a limited set of requirements for the
shrink, which allows you to support basic shrink workflow.