Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BorysTheDev
Copy link
Contributor

fixes: #4299

we decided to distinguish connection and finalization timeouts and introduced the new flag

@BorysTheDev BorysTheDev force-pushed the MigrationFinalizationTImeout_flag branch from dc95056 to 60e7def Compare December 13, 2024 07:17
@@ -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,
Copy link
Contributor

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

Copy link
Contributor Author

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

Comment on lines +24 to +26
"Connection creating timeout for migration operations");
ABSL_FLAG(int, migration_finalization_timeout_ms, 30000,
"Timeout for migration finalization operation");
Copy link
Contributor

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

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add a flag to change migration timeout during finalization
3 participants