Skip to content

Commit 5b8ec14

Browse files
committed
update in README
1 parent 9198e7f commit 5b8ec14

File tree

1 file changed

+3
-53
lines changed

1 file changed

+3
-53
lines changed

README.md

Lines changed: 3 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Now let's force a failover by changing the role of the replica from reader to wr
159159

160160
aws rds failover-db-cluster --db-cluster-identifier auroradbcluster-us-west-2 --target-db-instance-identifier auroradbnode-2-us-west-2b
161161

162-
On running the command it return the following output:
162+
Note that the above command should return a json format key-value output with details of your cluster and the failover change. I'm only showing the beginning of the output below.
163163

164164
{
165165
"DBCluster": {
@@ -170,59 +170,9 @@ On running the command it return the following output:
170170
"us-west-2b"
171171
],
172172
"BackupRetentionPeriod": 1,
173-
"DatabaseName": "auroradbtest",
173+
"DatabaseName": "xxxx",
174174
"DBClusterIdentifier": "auroradbcluster-us-west-2",
175-
"DBClusterParameterGroup": "default.aurora-mysql5.7",
176-
"DBSubnetGroup": "awseb-e-4bqpb2izki-stack-awsebrdsdbsubnetgroup-mrm750xsz1y4",
177-
"Status": "available",
178-
"EarliestRestorableTime": "2020-07-27T11:36:16.714Z",
179-
"Endpoint": "auroradbcluster-us-west-2.cluster-cgdued2pbbld.us-west-2.rds.amazonaws.com",
180-
"ReaderEndpoint": "auroradbcluster-us-west-2.cluster-ro-cgdued2pbbld.us-west-2.rds.amazonaws.com",
181-
"MultiAZ": true,
182-
"Engine": "aurora-mysql",
183-
"EngineVersion": "5.7.12",
184-
"LatestRestorableTime": "2020-07-28T23:54:50.921Z",
185-
"Port": 3306,
186-
"MasterUsername": "xxxxxxxx",
187-
"PreferredBackupWindow": "11:28-11:58",
188-
"PreferredMaintenanceWindow": "sat:12:16-sat:12:46",
189-
"ReadReplicaIdentifiers": [],
190-
"DBClusterMembers": [
191-
{
192-
"DBInstanceIdentifier": "auroradbnode-2-us-west-2b",
193-
"IsClusterWriter": false,
194-
"DBClusterParameterGroupStatus": "pending-reboot",
195-
"PromotionTier": 1
196-
},
197-
{
198-
"DBInstanceIdentifier": "auroradbnode-1-us-west-2a",
199-
"IsClusterWriter": true,
200-
"DBClusterParameterGroupStatus": "in-sync",
201-
"PromotionTier": 1
202-
}
203-
],
204-
"VpcSecurityGroups": [
205-
{
206-
"VpcSecurityGroupId": "sg-0bcdadbbd64013e6b",
207-
"Status": "active"
208-
}
209-
],
210-
"HostedZoneId": "Z1PVIF0B656C1W",
211-
"StorageEncrypted": true,
212-
"KmsKeyId": "arn:aws:kms:us-west-2:xxxxxxx:key/b286e412-6b05-40f2-9923-6dcbb3f57c48",
213-
"DbClusterResourceId": "cluster-KIG64YBWUMRXD3UJJJZUPNRUGA",
214-
"DBClusterArn": "arn:aws:rds:us-west-2:xxxxxxx:cluster:auroradbcluster-us-west-2",
215-
"AssociatedRoles": [],
216-
"IAMDatabaseAuthenticationEnabled": false,
217-
"ClusterCreateTime": "2019-01-23T16:21:57.573Z",
218-
"EngineMode": "provisioned",
219-
"DeletionProtection": false,
220-
"HttpEndpointEnabled": false,
221-
"CopyTagsToSnapshot": false,
222-
"CrossAccountClone": false,
223-
"DomainMemberships": []
224-
}
225-
}
175+
...
226176

227177
If we re-run our java client program DbClient_QueryClusterNodes.java again we can see that the previous master node (auroradbnode-2-us-west-2a)is now a replica while the previous replica (auroradbnode-2-us-west-2b) has been promoted to master. See screenshot below.
228178

0 commit comments

Comments
 (0)