简体   繁体   中英

How to improve performance of MySQL group replication?

In MySQL 5.7, there is a new feature called Group replication used for fault tolerant system.

Group Replication Doc

I implemented the group replication with 1 master and 3 slaves and it working fine. But i feel it little slow. Slow means query taking time in execution on master. It may be because of master waits for acknowledgement from slave or time in certification acceptance etc.

I know it may be broad question but if you guide some parameters related to group replication to improve the performance then it will be helpful.

Thanks

As you say, the Master does have to communicate with its Slave(s). So, yes, that does slow down each transaction .

Each COMMIT is delayed by the coordination among the servers. So, two things might be possible in your app:

  • Fewer COMMITs ; that is more statements in each transaction. (But not too many.)
  • More parallelism at the client, hence more transactions running in parallel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM