[dancer-users] Recommendations for NGINX + Dancer deployment, no Starman

Pedro Melo melo at simplicidade.org
Mon Nov 4 06:57:20 GMT 2013


Hi,

On Fri, Nov 1, 2013 at 12:56 PM, Assaf Gordon <assafgordon at gmail.com> wrote:

> I'm looking to deploy a small (or multiple small) Dancer application on a
> small server (512MB).
> Memory efficiency and stability are more important than high-performance
> in this instance.
>
> I've switched from Apache to NGINX, which saved a lot of memory.
> I'm now looking to use either FastCGI or CGI with NGINX + Dancer - are
> there any examples for this kind of deployment?
> other recommendations?

I want to avoid running an external process (e.g.
> plackup/starman/twiggy/etc.).
>

Yeah… Running the external process would be my recomendation.

Start::Server + Starlet with 1 or 2 workers for each app is my current
setup for situations just like yours, low memory, low performance
requirements, because it keeps me nimble in terms of upgrades.

You might want to look at uWSGI server though. You could use one single
instance to keep track of all your apps. I don't know if it has on-demand
workers, but if it did, it could solve your entire problem. The problem is
that it is so flexible that it will take some time to find the proper
solution for it, but on the plus side the uWSGI mailing list is **very**
welcome and responsive.

I've been considering them on my stack for quite some time, and it would
solve several problems with a single tool, but haven't found the time. :)

Bye,
-- 
Pedro Melo
@pedromelo
http://www.simplicidade.org/
xmpp:melo at simplicidade.org
mailto:melo at simplicidade.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20131104/dbdfced4/attachment-0001.html>


More information about the dancer-users mailing list