-
Notifications
You must be signed in to change notification settings - Fork 483
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
Snapshot for load test environment has broken config for teams #24361
Comments
Wouldn't the best bet be to restore the DB, run the MySQL commands, save a new snapshot, and then update the snapshot that loadtesting uses as its starting point in the terraform config? This would remove the need to add a permanent new first-step. https://github.com/fleetdm/fleet/blob/main/infrastructure/loadtesting/terraform/rds.tf#L67 is where we specify the snapshot used in the terraform. |
If migrations need to be run first, we could migrate up to a desired patch-level as well prior to applying the SQL above and use that as the new starting point for the snapshot. We'll just want to make sure that no loadtest containers connect to the system prior to saving the new snapshot. |
Good idea, probably better, yes (assuming new config doesn't break migrations which is unlikely, we could apply the snapshot locally to the version of Fleet we use as starting point and then run migrations). Do you have access to such snapshot to run this yourself? Alternatively, if you provide me with read&write access I could run it myself. |
I checked and you are already a member of Loadtesting Admins and should have full access to read and write RDS snapshots in AWS for that account. |
Hey @lucasmrod, it looks like the loadtesting snapshot is also causing issues with scheduled query ingestion: #24386 |
@lucasmrod Thanks for filing. I'm putting on the Endpoint Ops board for now to explore. |
I am creating a snapshot that does the following.
|
#25495 is the PR that enables the new snapshot. @dantecatalfamo please feel free to try the snapshot at your convenience to ensure it does what you need. We can do further updates if-needed. |
QA Notes: A fresh loadtest build off RC 4.64.0 shows that -
|
Snapshots fix, automated, |
This bug impacts every time we do load test. It's caused by some invalid data coming from the snapshot we use to populate load test environments when they are created.
Person running the load test needs to run a manual step (of connecting and running MySQL commands) to fix the teams after the load test environment has been created. This wastes time and also is confusing for new folks running load tests.
We should instead automate the fix.
I found the following command we used to fix this issue in the past here.
Additional fixes
We also want to fix the invalid webhook configuration that's causing server error logs (noise).
The text was updated successfully, but these errors were encountered: