Update alternator load-balancing from 1.0.0 to 2.0.1#286
Open
dkropachev wants to merge 6 commits intomasterfrom
Open
Update alternator load-balancing from 1.0.0 to 2.0.1#286dkropachev wants to merge 6 commits intomasterfrom
dkropachev wants to merge 6 commits intomasterfrom
Conversation
bcaac7b to
83c1dd3
Compare
83c1dd3 to
bd3e0b0
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace usage of internal AlternatorLiveNodes and BasicQueryPlanInterceptor with the public AlternatorDynamoDbClient.builder() API from load-balancing 2.0.1. This builder implements DynamoDbClientBuilder and handles load balancing internally. Also use it in buildDynamoClient to add load balancing to table management operations (create/describe/stream).
Expose AlternatorDynamoDbClient.builder() settings through the migrator YAML config under an optional 'alternator' section for both source and target DynamoDB settings: - datacenter/rack: DC and rack-aware routing with fallback chain - activeRefreshIntervalMs/idleRefreshIntervalMs: node list refresh tuning - compression: GZIP compression of request bodies - optimizeHeaders: reduce HTTP header overhead Settings are applied to both direct SDK client paths (deletes, stream replication, table management) and Hadoop-based bulk I/O paths (scan, batch write) via Hadoop config passthrough. Alternator with no credentials is supported - the builder defaults to anonymous access when no credentials are configured.
bd3e0b0 to
b375f5c
Compare
The load-balancing 2.0.1 library is compiled for Java 11 (class file version 55.0). Update CI workflows to use Java 11 while keeping the compilation target at Java 8 for maximum compatibility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…WSCredentials.toProvider Replace null routing scope sentinel with idiomatic Option pattern in applyAlternatorSettings, and reuse the existing AWSCredentials.toProvider helper in AlternatorLoadBalancingEnabler to eliminate credential reconstruction duplication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b375f5c to
f7fd030
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
com.scylladb.alternator:load-balancingfrom 1.0.0 to 2.0.1AlternatorDynamoDbClient.builder()API instead of internalAlternatorLiveNodes+BasicQueryPlanInterceptorAlternatorDynamoDbClient.builder()inbuildDynamoClientto add load balancing to table management, delete, and stream replication operations (not just Hadoop bulk I/O)alternatorYAML section:datacenter/rack: DC and rack-aware routing with automatic fallbackactiveRefreshIntervalMs/idleRefreshIntervalMs: node list refresh tuningcompression: GZIP compression of request bodiesoptimizeHeaders: reduce HTTP header overheadTest plan