forked from brianfrankcooper/YCSB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dynamodb] Improve endpoint and region config
* Upgrade AWS SDK from version 1.10.48 to 1.11.812. * Introduce a new configuration parameter, dynamodb.region, which represents a valid AWS region code (see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions for example). If specifying the region, it is not necessary to specify the dynamodb.endpoint parameter. * Introduce support for non-standard endpoints. Before this commit, setting the endpoint to a non-standard one, like a proxy, but ultimately connecting to a region different from 'us-east-1' would lead to a credential errors due to bad signature: ERROR site.ycsb.db.DynamoDBClient -com.amazonaws.AmazonServiceException: Credential should be scoped to a valid region, not 'us-east-1'. (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: InvalidSignatureException; With this commit, if using a proxy as an endpoint, by setting also the region via dynamodb.region, it will work with no error. * Set TCP Keep-Alive to true. Even it makes sense to be used by YCSB, it apparently doesn't improve performance notably given the connection reuse that the DynamoDB client is doing. * Update the example config file with the endpoint and region parameters and behavior.
- Loading branch information
Showing
3 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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