Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to setup multiple master-slave? #2205

Unanswered
henryonsoftware asked this question in Q&A
Discussion options

As Laravel is supporting define configuration about read-write servers for MySQL.
I want to ask how can we do it with our package. I read the docs but you just say config many hosts but not primary.

Let's say I have 1 master and 2 slaves:

  • The master is being used for write data only, if this master dies, one slave will become master for write data.
  • Another slave will allow read data only.

Can we do it on configuration? If not then anyone has the solutions for this problem?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2202 on February 20, 2021 04:19.

AltStyle によって変換されたページ (->オリジナル) /