私は仕事を得ようとしています。MariaDB Galera 10.1はdebian 8 jessieの下にあります。MariaDB gcommバックエンド接続に失敗しました110
すべての必要なコンポーネントをインストールして構成しましたが、動作させることができません。
ノードはVPSとしてビルドされています。ノード1の
構成:ノード2の
[mysqld]
# Cluster node configurations
wsrep_cluster_address="gcomm://172.16.0.102,172.16.0.112"
wsrep_node_address="172.16.0.102"
wsrep_node_name='n1'
wsrep_cluster_name='cluster'
innodb_buffer_pool_size=400M
# Mandatory settings to enable Galera
wsrep_provider=/usr/lib/galera/libgalera_smm.so
binlog_format=ROW
default-storage-engine=InnoDB
innodb_autoinc_lock_mode=2
innodb_doublewrite=1
query_cache_size=0
bind-address=0.0.0.0
# Galera synchronisation configuration
wsrep_sst_method=rsync
構成:
[mysqld]
# Cluster node configurations
wsrep_cluster_address="gcomm://172.16.0.102,172.16.0.112"
wsrep_node_address="172.16.0.112"
wsrep_node_name='n2'
wsrep_cluster_name='cluster'
innodb_buffer_pool_size=400M
# Mandatory settings to enable Galera
wsrep_provider=/usr/lib/galera/libgalera_smm.so
binlog_format=ROW
default-storage-engine=InnoDB
innodb_autoinc_lock_mode=2
innodb_doublewrite=1
query_cache_size=0
bind-address=0.0.0.0
# Galera synchronisation configuration
wsrep_sst_method=rsync
Iは、ノード1のブートストラップコマンドで実行しようとしている
service mysql bootstrap
これは失敗します
ノード1::172.16サーバはvRackネットワーク内にあるProxmoxVE 4.0でインストール
2xの専用サーバは、次のようにVPS上で設定されている:i番目のエラーの
May 13 15:59:28 test mysqld[2397]: 2016-05-13 15:59:28 139843152635840 [ERROR] WSREP: failed to open gcomm backend connection: 110: failed to reach primary view: 110 (Connection timed out)
May 13 15:59:28 test mysqld[2397]: at gcomm/src/pc.cpp:connect():162
May 13 15:59:28 test mysqld[2397]: 2016-05-13 15:59:28 139843152635840 [ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():208: Failed to open backend connection: -110 (Connection timed out)
May 13 15:59:28 test mysqld[2397]: 2016-05-13 15:59:28 139843152635840 [ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1379: Failed to open channel 'cluster' at 'gcomm://172.16.0.102,172.16.0.112': -110 (Connection timed out)
May 13 15:59:28 test mysqld[2397]: 2016-05-13 15:59:28 139843152635840 [ERROR] WSREP: gcs connect failed: Connection timed out
May 13 15:59:28 test mysqld[2397]: 2016-05-13 15:59:28 139843152635840 [ERROR] WSREP: wsrep::connect(gcomm://172.16.0.102,172.16.0.112) failed: 7
May 13 15:59:28 test mysqld[2397]: 2016-05-13 15:59:28 139843152635840 [ERROR] Aborting
ネットワーク構成は、私が使用しているプライベートです。 0.102 //ノード1は、サーバー上にある1
ノード2:172.16.0.112 //ノード2は、サーバ上にある彼らはprivの上お互いにpingを実行することができるしている2
ネットワークを使いました。
あなたはそれぞれのProxmoxサーバーインスタンスのネットワークアダプタの設定を確認しなかった、VMがお互いに話をすることを可能にするための設定があります。 – iGNEOS
VMSにはお互いに話すのに問題はありません。仮想マシンからプライベートネットワークを使用する別の仮想マシンにpingまたはssh接続を行うだけで済みます。したがって、この場合は問題ではありません。 – Kamil