Skip to content

Is it possible to have multiple instances of the prefect server running with a shared db instance? #15850

Answered by desertaxle
calebhskim asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @calebhskim! Most features of Prefect will work if you run multiple servers against a single Postgres DB instance. The exception is some events and task-scheduling features will not work correctly because they use an in-memory messaging system that isn't shared between server instances.

It is technically possible to use an external message broker via the server.events.messaging_broker setting, but it would require implementing a broker module that follows this protocol. We'd like to implement a message broker that uses Redis in the future, which will make this a lot easier.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@calebhskim
Comment options

@desertaxle
Comment options

Answer selected by calebhskim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants