Hello,
I have a Neo4J Cluster setup as an analytics cluster with 1 primary node and 8 secondaries.
I have added a database with 1 primary and 2 secondaries topology and it synced fine, however, the routing table only displays the primary node with READ role therefore only the primary node serves the queries that are comming in via neo4j protocol. There is no local firewall and all servers are in the same network with no restrictions.
neo4j.conf for primary:
server.default_listen_address=0.0.0.0
server.default_advertised_address=primary
dbms.cluster.discovery.endpoints=primary:5000
dbms.routing.default_router=SERVER
dbms.routing.enabled=true
server.discovery.listen_address=:5000
server.discovery.advertised_address=:5000
server.cluster.listen_address=:6000
server.cluster.advertised_address=:6000
server.cluster.raft.listen_address=:7000
server.cluster.raft.advertised_address=:7000
server.routing.listen_address=:7688
server.routing.advertised_address=:7688
server.bolt.enabled=true
server.bolt.listen_address=:7687
server.bolt.advertised_address=:7687
server.http.enabled=true
server.http.listen_address=:7474
server.http.advertised_address=:7474
neo4j.conf for secondaries:
server.default_listen_address=0.0.0.0
server.default_advertised_address=rr-1
dbms.cluster.discovery.endpoints=primary:5000,rr-1:5000,rr-2:5000,rr-3:5000,rr-4:5000,rr-5:5000,rr-6:5000,rr-7:5000,rr-8:5000
initial.server.mode_constraint=SECONDARY
server.cluster.system_database_mode=SECONDARY
server.routing.listen_address=:7688
server.routing.advertised_address=:7688
dbms.routing.enabled=true
dbms.routing.default_router=SERVER
server.discovery.listen_address=:5000
server.discovery.advertised_address=:5000
server.cluster.listen_address=:6000
server.cluster.advertised_address=:6000
server.cluster.raft.listen_address=:7000
server.cluster.raft.advertised_address=:7000
server.bolt.enabled=true
server.bolt.listen_address=:7687
server.bolt.advertised_address=:7687
server.http.enabled=true
server.http.listen_address=:7474
server.http.advertised_address=:7474
I have also uploaded the output of show database and routing table;
╒═══╤═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╕
│ttl│servers │
╞═══╪═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
│300│[{role: "WRITE", addresses: ["primary:7687"]}, {role: "READ", addresses: ["primary:7687"]}, {role: "ROUTE", addresses: ["primary:7687"]}]│
└───┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘