Skip to content

Commit a615da9

Browse files
authored
Update setting up analytical cluster with GDS plugin on Kubernetes (#2172) (#2174)
Cherry-picked from #2172
1 parent 3acf16d commit a615da9

File tree

1 file changed

+70
-2
lines changed

1 file changed

+70
-2
lines changed

modules/ROOT/pages/kubernetes/quickstart-analytics-cluster.adoc

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,73 @@ helm install lb neo4j/neo4j-load-balancer --set neo4j.name="analytics-cluster"
176176
. When deployed, copy the `EXTERNAL_IP` of the LoadBalancer service.
177177
For more information, see xref:kubernetes/quickstart-cluster/access-outside-k8s.adoc[Access the Neo4j cluster from outside Kubernetes].
178178
. In a web browser, open the Neo4j Browser at _http://EXTERNAL_IP:7474/browser_ and log in using the password you have configured in your values YAML files.
179-
. Run the `SHOW SERVERS` command to verify that the cluster is deployed and running.
180-
. Run the `SHOW DATABASES` command to verify that the standalone server is of type `primary` and the GDS servers are of type `secondary`.
179+
. Verify that the cluster is deployed and running:
180+
+
181+
[source, cypher]
182+
----
183+
SHOW SERVERS;
184+
----
185+
+
186+
[queryresult]
187+
----
188+
+------------------------------------------------------------------------------------------------------------------------------------------+
189+
| name | address | state | health | hosting |
190+
+------------------------------------------------------------------------------------------------------------------------------------------+
191+
| "16cd6e9c-aa5a-4737-8ed5-e0df36ce52d3" | "gds2.default.svc.cluster.local:7687" | "Free" | "Available" | ["system"] |
192+
| "bafbe254-a8a2-498d-9b60-6b3fd0124045" | "primary.default.svc.cluster.local:7687" | "Enabled" | "Available" | ["neo4j", "system"] |
193+
| "f1478d5d-1718-4430-a9b6-26fe9695ca30" | "gds1.default.svc.cluster.local:7687" | "Free" | "Available" | ["system"] |
194+
+------------------------------------------------------------------------------------------------------------------------------------------+
195+
----
196+
The output shows that the secondary servers are in state `free` and host only the `system` database.
197+
198+
== Enable the secondary servers to support analytic queries
199+
200+
To support analytic queries on the secondary servers, you need to enable them and change the `neo4j` database topology to include them.
201+
202+
. In Neo4j Browser, enable the secondary servers to support analytic queries:
203+
+
204+
[source, cypher]
205+
----
206+
ENABLE SERVER "f1478d5d-1718-4430-a9b6-26fe9695ca30";
207+
ENABLE SERVER "16cd6e9c-aa5a-4737-8ed5-e0df36ce52d3";
208+
----
209+
. Alter the database topology to include the secondary servers:
210+
+
211+
[source, cypher]
212+
----
213+
ALTER DATABASE neo4j SET TOPOLOGY 1 PRIMARY 2 SECONDARY;
214+
----
215+
. Check the status of the `neo4j` database to confirm the change:
216+
+
217+
[source, cypher]
218+
----
219+
SHOW DATABASE neo4j;
220+
----
221+
+
222+
[queryresult]
223+
----
224+
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
225+
| name | type | aliases | access | address | role | writer | requestedStatus | currentStatus | statusMessage | default | home | constituents |
226+
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
227+
| "neo4j" | "standard" | [] | "read-write" | "primary.default.svc.cluster.local:7687" | "primary" | TRUE | "online" | "online" | "" | TRUE | TRUE | [] |
228+
| "neo4j" | "standard" | [] | "read-write" | "gds1.default.svc.cluster.local:7687" | "secondary" | FALSE | "online" | "online" | "" | TRUE | TRUE | [] |
229+
| "neo4j" | "standard" | [] | "read-write" | "gds2.default.svc.cluster.local:7687" | "secondary" | FALSE | "online" | "online" | "" | TRUE | TRUE | [] |
230+
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
231+
----
232+
. Check the status of all servers:
233+
+
234+
[source, cypher]
235+
----
236+
SHOW SERVERS;
237+
----
238+
+
239+
[queryresult]
240+
----
241+
+------------------------------------------------------------------------------------------------------------------------------------------+
242+
| name | address | state | health | hosting |
243+
+------------------------------------------------------------------------------------------------------------------------------------------+
244+
| "16cd6e9c-aa5a-4737-8ed5-e0df36ce52d3" | "gds2.default.svc.cluster.local:7687" | "Enabled" | "Available" | ["neo4j", "system"] |
245+
| "bafbe254-a8a2-498d-9b60-6b3fd0124045" | "primary.default.svc.cluster.local:7687" | "Enabled" | "Available" | ["neo4j", "system"] |
246+
| "f1478d5d-1718-4430-a9b6-26fe9695ca30" | "gds1.default.svc.cluster.local:7687" | "Enabled" | "Available" | ["neo4j", "system"] |
247+
+------------------------------------------------------------------------------------------------------------------------------------------+
248+
----

0 commit comments

Comments
 (0)