Thomas Reynaud

12/17/2020, 2:02 PM
Hi! First I’d like to thank you for building such a great product!! We are currently experimenting with Prefect and we were wondering what was the best practice when running a docker agent (or any agent actually) on a remote server. Should you just start it behind a screen, detach and leave it as a background process? Do you have any recommendations? It seems very dirty when running multiple agents on the same machine..

Jim Crist-Harif

12/17/2020, 2:26 PM
The recommendations depend on what platform you're deploying on. Most systems have some kind of managed-background-job configuration: • systemd/supervisor/... for single server systems •
for k8s • ECS service for ECS • ... Generally we recommend production deploys make use of something like this so you don't have to manually be monitoring the agent. However, since agents are stateless and lightweight, whatever is easiest for your team should be fine - there's no harm in stopping and restarting an agent as needed.

Thomas Reynaud

12/17/2020, 2:41 PM
Alright thank you so much 🙂