User Guide
Start and stop

Starting and stopping Pingora server

A pingora server is a regular unprivileged multithreaded process.

Start

By default, the server will run in the foreground.

A Pingora server by default takes the following command-line arguments:

ArgumentEffectdefault
-d, --daemonDaemonize the serverfalse
-t, --testTest the server conf and then exit (WIP)false
-c, --confThe path to the configuration fileempty string
-u, --upgradeThis server should gracefully upgrade a running serverfalse

Stop

A Pingora server will listen to the following signals.

SIGINT: fast shutdown

Upon receiving SIGINT (ctrl + c), the server will exit immediately with no delay. All unfinished requests will be interrupted. This behavior is usually less preferred because it could break requests.

SIGTERM: graceful shutdown

Upon receiving SIGTERM, the server will notify all its services to shutdown, wait for some preconfigured time and then exit. This behavior gives requests a grace period to finish.

SIGQUIT: graceful upgrade

Similar to SIGTERM, but the server will also transfer all its listening sockets to a new Pingora server so that there is no downtime during the upgrade. See the graceful upgrade section for more details.