summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-23 22:08:21 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-23 22:08:21 +0100
commitd114a6248e8fcb13bdad39e7d89d7f2066bb3f7d (patch)
tree4acc1945d46226aa5716d7108c596d23aa410e85 /lib/Travelynx.pm
parentd0e1c5d1db7cdff6570974ad92120cf1f1085167 (diff)
more configuration options, more performance
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm6
1 files 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,
},
);