Hi Roy,<div><br></div><div>I think the solution outlined could be implemented without changing your application at all, actually. Once you are nearing capacity just signal it to Varnish and new users will be kept in a holding pattern purely in Varnish. Your application can be completely unaltered. The only change outside Varnish would be the probe that detects that you are nearing full capacity which sounds like a cronjob or some equivalent.</div>
<div><br></div><div>Cheers,</div><div><br></div><div>Per.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 18, 2012 at 11:42 PM, Narayan, Roy <span dir="ltr"><<a href="mailto:Roy.Narayan@au.harveynorman.com" target="_blank">Roy.Narayan@au.harveynorman.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Simon,<br>
<br>
Thanks for your reply.<br>
<br>
I am looking to achieve the solution within our existing infrastructure and without performing much changes to the current application deployment.<br>
<br>
I was trialling with "first_byte_timeout" which if reached will fall into "vcl_error" and then serving a busy page from there. However there are certain hurdles (how to distinguish a new user with existing and other things that I have not been able to think of)<br>
<br>
Is there anything in this regard that you or someone may have done ?<br>
<br>
Thanks<br>
Roy N.<br>
<div><div class="h5"><br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:varnish-misc-bounces@varnish-cache.org">varnish-misc-bounces@varnish-cache.org</a> [mailto:<a href="mailto:varnish-misc-bounces@varnish-cache.org">varnish-misc-bounces@varnish-cache.org</a>] On Behalf Of Simon Lyall<br>
Sent: Monday, 19 November 2012 9:17 AM<br>
To: <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
Subject: Re: Limiting users to the website<br>
<br>
On Mon, 19 Nov 2012, Narayan, Roy wrote:<br>
> I am looking to limit users to the website once we hit capacity. Any<br>
> new user will be directed to a “busy page” whilst existing users can continue on the site.<br>
><br>
> How can this be achieved via varnish ?<br>
><br>
> Any suggestions/solutions will be much appreciated.<br>
<br>
Give everybody a short-lived cookie. If they have the cookie then serve them pages as normal.<br>
<br>
"New" users won't have the cookie, so make the use a different backend and make that backend "fail first" with a pretty error page.<br>
<br>
<br>
--<br>
Simon Lyall | Very Busy | Web: <a href="http://www.darkmere.gen.nz/" target="_blank">http://www.darkmere.gen.nz/</a> "To stay awake all night adds a day to your life" - Stilgar | eMT.<br>
<br>
</div></div><div class="im">************************************************************************************************<br>
DISCLAIMER<br>
<br>
Confidential Communication: This email and any attachments are intended for the addressee(s) only and are confidential. They may contain legally privileged or copyright material. If you are not the intended recipient, please contact the sender immediately by reply email and delete this email and any attachments. You must not read, copy, use, distribute or disclose the contents of this email without consent of Harvey Norman Holdings Limited ACN 003 237 545 (and its related subsidiaries) ("Harvey Norman") does not accept responsibility for any unauthorised use or reliance on the contents of this email.<br>
<br>
Harvey Norman does not represent or warrant that the integrity of this email has been maintained or that it is free from errors, viruses, interceptions or interference. Any views expressed by the sender do not necessarily represent the views of Harvey Norman.<br>
<br>
This notice should not be removed from this email.<br>
************************************************************************************************<br>
</div>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></blockquote></div><br><br clear="all"><div><br></div>-- <br>
<div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">
<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CEO | Varnish Software AS<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>
<br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></div><br>
</div>