Hi! First I’d like to thank you for building such ...
# ask-community
t
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..
j
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 •
Deployment
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.
t
Alright thank you so much 🙂