From d114a6248e8fcb13bdad39e7d89d7f2066bb3f7d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 23 Mar 2019 22:08:21 +0100 Subject: [PATCH] more configuration options, more performance --- lib/Travelynx.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 43b8846..e9d095b 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -74,10 +74,12 @@ sub startup { $self->config( hypnotoad => { - accepts => 40, + accepts => $ENV{TRAVELYNX_ACCEPTS} // 100, + clients => $ENV{TRAVELYNX_CLIENS} // 10, 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, + spare => $ENV{TRAVELYNX_SPARE} // 2, }, );