2013/1/29 Maarten De Schrijver <[email protected]>
> @Arndt,
>
> I can run multiple instances of my application but how exactly can I then
> "route the slow running tasks to the one and the rest to the other"?
> Could you also elaborate on the session cache?
>
>
> Hi,
for example, I use nginx to proxy requests to my pyramid application. The
pyramid application runs twice on different ports.
Now for the routing: if the slow running tasks use a url prefix (e.g.
/tools) or unique path, I add this path to the nginx configuration
and let nginx handle the routing:
location ~ ^/(tools) {
proxy_set_header Host $host;
client_max_body_size 300m;
proxy_pass http://127.0.0.1:6011;
proxy_redirect off;
}
location ~ ^/(app) {
proxy_set_header Host $host;
client_max_body_size 300m;
proxy_pass http://127.0.0.1:6012;
proxy_redirect off;
}
Memcache for example is easy to set up and has pyramid binding. It runs
outside of the pyramid process so you can
connect both applications to the same cache. Well I don't know whether or
not it makes sense but you could use it to
post progress reports and pick them up in another view and send feedback to
the user.
Arndt.
--
Arndt Droullier / Nive cms cms.nive.co
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.