<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/10/13 21:35, Andrew Galdes wrote:<br>
</div>
<blockquote
cite="mid:CALm+qqDb5cRDpsA=5U9FcSL3dwj757-9ygDj0U8Tg8mQEa6uuQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I'm looking for some guidance with Nginx. We have inherited
a web-server that experiences heavy load. The server is
running: Ubuntu Server 12.4, 24 Cores, 50~GB RAM.</div>
<div>
<br>
</div>
<div>The CPU usage during peak time is 100%. Memory is about
50%.</div>
<div><br>
</div>
<div>The client has asked that we configure Nginx to give the
best user experience for the first X number of visitors while
the others are 503'd. So a visitor to the website can
experience good usage from start to purchase (it's a commerce
site). While others who visit (over a threshold) would get 503
errors. This would ensure that, if you can get in, your
experience would be nice. If you can't, 503 and try again
later. </div>
<div><br>
</div>
<div>I see there are some modules that can do this with a
recompile but we'd rather not go down that path at this stage.
Given that http is session-less, i suppose cookies have been
used to achieve this. Or based on IP address. </div>
<div><br>
</div>
<div>Any thoughts?</div>
<div><br clear="all">
<div><br>
</div>
-- <br>
-Andrew Galdes<br>
Managing Director
<div><br>
</div>
<div>RHCSA, LPI, CCENT<br>
<br>
<div>AGIX Linux<br>
<br>
Ph: 08 7324 4429<br>
Mb: 0422 927 598<br>
<br>
Site: <a moz-do-not-send="true"
href="http://www.agix.com.au" target="_blank">http://www.agix.com.au</a>
<div>Twitter: <a moz-do-not-send="true"
href="http://twitter.com/agixlinux" target="_blank">http://twitter.com/agixlinux</a><br>
LinkedIn: <a moz-do-not-send="true"
href="http://au.linkedin.com/in/andrewgaldes"
target="_blank">http://au.linkedin.com/in/andrewgaldes</a></div>
<div><img moz-do-not-send="true"
src="http://www.agix.com.au/images/agix.jpg"><br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
</blockquote>
Hi Andrew,<br>
<br>
I seem to be doing exactly this for a living at the moment (
especially Magento installs ), and not that many timezones away. If
you want to drop me a line offlist, please do!<br>
<br>
Steve<br>
</body>
</html>