more configuration options, more performance

This commit is contained in:
Daniel Friesel 2019-03-23 22:08:21 +01:00
parent d0e1c5d1db
commit d114a6248e

View file

@ -74,10 +74,12 @@ sub startup {
$self->config( $self->config(
hypnotoad => { hypnotoad => {
accepts => 40, accepts => $ENV{TRAVELYNX_ACCEPTS} // 100,
clients => $ENV{TRAVELYNX_CLIENS} // 10,
listen => [ $ENV{TRAVELYNX_LISTEN} // 'http://*:8093' ], listen => [ $ENV{TRAVELYNX_LISTEN} // 'http://*:8093' ],
pid_file => '/tmp/travelynx.pid', pid_file => $ENV{TRAVELYNX_PID_FILE} // '/tmp/travelynx.pid',
workers => $ENV{TRAVELYNX_WORKERS} // 2, workers => $ENV{TRAVELYNX_WORKERS} // 2,
spare => $ENV{TRAVELYNX_SPARE} // 2,
}, },
); );