Connecting to Cluster
Before you can manage stores, you must connect to one or more Clustron managers.
All administrative operations are performed through managers.
What is a Manager?β
A manager runs on each machine and is responsible for:
- Creating stores
- Starting and stopping nodes
- Managing cluster state
Each machine runs one manager, typically on port 7801.
Connection Modelβ
How you connect depends on your setup.
Single Machineβ
- Only one manager exists
- Connect using
localhost
Connect-DkvManager -Managers localhost:7801
Multiple Machinesβ
- Each machine has its own manager
- You must connect to all managers
Connect-DkvManager -Managers 10.0.0.11:7801,10.0.0.12:7801
Command: Connect-DkvManagerβ
Use this command to establish a connection with one or more managers.
Syntaxβ
Connect-DkvManager -Managers <host1:port>,<host2:port>,...
Parametersβ
| Parameter | Description |
|---|---|
-Managers | Comma-separated list of manager endpoints |
Examplesβ
Single Machineβ
Connect-DkvManager -Managers localhost:7801
Multiple Machinesβ
Connect-DkvManager -Managers 10.0.0.11:7801,10.0.0.12:7801
What Happens After Connecting?β
Once connected:
- You can create and manage stores
- Commands are executed across the cluster
- The system is ready for administration
Important Notesβ
- One manager per machine
- Default management port is
7801 - In multi-machine setups, include all managers
- Connection is required before running other admin commands
Common Issuesβ
Cannot Connect to Managerβ
- Ensure Clustron is installed
- Verify the manager is running
- Check firewall rules for port
7801
Partial Connection (Multi-Machine)β
- Ensure all manager endpoints are reachable
- Verify network connectivity between machines
Whatβs Nextβ
π Continue to Creating a Store to define and configure your first store