Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

RDS Cluster Support #356

Closed
davidsloan-productlab opened this issue Jul 6, 2018 · 9 comments
Closed

RDS Cluster Support #356

davidsloan-productlab opened this issue Jul 6, 2018 · 9 comments
Labels
component: rds RDS integration related issue type: enhancement A general enhancement
Milestone

Comments

@davidsloan-productlab
Copy link

davidsloan-productlab commented Jul 6, 2018

Instead of an RDS instance I'm trying to use an RDS Aurora cluster.

I can use an instance within the cluster using
@EnableRdsInstance

However when trying to use the cluster itself I see an exception with this as the cause:
No database instance with id:'my-cluster-name' found. Please specify a valid db instance

Looking into the code, I can see that in AmazonRdsDataSourceFactoryBean, only instances are queried using AmazonRDS.describeDBInstances

It would be good to either amend this to support a cluster, or introduce a new annotation
@EnableRdsCluster

What do you think the chances are for RDS cluster support in Spring Cloud AWS?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 1, 2018
@mpraki
Copy link

mpraki commented Dec 1, 2018

Much needed one..

People are now going for serverless RDS, so cluster connection establishment is really required.

@spencergibb spencergibb added help wanted type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 29, 2019
@aconstanti
Copy link

Do we know if this is on the road map at all?

@ncs-one
Copy link

ncs-one commented Sep 12, 2019

This has also been reported here: This issue has also been reported here: #302

@aravindparappil46
Copy link

aravindparappil46 commented Nov 4, 2020

Looking forward to the 3.0.0.M1 milestone!
Definitely need this feature to be able to connect to an Aurora RDS Cluster (through annotation and through the application.properties file) for Spring & Spring Boot projects.

Meanwhile, if anyone knows a workaround for connecting to an Aurora cluster in Spring Boot and enabling read replica support, please post here!

@maciejwalkowiak
Copy link
Contributor

@aravindparappil46 currently you have to do it manually - look at Vlad's post for inspiration: https://vladmihalcea.com/read-write-read-only-transaction-routing-spring/

@dovert01
Copy link

Vlad's post is interesting and certainly helps for day-to-day running. But it's of little help to Spring projects that are looking to reap the benefits of Aurora clusters for failover. The current provision of a retry interceptor isn't really good enough. Services should be able to connect to a cluster, the SDK should be aware of which instances are write and read-only, and should direct requests accordingly.

Roll on 3.0.0.M1. Hopefully that addresses the failover issue.

@maciejwalkowiak maciejwalkowiak modified the milestones: 3.0.0.M1, 3.0.x Nov 25, 2020
@git-josip
Copy link

git-josip commented Dec 10, 2020

I've done it for now using reader/writer datasources + AOP .
basic idea is here: https://fable.sh/blog/splitting-read-and-write-operations-in-spring-boot/

Looking forward to 3.0.0.M1 milestone!

@sofiene53
Copy link

unable to connect to an Aurora RDS Cluster with read replica (through annotation and through the application.properties file) for spring boot project using spring cloud
Any news Please !

@maciejwalkowiak
Copy link
Contributor

Replaced with awspring/spring-cloud-aws#50

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: rds RDS integration related issue type: enhancement A general enhancement
Development

No branches or pull requests