我试图部署一个Neo4j(3.1企业版)因果群集, 我非常仔细地阅读了操作手册,并尝试在我的本地机器上创建一个3核心集群(使用新安装和docker)。 但是,当我尝试在不同的计算机上部署群集(Google Cloud Compute)时,所有群集成员都会陷入困境:
Starting Neo4j.
2017-03-23 09:07:47.164+0000 INFO No SSL certificate found, generating a self-signed certificate..
2017-03-23 09:07:47.886+0000 INFO Starting...
2017-03-23 09:07:49.108+0000 INFO Bolt enabled on 0.0.0.0:7687.
2017-03-23 09:07:49.126+0000 INFO Initiating metrics...
2017-03-23 09:07:49.374+0000 INFO My connection info: [
Discovery: listen=0.0.0.0:5000, advertised=<ip1>:5000,
Transaction: listen=0.0.0.0:6000, advertised=<ip1>:6000,
Raft: listen=0.0.0.0:7000, advertised=<ip1>:7000,
Client Connector Addresses: bolt://localhost:7687,http://localhost:7474,https://localhost:7473]
2017-03-23 09:07:49.377+0000 INFO Discovering cluster with initial members: [<ip1>:5000, <ip2>:5000, <ip3>:5000]
2017-03-23 09:07:49.378+0000 INFO Attempting to connect to the other cluster members before continuing...
我尝试使用公共/私有IP,更改端口,我还检查了5000端口是否打开(是的,我添加了所需的防火墙规则):
nc -zv <ip2> 5000
Connection to <ip2> 5000 port [tcp/*] succeeded!
但仍然没有运气得到群集,任何人?
编辑:
我在不同的GCP机器上运行以下docker容器:
docker run --name=neo4j-core --detach \
--publish=7474:7474 --publish=7687:7687 \
--publish=5000:5000 --publish=7000:7000 \
--env=NEO4J_dbms_mode=CORE \
--env=NEO4J_causalClustering_expectedCoreClusterSize=3 \
--env=NEO4J_causalClustering_initialDiscoveryMembers=<core1-public-address>:5000,<core2-public-address>:5000,<core3-public-address>:5000 \
--env=NEO4J_causalClustering_discoveryAdvertisedAddress=<public-address>:5000 \
--env=NEO4J_causalClustering_transactionAdvertisedAddress=<public-address>:6000 \
--env=NEO4J_causalClustering_raftAdvertisedAddress=<public-address>:7000 \
neo4j:3.1-enterprise