Start Server #
The amelie start <directory> [options]
command starts a server.
Optional server options can be passed to the command.
The Server will be started in the current terminal session, waiting for the
SIGINT
(Ctrl + C
) or SIGTERM
signals to shut down. The –daemon=true option can be used to start the
Server in the background. The <directory>/pid
file will be created in both cases, consisting
of the server process ID.
The server creates and keeps the log file <directory>/log
.
During the start, the Server does the following steps:
- Finds the latest checkpoint and replays partition files in parallel
- Replays WAL files starting from the latest checkpoint
- Starts Replication (if configured)
- Starts accepting incoming connections
By default, the Server runs without authentication and accepts HTTP
connections on the 3485
port and a
UNIX socket file
in the directory.
amelie start ./repo
Stop Server #
The amelie stop <directory>
command can stop an active server.
During the shutdown procedure, the server checks the shutdown
configuration variable
and acts accordingly.
graceful
- do a complete shutdown and free memory indexes.fast
- do a complete shutdown and do not free memory indexes.
The fast
mode is the default.
amelie stop ./repo