Local cluster management

Suppose you want to test a migration locally before testing it on real environments. chschema allows you to create a temporary environment running on docker (docker & docker-composed must be installed to use this feature).

$> ./chschema cluster -h                                                                                  
local cluster management

Usage:
  cht cluster [flags]
  cht cluster [command]

Available Commands:
  clean       clean data on the local cluster
  config      get local cluster config
  connect     connect to a CH replica
  down        stop local cluster
  restart     restart local cluster
  status      local cluster status
  up          start local cluster

Flags:
      --agent-version string        clickhouse-companion agent version
      --clickhouse-version string   clickhouse version (default "21.3.13.9")
      --cluster-size int            cluster size (default 4)
      --data-dir string             local cluster data directory (default "./volumes")
  -h, --help                        help for cluster
      --root-dir string             local cluster root config directory
Edit this page on GitHub Updated at Tue, Apr 4, 2023