Description
When I type ./cbepctl -h, it gives me
Options:
-h, --help show this help message and exit
-a iterate over all buckets (requires admin u/p)
-b BUCKETNAME the bucket to get stats from (Default: default)
-p PASSWORD the password for the bucket if one exists
Usage: cbepctl host:port drain
or cbepctl host:port set type param value
or cbepctl host:port start
or cbepctl host:port stop
But I check the source code it shows much more usage. I think we shouldn't tell user "type param value" to contain all the following messages:
Persistence:
stop - stop persistence
start - start persistence
drain - wait until queues are drained
Available params for "set":
Available params for set checkpoint_param:
chk_max_items - Max number of items allowed in a checkpoint.
chk_period - Time bound (in sec.) on a checkpoint.
inconsistent_slave_chk - true if we allow a downstream master to receive
checkpoint begin/end messages from the upstream
master.
item_num_based_new_chk - true if a new checkpoint can be created based
on.
the number of items in the open checkpoint.
keep_closed_chks - true if we want to keep closed checkpoints in
memory.
as long as the current memory usage is below
high water mark.
max_checkpoints - Max number of checkpoints allowed per vbucket.
Available params for set flush_param:
alog_sleep_time - Access scanner interval (minute)
bg_fetch_delay - Delay before executing a bg fetch (test
feature).
couch_response_timeout - timeout in receiving a response from couchdb.
exp_pager_stime - Expiry Pager Sleeptime.
flushall_enabled - Enable flush operation.
klog_compactor_queue_cap - queue cap to throttle the log compactor.
klog_max_log_size - maximum size of a mutation log file allowed.
klog_max_entry_ratio - max ratio of # of items logged to # of unique
items.
queue_age_cap - Maximum queue age before flushing data.
max_size - Max memory used by the server.
max_txn_size - Maximum number of items in a flusher
transaction.
mem_high_wat - High water mark.
mem_low_wat - Low water mark.
min_data_age - Minimum data age before flushing data.
timing_log - path to log detailed timing stats.
Available params for "set tap_param":
tap_keepalive - Seconds to hold a named tap connection.
tap_throttle_queue_cap - Max disk write queue size to throttle tap
streams ('infinite' means no cap).
tap_throttle_threshold - Percentage of memory in use to throttle tap
streams.