简体   繁体   English

如何使用Percona Xtradb集群设置多个实例?

[英]How to setup multi instances using percona xtradb cluster?

we are using 3node percona-xtradb cluster. 我们正在使用3node percona-xtradb集群。 Now we are planning to add one more instance in all 3 nodes and make it as a another cluster group. 现在,我们计划在所有3个节点中再添加一个实例,并将其作为另一个群集组。 How to setup multi instances using percona xtradb cluster? 如何使用Percona Xtradb集群设置多个实例?

I am not sure if we talk about the same when you mention multi-intance set-ups... 当您提到多实例设置时,我不确定我们是否谈论相同的内容...

Multi-intance set-ups in my understanding is running several mysqld processes on the same machine. 据我了解,多实例设置是在同一台机器上运行多个mysqld进程。

According to this definition it is possibly to have several Galera nodes on one machine (belonging to the same cluster or not does not mater). 根据此定义,一台机器上可能有多个Galera节点(是否属于同一集群,不属于同一集群)。 The trick is to not conflict IP addresses and ports. 诀窍是不冲突IP地址和端口。

If it makes sense is an other question... 如果说得通还有另一个问题...

We do it a as follows: 我们这样做如下:

# Node 1 of 2nd Cluster
[mysqld]
port                  = 3307
socket                = /tmp/mysql-3307.sock
wsrep_cluster_address = "gcomm://192.168.1.2:5677,192.168.1.3:5677?gmcast.listen_addr=tcp://192.168.1.1:5677"

To make it easier to operate we use MyEnv (MySQL multi-instance set-up environment): http://www.fromdual.com/myenv-mysql-basenv 为了简化操作,我们使用MyEnv(MySQL多实例设置环境): http ://www.fromdual.com/myenv-mysql-basenv

Regards, Oli 问候,奥利

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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