Starting & Stopping Stores
After creating a store, you need to start it before it can be used.
You can also stop it when it is no longer needed.
Store Lifecycleβ
A store goes through the following states:
Created β Started β Running β Stopped
- Created β configuration exists
- Started β nodes are launched
- Running β store is active and accepting requests
- Stopped β nodes are shut down
Command: Start-DkvStoreβ
Starts all nodes for a store.
Syntaxβ
Start-DkvStore <StoreName>
Exampleβ
Start-DkvStore TestStore
What Happens When You Start a Store?β
- All configured nodes are launched
- Cluster is formed
- Store becomes available for clients
Command: Stop-DkvStoreβ
Stops all nodes for a store.
Syntaxβ
Stop-DkvStore <StoreName>
Exampleβ
Stop-DkvStore TestStore
What Happens When You Stop a Store?β
- All nodes are shut down
- Clients can no longer connect
- In-memory state is cleared (unless persisted externally)
Important Notesβ
- A store must be started before clients can connect
- Stopping a store disconnects all clients
- You can restart a store using
Start-DkvStore
Common Issuesβ
Store Does Not Startβ
- Ensure ports are available
- Verify managers are connected
- Check previous configuration
Clients Cannot Connectβ
- Ensure the store is running
- Verify client port configuration
- Check firewall rules
Whatβs Nextβ
π Continue to Viewing Store Information to inspect store status and details