Open lek7hj opened 8 months ago
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.
aurora global yaml
AWSTemplateFormatVersion: '2010-09-09'
Description:
A stack to create Aurora DB global clusters.
Resources:
GlobalCluster:
Type: 'AWS::RDS::GlobalCluster'
Properties:
GlobalClusterIdentifier: test-db-aurora-global
SourceDBClusterIdentifier: !Ref RDSCluster
RDSCluster:
Type: 'AWS::RDS::DBCluster'
Properties:
MasterUsername: very
MasterUserPassword: notsecure
DBClusterIdentifier: test-db-aurora-us-east-1
DBClusterParameterGroupName: default.aurora-postgresql14
Engine: aurora-postgresql
EngineVersion: '14.8'
RDSDBInstance1:
Type: 'AWS::RDS::DBInstance'
Properties:
Engine: aurora-postgresql
DBClusterIdentifier: !Ref RDSCluster
DBInstanceIdentifier: test-db-aurora-00
DBParameterGroupName: default.aurora-postgresql14
PubliclyAccessible: 'true'
DBInstanceClass: db.r3.xlarge
RDSDBInstance2:
Type: 'AWS::RDS::DBInstance'
Properties:
Engine: aurora-postgresql
DBClusterIdentifier: !Ref RDSCluster
DBInstanceIdentifier: test-db-aurora-01
DBParameterGroupName: default.aurora-postgresql14
PubliclyAccessible: 'true'
DBInstanceClass: db.r3.xlarge
aurora west.yml
AWSTemplateFormatVersion: '2010-09-09'
Description:
A stack to add a region to the existing global cluster.
Resources:
RDSCluster:
Type: 'AWS::RDS::DBCluster'
Properties:
GlobalClusterIdentifier: test-db-aurora-global
DBClusterIdentifier: test-db-aurora-us-west-2
DBClusterParameterGroupName: default.aurora-postgresql14
Engine: aurora-postgresql
EngineVersion: '14.8'
RDSDBInstance1:
Type: 'AWS::RDS::DBInstance'
Properties:
Engine: aurora-postgresql
DBClusterIdentifier: !Ref RDSCluster
DBInstanceIdentifier: test-db-aurora-00
DBParameterGroupName: default.aurora-postgresql14
PubliclyAccessible: 'true'
DBInstanceClass: db.r3.xlarge
Hi @lek7hj,
thanks for the report! Could you give us some more details on your use case?
For the current implementation of global clusters we do have some limitations, that are outlined in the docs.
One of them includes:
[...] clusters removed from a global database lose their ability to function as standalone clusters, differing from their intended behavior on AWS.
Meaning with the current approach on LocalStack, we only simulate the creation of global clusters. We don't actually create several databases that are synced, rather we have on single database, and the endpoints of the clusters and instances all point to this single database. For the customers that initially requested this feature, this simulation was sufficient for their use case.
That's why we would like to learn a little bit more about your specific use case and how you intend to use the promoted and the original database afterwards. 🙏
Meaning with the current approach on LocalStack, we only simulate the creation of global clusters. We don't actually create several databases that are synced, rather we have on single database, and the endpoints of the clusters and instances all point to this single database. For the customers that initially requested this feature, this simulation was sufficient for their use case.
Hi @steffyP
We're currently using localstack to test a tool we've created for failing over RDS (along with some other services). Our tooling runs through the sequence of
We're looking to validate that these events happen (ex the west cluster gets removed from global, new global cluster gets created). We don't need the promoted database to be a new database with it's own unique endpoint.
What we do need is
Hello 👋! It looks like this issue hasn’t been active in longer than five months. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.
Is there an existing issue for this?
Current Behavior
On a global aurora db set up with a primary cluster and a secondary cluster, running
awslocal rds promote-read-replica-db-cluster --db-cluster-identifier test-db-aurora-us-west-2 --debug
results in an internal error, and fails to promote the secondary cluster.Expected Behavior
The secondary cluster should be promoted to a standalone cluster.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)docker-compose.yml
exec docker-compose -f ./tests/features/docker-compose.yml -p localstack up -d;
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
Environment
Anything else?
No response