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