Run Server

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:

  1. Finds the latest checkpoint and replays partition files in parallel
  2. Replays WAL files starting from the latest checkpoint
  3. Starts Replication (if configured)
  4. 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