Frontend
Subcommand options
You can list all the options from the following command:
greptime frontend start --help
Option | Description |
---|---|
-c /--config-file | The configuration file for frontend |
--disable-dashboard | Disable dashboard http service, default is false |
--env-prefix <ENV_PREFIX> | The prefix of environment variables, default is GREPTIMEDB_FRONTEND |
--rpc-bind-addr <RPC_BIND_ADDR> | The address to bind the gRPC server |
--rpc-server-addr <RPC_SERVER_ADDR> | The address advertised to the metasrv, and used for connections from outside the host. 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-timeout <HTTP_TIMEOUT> | HTTP request timeout in seconds |
--influxdb-enable | Whether to enable InfluxDB protocol in HTTP API |
--metasrv-addrs <METASRV_ADDR> | Metasrv address list |
--mysql-addr <MYSQL_ADDR> | MySQL server address |
--postgres-addr <POSTGRES_ADDR> | Postgres server address |
--tls-cert-path <TLS_CERT_PATH> | The TLS public key file path |
--tls-key-path <TLS_KEY_PATH> | The TLS private key file path |
--tls-mode <TLS_MODE> | TLS Mode |
--user-provider <USER_PROVIDER> | You can refer authentication |
Examples
Start service with configurations
Starts a frontend instance with customized configurations:
greptime frontend start -c config/frontend.example.toml
Starts a frontend instance with command line arguments specifying the address of the metasrv:
greptime frontend start --metasrv-addrs=0.0.0.0:3002
The frontend.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.