I'm playing with elb at the moment but I know nginx can do better. I'm
using nginx as load balancer reverse proxy at www.fbcal.com and this
save my app server. For redundancy you can use two nginx server in
front of your app server. I do not understand why ELB are requested in
front of nginx servers.
For statics, images, js and css there are stored on S3 automatically
and serbes via cloudfront. We use this technique at www.mixin.com
Le 5 oct. 2010 à 18:29, Lorenzo Salvadorini <[email protected]
t> a écrit :
2010/10/5 Frédéric Sidler <[email protected]>:
First (maybe stupid) question. Why do you use ELB and Nginx at the
same
time. They are supposed to do the same: load balacing the requests.
Hi Frédéric,
Nginx can do more than ELB: can be configured to cache some resources
(static files, as images, js, css) and serve it directly without any
load on the application server (app-role in Scalr): this is a
performance enhancement because Nginx scale better than Apache.
In this configuration if you want to make statistics based on logfiles
(awstats, Urchin, etc..), you must use the logfiles of Nginx, that has
the full list of requests of the clients, while the app-server has
only the requests that the proxy has made to him.
The simpler way to have this configuration in HA on Scalr is to
balance nginx with ELB, while Nginx balances all your apache
instances. Anyone has a better one?
L.
--
You received this message because you are subscribed to the Google
Groups "scalr-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en
.
--
You received this message because you are subscribed to the Google Groups
"scalr-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/scalr-discuss?hl=en.