-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for ExternalDBSettings while starting a load test #885
Conversation
In case of ExternalDB there will be no cluster identifier from a Terraform deployment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the external DB is not an RDS cluster?
LMK how it looks now. I am distinguishing the presence of a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks better! I'm slightly concerned it's getting too complex, but that's a problem of the flexible configuration we have, of course, not of this PR. Thanks for this!
// If an external non-AWS DB is used. | ||
if t.config.ExternalDBSettings.DataSource != "" && t.config.ExternalDBSettings.ClusterIdentifier == "" { | ||
return "available", nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR, but: is there a way we can test the connection to the datasource here? It would need to be from one of the app nodes, but maybe it's worth doing it to make sure all is working as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At which phase do you want to test it? This DBStatus method is purely geared towards AWS instances so that we can turn them off to save money. I think we could test this in the deployment phase, but it should automatically fail if the servers won't start.
Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
In case of ExternalDB there will be no cluster identifier
from a Terraform deployment.