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
Make S3 anti-contention delay configurable #101245
Make S3 anti-contention delay configurable #101245
Conversation
The anti-contention delay in the S3 repository's compare-and-exchange operation is hard-coded at 1 second today, but sometimes we encounter a repository that needs much longer to perform a compare-and-exchange operation when under contention. With this commit we make the anti-contention delay configurable.
Pinging @elastic/es-distributed (Team:Distributed) |
Hi @DaveCTurner, I've created a changelog YAML for you. |
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
I don't quite understand how compare-and-exchange is implemented with multipart uploads. But the setting change itself looks fine to me.
private static final Setting<TimeValue> REPOSITORY_S3_CAS_ANTI_CONTENTION_DELAY_SETTING = Setting.timeSetting( | ||
"repository_s3.compare_and_exchange.anti_contention_delay", | ||
TimeValue.timeValueSeconds(1), | ||
TimeValue.timeValueMillis(1), | ||
TimeValue.timeValueHours(24), | ||
Setting.Property.NodeScope |
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.
Do we want this setting to be dynamic updatable?
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 think no (at least not for now).
The anti-contention delay in the S3 repository's compare-and-exchange operation is hard-coded at 1 second today, but sometimes we encounter a repository that needs much longer to perform a compare-and-exchange operation when under contention. With this commit we make the anti-contention delay configurable.
💚 Backport successful
|
The anti-contention delay in the S3 repository's compare-and-exchange operation is hard-coded at 1 second today, but sometimes we encounter a repository that needs much longer to perform a compare-and-exchange operation when under contention. With this commit we make the anti-contention delay configurable.
The anti-contention delay in the S3 repository's compare-and-exchange
operation is hard-coded at 1 second today, but sometimes we encounter a
repository that needs much longer to perform a compare-and-exchange
operation when under contention. With this commit we make the
anti-contention delay configurable.