Multi-Node Configuration
Clustron DKV allows you to run stores across multiple nodes, either on a single machine or across multiple machines.
Understanding how to configure nodes correctly is key to building a scalable system.
Two Deployment Modelsβ
Clustron supports two common setups:
1. Single Machine (Multiple Nodes)β
You can run multiple nodes on the same machine.
- One manager per machine
- Multiple nodes controlled using
InstanceCount
Machine
βββ Manager (7801)
βββ node1 (7811 / 7861)
βββ node2 (7812 / 7862)
How to Configureβ
New-DkvStore `
-Name TestStore `
-InstancePrefix node `
-InstanceCount 2 `
-ClustronPort 7811 `
-ClientPort 7861
When to Useβ
- Local development
- Testing distributed behavior
- Running multiple nodes without additional machines
2. Multiple Machines (Servers)β
You can run nodes across multiple machines.
- One manager per machine
- Typically one node per machine
Machine A β Manager + node1
Machine B β Manager + node2
How to Configureβ
Run on each machine:
New-DkvStore `
-Name TestStore `
-InstancePrefix node `
-InstanceCount 1 `
-ClustronPort 7811 `
-ClientPort 7861
Manager Connectionβ
You must connect to all managers:
Connect-DkvManager -Managers 10.0.0.11:7801,10.0.0.12:7801
When to Useβ
- Production deployments
- High availability
- Scaling across servers
How Nodes Are Identifiedβ
Nodes are named using the prefix:
InstancePrefix = node
node1
node2
node3
Port Assignmentβ
Ports are assigned per node using incrementing values.
ClustronPort = 7811 β 7811, 7812, ...
ClientPort = 7861 β 7861, 7862, ...
Each node gets unique ports automatically.
Choosing the Right Setupβ
| Scenario | Recommended Setup |
|---|---|
| Local testing | Single machine (multi-node) |
| Small deployment | 1 node per machine |
| High scalability | Multiple machines |
| Fault tolerance required | Multiple machines |
Key Principlesβ
- One manager per machine
- Nodes are defined using
InstanceCount - Ports must not overlap
- Clients can connect to any node
Common Mistakesβ
Using Multiple Managers on One Machineβ
- Only one manager should run per machine
Incorrect InstanceCountβ
- Too high β port conflicts
- Too low β insufficient capacity
Not Connecting All Managersβ
- Required in multi-machine setups
- Ensures proper cluster coordination
Whatβs Nextβ
π Continue to Ports & Networking to understand how communication works