Skip to main content

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