Metasrv
Subcommand options
You can list all the options from the following command:
greptime metasrv start --help
Option | Description |
---|---|
-c /--config-file | The configuration file for metasrv |
--enable-region-failover | Whether to enable region failover, default is false . Please refer to Region Failover for the conditions to enable it. |
--env-prefix <ENV_PREFIX> | The prefix of environment variables, default is GREPTIMEDB_METASRV |
--rpc-bind-addr <RPC_BIND_ADDR> | The address to bind the gRPC server |
--rpc-server-addr <RPC_SERVER_ADDR> | The communication server address for the other components(frontend, datanode, flownode, etc.) If left empty or unset, the server will automatically use the IP address of the first network interface on the host, with the same port number as the one specified in rpc_bind_addr |
--http-addr <HTTP_ADDR> | HTTP server address |
--http-timeout <HTTP_TIMEOUT> | HTTP request timeout in seconds |
--selector <SELECTOR> | You can refer selector-type |
--store-addrs <STORE_ADDR> | Comma or space separated key-value storage server (default is etcd) address, used for storing metadata |
--use-memory-store | Use memory store instead of etcd, for test purpose only |
Examples
Start service with configurations
Starts a metasrv with customized configurations:
greptime metasrv start -c config/metasrv.example.toml
The metasrv.example.toml
configuration file comes from the config
directory of the [GreptimeDB](https://github.com/GreptimeTeam/greptimedb/)
repository. You can find more example configuration files there. The -c
option specifies the configuration file, for more information check Configuration.