6 ms·
How did you go about stopping and restarting applications which reach out to the database? We have a number of tasks running in ECS which can take a minute to s
by yeswecatan 3y ago
How did you go about stopping and restarting applications which reach out to the database? We have a number of tasks running in ECS which can take a minute to spin down and a few minutes to spin back up.
- ThePowerOfFuet 3y agoPresumably you don't stop them, and they throw errors during the cutover.
- todd3834 3y agoYou aren’t supposed to have to change anything in the application code. The same database URL should work.
- Ozzie_osman 3y agoFor our web service, we didn't stop anything. They had a few seconds of errors though it seems like some sessions were just buffered or paused and experienced high latency. We also had background worker services. For the very high throughput ones, we spun down the # of tasks to a bare minimum for <5 minutes and let the queue build up, rather than have a massive amount of errors and retries. For the other ones where throughput wasn't high, we just let them be, and during the downtime they errored and retried and the retries mostly succeeded.