-
Notifications
You must be signed in to change notification settings - Fork 150
Closed
Description
Hey Lev,
We're doing some testing, and shifting things around. We have a db that is primary_only (just has one primary), one that is replica_only (just has one replica) and one that has both primaries, and replicas.
In our testing, we want to use the last option, but we only want queries to go to the replica. Now, because read_write_split is a general configuration option, we can't have it use exclude_primary (that makes our primary_only break.
I've got two ideas, and actually, the second one seems easier to implement:
- make
read_write_splita database configuration option, so we can override it toexclude_primaryjust for the last db. - create a new
read_write_splitoption that's something likeexclude_primary_if_replicas_availablethat will not exclude primary, if there is only one primary for the db.
Let me know what you think makes sense?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels