我试图部署一个 Neo4j(3.1 企业)因果集群,我已经非常仔细地阅读了操作手册,并尝试在我的本地机器上创建一个 3 核心集群(使用全新安装和 docker)。但是,当我尝试在不同的机器(谷歌云计算)上部署集群时,所有集群成员都被困在:
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