metadb start
Starts the Metadb server to begin processing streaming data and serving client connections.Syntax
Options
Path to the Metadb data directory. Must already exist and contain a valid
metadb.conf file.File path for server log output. If not specified, logs are written to stderr.
Port number for the server to listen on.
Enable detailed logging for troubleshooting.
Enable extremely detailed logging (requires
METADB_DEV=on).Enable “unnecessary update” optimization to improve performance by skipping redundant updates.
Approximate memory usage limit in GiB. Helps prevent excessive memory consumption.
Do not commit Kafka offsets (development mode only).
Log source messages to specified file (development mode only).
Examples
Server Behavior
- The server listens on
127.0.0.1(localhost) by default - Default port is
8550 - Processes streaming data from configured Kafka sources
- Accepts client connections via PostgreSQL protocol
The data directory must be specified and must already exist. Run
metadb init first if you haven’t created a data directory.metadb stop
Gracefully shuts down the running Metadb server.Syntax
Options
Path to the Metadb data directory of the running server.
Enable verbose output during shutdown.
Enable extremely verbose output (requires
METADB_DEV=on).Examples
Important Notes
Running with systemd
For production deployments, configure Metadb as a systemd service:Service Configuration
Create/etc/systemd/system/metadb.service:
systemd Commands
Connecting to the Server
Once the server is running, connect usingpsql:
Metadb implements part of the PostgreSQL protocol to allow
psql as a client. It is not a full database system.