cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Neo4j Considerations in Orchestration Environments (like Kubernetes)

david_allen
Neo4j
Neo4j
7 REPLIES 7

david_allen
Neo4j
Neo4j

Related:

evdev
Node Link

Great article! In addition to David's last post, these were some of the best quality overviews of Neo4j cluster internals/ops out there

evdev
Node Link

I'm wondering if Google’s latest GKE networking features could promote any better solutions in regards to routing with Neo4j clusters on Kubernetes.

The newer VPC-native/Alias IP cluster options via Network Endpoint Groups (NEGs) seem to indicate that there's a revised architecture in the ingress routing setup that could be a step towards a simpler, more integrated approach to the current networking complications listed in the article.

Check out their release page where they introduce the new concepts for "container-native" load balancing...

Thanks for this suggestion! I'll check it out, and I'm not familiar with these new GKE features just yet. One of the things I'm looking for is the ability to advertise the right address within Neo4j, and also to be able to dynamically change the routing structure depending on cluster topology changes. I need to spend a bit of time researching this to see if I can combine these primitives to make that happen.

Hey david,
I have deployed neo4j in my kubernetes cluster using helm chart the incubator/neo4j version. For driver I am using neo4jrestclient which is a python driver. My driver code is a seperate service in kubernetes. Now I have two questions

  1. I think my driver will be able to connect to the neo4j cluster using the dns provided by the helm chart. but whether or not bolt is configured properly i dont know because it hasn't given me a bolt dns.
  2. I want to access the browser from the outside. So, I was thinking of deploying neo4j-browser as a seperate service which can then connect to the neo4j cluster internally while having only itself exposed. Would that be the right way to go?

I am a beginner so please help.

Thanks.

hi @gaurav.tripathi.che1 - on your first question, you can use the same DNS to connect via either HTTP or Bolt when your application is also inside of kubernetes. If you are using a cluster, I recommend using bolt+routing or neo4j:// as the connection scheme (neo4j:// in only for version 4). Bolt is properly configured inside of kubernetes.

In terms of access for the browser from outside -- this is a lot trickier because of how bolt+routing works. There are instructions on approaches for how you can do this in the first article linked at the very top of the thread.

p2a48225
Node

Hi David,

What would be your thought to use hostIP and hostPort; since host info can be added to external DNS; which external client can use it to resolve hostname in route table? This way implied host provision is also part of the neo4j cluster creation process; which hostname can be inject into the helm chart instead of static name/IP.

Thanks.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit - November 16 - 17, 2022.


Free NODES Training Series


October 19th -

Intro to Neo4j


October 20th -

Healthcare Analytics Using Neo4j


October 25th -

Handling Neo4j data with Apache Hop


October 26th -

Blazing Fast Graphs: Hands-on with Apache Arrow and Neo4j


November 2nd -

Graph EDA Using the Neo4j GDS Client