MariaDB Galera cluster on IPv6

转自:https://blog.widodh.nl/2016/02/mariadb-galera-cluster-on-ipv6/

MariaDB Galera cluster on IPv6

MariaDB Galera

I try to set as much IPv6-only infrastructure as possible and the same goes for a new MariaDB Galera cluster I had to build.

According to the release notes MariaDB 10.1 should have IPv6 support, but it didn’t work out for me. I wouldn’t get my Galera cluster to work over IPv6-only.

Galera

tracked the root-cause down to Galera not parsing the addresses properly and it had to be tweaked a bit.

Configuration

With the configuration posted below I was able to get a MariaDB 10.1 setup working on IPv6-only.

[mysqld]

query_cache_size=0

binlog_format=ROW

default-storage-engine=innodb

innodb_autoinc_lock_mode=2

innodb_doublewrite=1

query_cache_type=0

bind-address = ::

wsrep_on=ON

wsrep_provider=/usr/lib/galera/libgalera_smm.so

wsrep_cluster_name="ns01"

wsrep_cluster_address="gcomm://ns011.XXX.eu,ns012.XXX.nl,ns013.XXX.info"

wsrep_sst_method=rsync

wsrep_node_name="ns011"

wsrep_provider_options = "gmcast.listen_addr=tcp://[::]:4567; ist.recv_addr=[2a00:f10:121:XX:XX:a0ff:fe00:1bc7]:4568"

wsrep_node_address = "[2a00:f10:121:XX:XX:a0ff:fe00:1bc7]:4567"

wsrep_sst_receive_address = "[2a00:f10:121:XX:XX:a0ff:fe00:1bc7]:4444"

This resulted in the Galera cluster functioning properly on a IPv6-only network. It’s indeed a bit more configuration then with IPv4, but that will probably be resolved in a future release.

The MariaDB status properly shows being connected over IPv6:

MariaDB [(none)]> show status like 'wsrep_incoming_addresses';

+--------------------------+--------------------------------------------------------------------------------------------------------------------+

| Variable_name            | Value                                                                                                              |

+--------------------------+--------------------------------------------------------------------------------------------------------------------+

| wsrep_incoming_addresses | [2a00:f10:121:XX:XX:a0ff:fe00:1bc7]:3306,[2a00:f10:400:XX:XX:d8ff:fe00:2ef]:3306,[2a00:1d20:3:XX:XX:c01:3:53]:3306 |

+--------------------------+--------------------------------------------------------------------------------------------------------------------+

1 row in set (0.00 sec)

MariaDB [(none)]>

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 上一章 十七章 道路硬化得民心 全村皆当工程兵 即墨村100千伏安变压器,全由亮哥出资得以完成安装增容,村民的日常...
    ZHOU春雨阅读 3,047评论 4 12
  • 相逢时难 别更难 一一一一一一一一 少女七夕望碧空, 嫦娥泪洗广寒宫。 牛朗织女鹊桥会, 泪洒银河诉苦衷。 一夜...
    毛前进阅读 3,490评论 3 16
  • 这几天天气很闷很燥热,人也很烦躁。 看看自己,看看公司,心很难受。自己,学不进去,身体也有些小感冒,虚,太热了,但...
    沉愚落雁阅读 1,202评论 0 0

友情链接更多精彩内容