Configuration and Command line flags Guide

March 29, 2017 ยท View on GitHub

The metad configuration file is written in YAML, and is optional. The command line flags can override the configuration file.

Configuration option and command line flags table

Configuration OptionCommand line flagDefaultDescription
--versionfalseShow metad version
--configThe configuration file path
backend--backendlocalThe metad backend type
nodes--nodesList of backend nodes
log_level--log_levelinfoLog level for metad print out: debug|info|warning
pid_file--pid_filePID to write to
xff--xfffalseX-Forwarded-For header support
prefix--prefixBackend key path prefix
group--groupdefaultThe metad's group name, same group share same mapping config from backend
only_self--only_selffalseOnly support self metadata query
listen--listen:80Address to listen to (TCP)
listen_manage--listen_manage127.0.0.1:9611Address to listen to for manage requests (TCP)
basic_auth--basic_authfalseUse Basic Auth to authenticate (only used with --backend=etcd|etcdv3)
client_ca_keys--client_ca_keysThe client ca keys (for etcd|etcdv3)
client_cert--client_certThe client cert (for etcd|etcdv3)
client_key--client_keyThe client key (for etcd|etcdv3)
username--usernameThe username to authenticate as (for etcd|etcdv3)
password--passwordThe password to authenticate with (for etcd|etcdv3)

Note: Command line bool flag can not to use '--xff=true' format, flag appear means true, otherwise false.