Replies: 1 comment
-
|
Is "Pgbackrest" container running as a Kamal accessory? The recommended best practice is to run cron jobs on dedicated container, separate from the application container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Cron jobs have been a headache for me for quite some time now and I haven't figured out a simple solution. Note, I am not using Ruby on Rails but I'm deploying Node and Go servers with it. Currently I have accessories Postgres and Clickhouse with read replicas and shared and I also have a dedicated backup server Pgbackrest.
I want to schedule regular backups but I need to run
pgbackrest backupcommand in the Pgbackrest container. I have other cron job needs but that's just an example.How should I handle cron jobs? Install and use cron on each individual container that I need it on? That would complicate some of my setup as I need to horizontally scale some of the containers. Should I create a dedicated container that handles cron jobs? How would it access containers and containers across hosts?
Beta Was this translation helpful? Give feedback.
All reactions