configuring multiple nginx workers

2016-06-27 Thread Charles Orth
Hi Gurus, I am looking to develop a discovery service feature on top of nginx. I have read http://www.aosabook.org/en/nginx.html and I have a couple questions based on what I've seen in the code base. If I have multiple workers configured using a single servers as an endpoint. I want to levera

Re: Fwd: How can i have multiple nginx plus servers route to the same app servers with sticky sessions on?

2015-06-18 Thread Maxim Dounin
Hello! On Thu, Jun 18, 2015 at 10:13:18AM -0700, Matt wrote: > I have multiple nginx instances behind an AWS elastic load balancer. In the > nginx config files, I am using ip_hash to force sticky sessions when > connecting upstream. Is there a way to sync the route tables between the &

Fwd: How can i have multiple nginx plus servers route to the same app servers with sticky sessions on?

2015-06-18 Thread Matt
I have multiple nginx instances behind an AWS elastic load balancer. In the nginx config files, I am using ip_hash to force sticky sessions when connecting upstream. Is there a way to sync the route tables between the multiple nginx servers, so that no matter which nginx server handles the request

Re: Multiple nginx instances share same proxy cache storage

2014-12-25 Thread ThomasLohner
Hi, > Hello! > > On Sun, Aug 10, 2014 at 05:24:04PM -0700, Robert Paprocki wrote: > > > Any options then to support an architecture with multiple nginx > > nodes sharing or distributing a proxy cache between them? i.e., > > a HAProxy machine load balanc

Re: Multiple nginx instances share same proxy cache storage

2014-08-11 Thread Maxim Dounin
Hello! On Sun, Aug 10, 2014 at 05:24:04PM -0700, Robert Paprocki wrote: > Any options then to support an architecture with multiple nginx > nodes sharing or distributing a proxy cache between them? i.e., > a HAProxy machine load balances to several nginx nodes (for > failover r

Re: Multiple nginx instances share same proxy cache storage

2014-08-11 Thread itpp2012
Robert Paprocki Wrote: --- > like rsyncing the cache contents between nodes thus would not work); > are there any recommendations to achieve such a solution? I would imagine a proxy location directive and location tag; shared memory pool1 = ngin

Re: Multiple nginx instances share same proxy cache storage

2014-08-10 Thread Robert Paprocki
Any options then to support an architecture with multiple nginx nodes sharing or distributing a proxy cache between them? i.e., a HAProxy machine load balances to several nginx nodes (for failover reasons), and each of these nodes handles http proxy + proxy cache for a remote origin? If nginx

Re: Multiple nginx instances share same proxy cache storage

2014-08-04 Thread Maxim Dounin
Hello! On Mon, Aug 04, 2014 at 07:42:20PM -0400, badtzhou wrote: > I am thinking about setting up multiple nginx instances share single proxy > cache storage using NAS, NFS or some kind of distributed file system. Cache > key will be the same for all nginx instances. > Will this

Multiple nginx instances share same proxy cache storage

2014-08-04 Thread badtzhou
I am thinking about setting up multiple nginx instances share single proxy cache storage using NAS, NFS or some kind of distributed file system. Cache key will be the same for all nginx instances. Will this theory work? What kind of problem will it cause(locking, cached corruption or missing

Re: multiple nginx

2013-08-18 Thread Steve Holdoway
On Sun, 2013-08-18 at 16:08 +0800, Edwin Lee wrote: > Hi, > > Is is alright to have two installations of nginx on the same machine? > I have a running instance of nginx with php installed from distribution > package manager. > Instead of writing another config, I would like to compile and install

Re: multiple nginx

2013-08-18 Thread MCoder
you could specify the configure file by -c option or even specify prefix by -p and could compile anther nginx instance by --prefix configure option 2013/8/18 Edwin Lee > Hi, > > Is is alright to have two installations of nginx on the same machine? > I have a running instance of nginx with php

multiple nginx

2013-08-18 Thread Edwin Lee
Hi, Is is alright to have two installations of nginx on the same machine? I have a running instance of nginx with php installed from distribution package manager. Instead of writing another config, I would like to compile and install nginx from source code and run as second instance. The second