Forum: NGINX How to ensure good performance for the first X number of visitors

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
324e73fd59bd4a78e0e4214cc0c09a25?d=identicon&s=25 Andrew Galdes (Guest)
on 2013-10-08 10:36
(Received via mailing list)
Hi all,

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,
Cores, 50~GB RAM.

The CPU usage during peak time is 100%. Memory is about 50%.

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
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
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.

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
IP address.

Any thoughts?

-Andrew Galdes
Managing Director


AGIX Linux

Ph: 08 7324 4429
Mb: 0422 927 598

671d9faabfe3d3382be736b93fbfa1d5?d=identicon&s=25 Steve Holdoway (Guest)
on 2013-10-08 10:44
(Received via mailing list)
On 08/10/13 21:35, Andrew Galdes wrote:
> 503'd. So a visitor to the website can experience good usage from
> Any thoughts?
> Ph: 08 7324 4429
Hi Andrew,

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!

1266aa99d1601b47bbd3ec22affbb81c?d=identicon&s=25 B.R. (Guest)
on 2013-10-08 14:40
(Received via mailing list)

I would take a look at this module:

Official modules are available through the pre-compiled official
you won't need to do that by hand.
*B. R.*
This topic is locked and can not be replied to.