-
Notifications
You must be signed in to change notification settings - Fork 968
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: add migration_finalization_timeout_ms flag #4301
base: main
Are you sure you want to change the base?
Conversation
dc95056
to
60e7def
Compare
@@ -20,7 +20,10 @@ | |||
#include "server/server_family.h" | |||
#include "util/fibers/synchronization.h" | |||
|
|||
ABSL_FLAG(int, slot_migration_connection_timeout_ms, 5000, "Timeout for network operations"); | |||
ABSL_FLAG(int, slot_migration_connection_timeout_ms, 2000, |
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.
Have you synced with @romange about the new flag? I am asking cause we usually discuss before we introduce a new flag
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.
we have discussed it with @adiholden
"Connection creating timeout for migration operations"); | ||
ABSL_FLAG(int, migration_finalization_timeout_ms, 30000, | ||
"Timeout for migration finalization operation"); |
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.
Can we add a little bit more in the description about what these flags do because Connection creating timeout for migration operations
seems vague. I would expect with that description a timeout would trigger at 2000 ms which would include the 30000 ms for the migration to finalize
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 don't know what else should be added. migration finalization is a several-step algorithm and it needs time
fixes: #4299
we decided to distinguish connection and finalization timeouts and introduced the new flag