Hi guys, Deploying prefect with multi api servers...
# ask-community
f
Hi guys, Deploying prefect with multi api servers (right now 1 api server and 1 background services for dev to test the setup). Following the docs here: https://docs.prefect.io/v3/advanced/self-hosted The containers dont work expected after i do separate background services. It has database connection issues and background services has no health check endpoint so faulty deployments happen. Is that part of the documentation is outdated or something i am missing here?
n
hi @Fazil Topal
The containers dont work expected after i do separate background services
can you explain how exactly you're trying to deploy prefect here? as stated, you haven't shared enough information to offer any help
f
I was following the setup here on aws, using api server, background services and worker setup via postgres and redis. Turns out serverless redis was not supported so it took long time to figure out and i had to patch prefect_redis to make it work with serverless setup. Now the errors gone. Using both serverless postgres and redis and see if this setup will scale. before the redis it worked but after using api server and background services i had to also add redis as the message broker and that's when the setup didn't function but right now with my patch it works. The redis servless changes were not that big so i think it can be pushed to prefect to support that? I can push a PR for that
n
it'd be super helpful if you could open a draft PR to the docs explaining what you had to do to make it work we can probably add an accordion covering this edge case
f
https://github.com/PrefectHQ/prefect/pull/19995 I created the redis. changes here to support cluster mode.