Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-22-2021 04:46 AM
Hello all,
"CREATE (n:Person {name: 'Andy', title: 'Developer'})"
the response from the 2 out of the 3 pods is"Query failed: No write service available for pool <BoltPool address=IPv4Address"
The structure of bolt URL is like the following :
bolt://<pod_name>.<service>.<namespase>.svc.cluster.local:7687
.
The fact that only in one of the 3 pods my script can run means to me that there is a serving pod each time randomly to which you can write. But neither its IP or bolt URL can be predefined.
I need something more generic in order to access neo4j cluster from another pod.
Could you please advise on something more generic in order to acccess neo4j service using bolt protocol (I need bold because I will use it with neomodel which has bolt as prerequisite) always inside the K8s cluster ?
I also tried deployment of neo4j cluster (3 pods) with Nodeport service and tried to use
bolt://<NodePort_IP:7687
. but without success.
Any ideas?
Thank you in advance,
Mary
Solved! Go to Solution.
11-22-2021 04:52 AM
if you change
The structure of bolt URL is like the following :
bolt://<pod_name>.<service>.<namespase>.svc.cluster.local:7687.
to
The structure of bolt URL is like the following :
neo4j://<pod_name>.<service>.<namespase>.svc.cluster.local:7687.
does this resolve your WRITE issue.
connecting with bolt://
effectively says go to a given cluster member and stay there.
Where as ne4j://
effectively says go to a given cluster member but WRITES will be automatically routed to the LEADER, even if it is at another cluster member, and provided the query is submiited via session.writeTransaction or similar
11-22-2021 04:52 AM
if you change
The structure of bolt URL is like the following :
bolt://<pod_name>.<service>.<namespase>.svc.cluster.local:7687.
to
The structure of bolt URL is like the following :
neo4j://<pod_name>.<service>.<namespase>.svc.cluster.local:7687.
does this resolve your WRITE issue.
connecting with bolt://
effectively says go to a given cluster member and stay there.
Where as ne4j://
effectively says go to a given cluster member but WRITES will be automatically routed to the LEADER, even if it is at another cluster member, and provided the query is submiited via session.writeTransaction or similar
11-23-2021 06:08 AM
Yes, It works now with ne4j://
but do you know if there is compatibility with neomodel, as I use this in order to create nodes and relationships via python?
11-23-2021 10:52 AM
and correction. my last post mentions ne4j://
when it should be neo4j://
As to does it work with neomodel? the usage is provided through a Neo4j database driver. So provided connection is through a Neo4j driver you should be all set
All the sessions of the conference are now available online