Migrating between one Quirrel Servers
This guide walks you through a zero-downtime-migration from one Quirrel instance to another. It works by connecting your application to both the old and new instance at the same time. Both instances will continue sending their jobs to the application, but new jobs are only created on one of them. This will result in the old instance slowly draining. Once it's fully drained, the migration is complete.
During the migration, the
exclusive jobs feature will not work perfectly.
If that's a problem for your application, get in touch.
Here's the step-by-step guide:
Upgrade your application to Quirrel v1.9.1
Make the following changes to your application's environment variables:
QUIRREL_MIGRATE_OLD_API_URLto the hostname of your old instance. If you used hosted Quirrel, that's
QUIRREL_MIGRATE_OLD_TOKENto the token that previously was set for
QUIRREL_API_URLto the hostname of your new Quirrel deployment
QUIRREL_TOKENto the token generated in step 2
Your application will now start draining the old instance, new jobs will always be created on the new deployment. Cron Jobs are transferred on the first run of
Statspage on https://ui.quirrel.dev to watch the old instance drain fully. Depending on your application, this can take weeks.
After the old instance is fully drained, remove the