Sebastian S
11/18/2025, 9:11 PMMarvin
11/18/2025, 9:11 PMNate
11/18/2025, 9:12 PMSebastian S
11/18/2025, 9:13 PMNate
11/18/2025, 9:13 PMSebastian S
11/18/2025, 9:15 PMSebastian S
11/18/2025, 9:15 PMMarvin
11/18/2025, 9:16 PMprefect server start --host 0.0.0.0 --no-services
- Run background services separately (one pod for most setups; add replicas primarily for event-driven services if needed):
prefect server services start
Prereqs for replicas/HA
- Use PostgreSQL (not SQLite) and run DB migrations once.
- Use Redis for messaging/order/leases; point all replicas to the same Redis and Postgres.
- Common env vars:
PREFECT_API_DATABASE_CONNECTION_URL=<postgresql+asyncpg://user:pass@host:5432/prefect>
PREFECT_MESSAGING_BROKER=prefect_redis.messaging
PREFECT_MESSAGING_CACHE=prefect_redis.messaging
PREFECT_SERVER_EVENTS_CAUSAL_ORDERING=prefect_redis.ordering
PREFECT_SERVER_CONCURRENCY_LEASE_STORAGE=prefect_redis.lease_storage
If you share a bit more about your setup (Kubernetes vs. Docker, Postgres/Redis availability) and which services you want to scale, I can suggest an exact layout and env file for you.Sebastian S
11/18/2025, 9:19 PMNate
11/18/2025, 9:21 PMprefect server services start command runs them all together
so you could very well write your own python entrypoints and start specific services per pod until we either allow doing that via the CLI or audit all the services and make sure they can all be horizontally scaledNate
11/18/2025, 9:22 PMSebastian S
11/18/2025, 9:37 PMSebastian S
11/18/2025, 9:37 PMNate
11/18/2025, 9:38 PMSebastian S
11/18/2025, 9:40 PMNate
11/18/2025, 9:45 PMSebastian S
11/18/2025, 10:31 PMNate
11/18/2025, 10:32 PMSebastian S
11/18/2025, 10:33 PMNate
11/18/2025, 10:33 PMSebastian S
11/18/2025, 10:34 PMNate
11/18/2025, 10:34 PMNate
11/18/2025, 10:34 PM