Recommended approach: migrate data from standalone (nodesCount=1) to 3-node cluster (nodesCount=3) #201
Unanswered
abdul90082
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We are running GraphDB 10.6.3 with the Helm chart v10.6.3 in standalone mode (nodesCount = 1). We want to migrate to a new infrastructure with a 3-node cluster (nodesCount = 3) and need guidance on the best approach.
Our setup
Current (v1 — standalone):
Target (v2 — cluster):
What we want to do
Step 1: Deploy GraphDB on v2 with nodesCount = 1 (standalone), rsync the data from v1, and verify it works. This part is straightforward — same version, same mode, just copying files between two standalone instances.
Step 2: Scale from nodesCount = 1 to nodesCount = 3 via helm upgrade. Our goal is for graphdb-node-0 (which already has the 346 GB data) to become the Raft leader, and the two new empty nodes to sync from it.
What we see in the Helm chart code
Looking at the chart templates at tag 10.6.3, the create-graphdb-cluster-job (post-start-job.yaml) runs on post-upgrade and calls createCluster:
graphdb.sh
This POSTs the cluster config to graphdb-node-0 (our data-bearing node). The condition
{
{- if gt (int .Values.graphdb.clusterConfig.nodesCount) 1 }}means this job only runs when nodesCount > 1, which would be the case after our upgrade from 1 → 3.
Our Terraform code that controls this:
components/graphdb/main.tf
Our questions
Thank you!
All reactions