Marius Haberstock

07/31/2022, 3:56 PM
Hi, is it possible to start two Prefect Orion servers mapped to the same database? More specifically, I want to run one server for 1. outbound access. It should be used for users to view the UI 2. internal virtual network access. It should be used by agents to talk with the Prefect API Can I specify the same Postgres connection string for both servers? Or do you have any other solution ideas for my setup?

Anna Geller

07/31/2022, 6:01 PM
I wouldn't do it, as it will make things hard to troubleshoot and scale for you
🙏 1
@Marius Haberstock I think I might have misinterpreted - my interpretation was that you would want to run e.g. dev Orion and prod Orion server instances against the same DB If you meant though that you want to run two servers for scale, i.e. to handle more concurrent requests, that's totally fine and valid you can even have separate orion server processes for UI, scheduler and the API server
this setup is valid as long as your Postgres can handle those concurrent requests

Marius Haberstock

07/31/2022, 8:34 PM
Oh that’s cool! Thank you 🙂
🙌 2

Christopher Scheidel

08/08/2022, 3:49 PM
As we’re looking at test scaling for our use case, this is fantastic to know. Thank you!