zkctl
Pages in this section
zkctl
Initializes and controls zookeeper with Vitess-specific configuration.
Options
1. --alsologtostderr log to standard error as well as files
2. --config-file string Full path of the config file (with extension) to use. If set, --config-path, --config-type, and --config-name are ignored.
3. --config-file-not-found-handling ConfigFileNotFoundHandling Behavior when a config file is not found. (Options: error, exit, ignore, warn) (default warn)
4. --config-name string Name of the config file (without extension) to search for. (default "vtconfig")
5. --config-path strings Paths to search for config files in. (default [$WORKDIR])
6. --config-persistence-min-interval duration minimum interval between persisting dynamic config changes back to disk (if no change has occurred, nothing is done). (default 1s)
7. --config-type string Config file type (omit to infer config type from file extension).
8. -h, --help help for zkctl
9. --keep_logs duration keep logs for this long (using ctime) (zero to keep forever)
10. --keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
11. --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
12. --log_dir string If non-empty, write log files in this directory
13. --log_err_stacks log stack traces for errors
14. --log_rotate_max_size uint size in bytes at which logs are rotated (glog.MaxSize) (default 1887436800)
15. --logtostderr log to standard error instead of files
16. --pprof strings enable profiling
17. --purge_logs_interval duration how often try to remove old logs (default 1h0m0s)
18. --stderrthreshold severity logs at or above this threshold go to stderr (default 1)
19. --v Level log level for V logs
20. -v, --version print binary version
21. --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
22. --zk.cfg string zkid@server1:leaderPort1:electionPort1:clientPort1,...) (default "6@<hostname>:3801:3802:3803")
23. --zk.extra stringArray extra config line(s) to append verbatim to config (flag can be specified more than once)
24. --zk.myid uint which server do you want to be? only needed when running multiple instance on one box, otherwise myid is implied by hostname
SEE ALSO
- zkctl init - Generates a new config and then starts zookeeper.
- zkctl shutdown - Terminates a zookeeper server but keeps its data dir intact.
- zkctl start - Runs an already initialized zookeeper server.
- zkctl teardown - Shuts down the zookeeper server and removes its data dir.
