<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi David,<div class=""><br class=""></div><div class="">Here’s a link to the files I use to start a Dancer2 app on RedHat:</div><div class="">rcfile: <a href="https://github.com/Q-Technologies/fcollect/blob/master/packaging/fcollect_rcfile" class="">https://github.com/Q-Technologies/fcollect/blob/master/packaging/fcollect_rcfile</a></div><div class="">it’s config: <a href="https://github.com/Q-Technologies/fcollect/blob/master/packaging/fcollect_sysconfig.example" class="">https://github.com/Q-Technologies/fcollect/blob/master/packaging/fcollect_sysconfig.example</a></div><div class="">(these are used for including in an RPM so have different names to when they are deployed)</div><div class=""><br class=""></div><div class="">Basically Starman runs as many workers as specified in the config file - each worker is a process - not a thread as such. I have one app which has 16 workers - it manages hundreds of simultaneous connections quite comfortably.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Matt</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 3 Nov 2015, at 4:02 pm, David H <<a href="mailto:untg99@gmail.com" class="">untg99@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Hi All,<br class=""><br class=""></div>I just need some basic advice on deploying Dancer2 onto RedHat.<br class=""></div>I am wanting to deploy it to be multithreaded, or at least not to block when it is running requests.<br class=""><br class=""></div>Starman and Twiggy both seem to not want to run multithreads for some reason and I tried the Apache way and it just seems to compile the code everytime which ended up being not any faster than a single thread.<br class=""><br class=""></div>What ways do people here deploy the app to be fast/multi-threaded?<br class=""><br class=""></div>I tried this:<br class=""><br class=""><a href="http://search.cpan.org/dist/Dancer/lib/Dancer/Deployment.pod#Running_as_a_cgi-script_%28or_fast-cgi%29_under_Apache" class="">http://search.cpan.org/dist/Dancer/lib/Dancer/Deployment.pod#Running_as_a_cgi-script_%28or_fast-cgi%29_under_Apache</a><br class=""></div><br class="">However it seemed to recompile everything for every request.<br class=""><br class=""><div class=""><div class=""><div class=""><div class="">I understand about static files being hosted in front etc...as well, which I may do in the future.<br class=""><br class=""></div><div class="">Thanks,<br class=""><br class=""></div><div class="">David<br class=""></div></div></div></div></div>
_______________________________________________<br class="">dancer-users mailing list<br class=""><a href="mailto:dancer-users@dancer.pm" class="">dancer-users@dancer.pm</a><br class="">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users<br class=""></div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="margin: 0px;" class=""><br class=""></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>