Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove zookeeper refdb and replace it with dynamodb also taking care of creating the relevant DynamoDB tables on request. The DynamoDB refdb is now used for both multi-site and high-availability plugin. Bug: Issue 15127 Change-Id: I5012c15ae2c06ecc55cc2693fc516ce34842a58e
- Loading branch information
Showing
14 changed files
with
206 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,5 @@ gerrit/etc/*key* | |
gerrit.config | ||
secure.config | ||
replication.config | ||
zookeeper-refdb.config | ||
.idea | ||
**/*.pem |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: DynamoDB tables for refs-db validation | ||
Parameters: | ||
DynamoDBLocksTableName: | ||
Description: The name of the DynamoDB locks table | ||
Type: String | ||
DynamoDBRefsTableName: | ||
Description: The name of the DynamoDB refs table | ||
Type: String | ||
|
||
Mappings: | ||
DynamoDB: | ||
CapacityUnits: | ||
Read: 10 | ||
Write: 10 | ||
|
||
Resources: | ||
RefsDbTable: | ||
Type: AWS::DynamoDB::Table | ||
Properties: | ||
TableName: !Ref DynamoDBRefsTableName | ||
AttributeDefinitions: | ||
- AttributeName: refPath | ||
AttributeType: S | ||
KeySchema: | ||
- AttributeName: refPath | ||
KeyType: HASH | ||
ProvisionedThroughput: | ||
ReadCapacityUnits: !FindInMap ['DynamoDB', 'CapacityUnits', 'Read'] | ||
WriteCapacityUnits: !FindInMap ['DynamoDB', 'CapacityUnits', 'Write'] | ||
|
||
LocksTable: | ||
Type: AWS::DynamoDB::Table | ||
Properties: | ||
TableName: !Ref DynamoDBLocksTableName | ||
AttributeDefinitions: | ||
- AttributeName: lockKey | ||
AttributeType: S | ||
- AttributeName: lockValue | ||
AttributeType: S | ||
KeySchema: | ||
- AttributeName: lockKey | ||
KeyType: HASH | ||
- AttributeName: lockValue | ||
KeyType: RANGE | ||
ProvisionedThroughput: | ||
ReadCapacityUnits: !FindInMap ['DynamoDB', 'CapacityUnits', 'Read'] | ||
WriteCapacityUnits: !FindInMap ['DynamoDB', 'CapacityUnits', 'Write'] | ||
|
||
Outputs: | ||
RefsDbTable: | ||
Description: The refs-db table | ||
Value: !Ref RefsDbTable | ||
Export: | ||
Name: !Join [ ':', [ !Ref 'AWS::StackName', 'RefsDbTable' ] ] | ||
LocksTable: | ||
Description: The locks-db table | ||
Value: !Ref LocksTable | ||
Export: | ||
Name: !Join [ ':', [ !Ref 'AWS::StackName', 'LocksTable' ] ] |
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
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
Oops, something went wrong.