How to partition Mysql across MULTIPLE SERVERS?

前端 未结 3 1851
别跟我提以往
别跟我提以往 2020-12-12 16:41

I know that horizontal partitioning...you can create many tables.

How can you do this with multiple servers? This will allow Mysql to scale.

Create X tables

3条回答
  •  Happy的楠姐
    2020-12-12 17:23

    But you need to keep in mind that if you for some reasons want to take this solution to cloud and make it multi tenant then the above configuration might become more challenging. Think about this -

    1. you logged into the system and the DB gets selected (DB swap) based on the user- organization table
    2. This would be the new Master table that you are talking to now with it's own slaves
    3. But the point 2 above also needs sharding now since you want to make sure that your scale out does not become a bottleneck.

    So now the question is that you will probably need to think how can you do this sharding in a mster-slave kind of env where slaves are typically for reading and masters for writing.

    cheers ! Gary

提交回复
热议问题