[Seaside] Re: [Glass] [a bit offtopic] Redirect special seaside
request to a different VM
Mariano Martinez Peck
marianopeck at gmail.com
Wed Dec 18 17:52:39 UTC 2013
On Wed, Dec 18, 2013 at 2:48 PM, Dale K. Henrichs <
dale.henrichs at gemtalksystems.com> wrote:
> *From: *"Mariano Martinez Peck" <marianopeck at gmail.com>
> *To: *glass at lists.gemtalksystems.com, "Seaside - general discussion" <
> seaside at lists.squeakfoundation.org>
> *Sent: *Wednesday, December 18, 2013 9:40:06 AM
> *Subject: *[Glass] [a bit offtopic] Redirect special seaside request to
> a different VM
> Hi guys,
> I have some special requests that I want to redirect to another Gem. What
> I did in seaside is to implement #updateUrl: and add some parameter for
> those cases I want to send it to another Gem.
> Now, I don't know how to adapt nginx for such a thing. I am using FastCGI.
> So I need to check if such argument is present in the URL and if true, send
> it to another upstream. If not, use the normal upstream.
> Are you having trouble finding the parameter because you are using
> FastCGI? Or is the trouble purely an nginx question?
I guess the later. My usecase is this: I have some module inside the app
which have some reports which may take several seconds, even some minutes.
I know I could make them async, I know I have serviceVM, etc. But for the
moment I want to keep it simple. So all those request from those modules, I
want a special gem listening to them. Why? because I don't want to lock the
VM for many time and because I want a different gem conf file (assignee
more memory, etc).
So the thing is how can I make the if in nginx and send the request to the
appropriate upstream of gems.
> I have explained my problem here:
> but I didn't have any working answer.
> Does any of you have an idea how could I do that?
> Thanks in advance,
> Glass mailing list
> Glass at lists.gemtalksystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside