<div dir="ltr">Hello Guys,<div>thanks a lot for the answer Geof.</div><div>The shard director does what is expected to do.</div><div>It was a misunderstanding from my side.</div><div><br></div><div>Thanks again</div><div>and sorry for the noise</div><div><br></div><div>Regards</div><div><br></div><div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 14, 2019 at 8:32 PM Geoff Simmons <<a href="mailto:geoff@uplex.de" target="_blank">geoff@uplex.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/14/19 11:43, Yiannis Karayiannidis wrote:<br>
> <br>
>  sub vcl_init {<br>
>         new dir_b = directors.shard();<br>
>                 dir_b .add_backend(wb3);<br>
>                 dir_b .add_backend(wb2);<br>
>                 dir_b.add_backend(wb1);<br>
>                 dir_b .set_rampup(2m);<br>
>                 dir_b .reconfigure();<br>
> }<br>
> <br>
> I'm trying to debug  rampup period for a failed backend, cause it seems to<br>
> me that the server is getting back in the pool before the 2 minutes rampup<br>
> period.<br>
<br>
What exactly do you mean by "getting back in the pool before the 2<br>
minutes"? What were you expecting?<br>
<br>
Rampup means that requests are directed to a backend, gradually and<br>
increasingly, during the rampup period after a backend is added to the<br>
pool. Say after the backend goes from failing health probes to being<br>
healthy again.<br>
<br>
Specifically, set_rampup(2m) means that during the two minutes after a<br>
backend is added to the pool, requests are directed to the alternative<br>
backend with linear decreasing probability, from 100% just after the<br>
backend is added, to 0% after the two minutes are up. For example, at 90<br>
seconds, there is a 75% probability that the backend will receive<br>
requests that sharding would direct to it.<br>
<br>
So it's to be expected that a backend will receive requests during rampup.<br>
<br>
<br>
HTH,<br>
Geoff<br>
-- <br>
** * * UPLEX - Nils Goroll Systemoptimierung<br>
<br>
Scheffelstraße 32<br>
22301 Hamburg<br>
<br>
Tel +49 40 2880 5731<br>
Mob +49 176 636 90917<br>
Fax +49 40 42949753<br>
<br>
<a href="http://uplex.de" rel="noreferrer" target="_blank">http://uplex.de</a><br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" border="0" style="overflow:hidden;font-family:Arial,Helvetica,sans-serif">     <tbody><tr>         <td>             <div style="height:20px"> </div>         </td>     </tr>     <tr>         <td>             <table cellspacing="0" cellpadding="0" border="0">                 <tbody><tr>                     <td style="border-right:3px solid rgb(26,96,168);padding-right:10px;min-height:72px">                         <img style="padding-top: 9px;" width="44" height="45" src="https://stoiximan.s3.amazonaws.com/email-signature/stoiximan_services/logo.png" alt="Stoiximan Logo">                     </td>                     <td style="padding-left:10px">                         <div style="font-size:16px;line-height:18px;color:rgb(26,96,168);font-weight:bold">Yiannis Karayiannidis</div>                         <div style="font-size:13px;line-height:1em;color:rgb(37,51,64);padding:4px 0px">Head of Systems</div>                          <div style="display:block;overflow:hidden;min-height:15px;margin-top:5px">                             <a style="display:inline-block;width:15px;height:15px" href="https://www.facebook.com/stoiximan.gr" target="_blank">                                         <img width="15" height="15" style="display: block; border: 0px;" src="https://stoiximan.s3.amazonaws.com/email-signature/stoiximan/facebook.png">                                     </a>                                     <a style="display:inline-block;width:15px;height:15px;margin:0px 2px" href="http://twitter.com/stoiximan" target="_blank">                                         <img width="15" height="15" style="display: block; border: 0px;" src="https://stoiximan.s3.amazonaws.com/email-signature/stoiximan/twitter.png">                                     </a>                                     <a style="display:inline-block;width:15px;height:15px" href="https://www.instagram.com/stoiximan.gr/" target="_blank">                                         <img width="15" height="15" style="display: block; border: 0px;" src="https://stoiximan.s3.amazonaws.com/email-signature/stoiximan/instagram.png">                                     </a>                                     <a style="display:inline-block;width:15px;height:15px;margin:0px 2px" href="https://www.youtube.com/user/StoiximanTV/" target="_blank">                                         <img width="15" height="15" style="display: block; border: 0px;" src="https://stoiximan.s3.amazonaws.com/email-signature/stoiximan/youtube.png">                                     </a>                                     <a style="display:inline-block;width:15px;height:15px" href="https://www.linkedin.com/company/stoiximan-gr" target="_blank">                                         <img width="15" height="15" style="display: block; border: 0px;" src="https://stoiximan.s3.amazonaws.com/email-signature/stoiximan/linkedin.png">                                     </a>                         </div>                     </td>                 </tr>             </tbody></table>         </td>     </tr>     <tr>         <td>             <div style="height:12px"> </div>         </td>     </tr>     <tr>         <td>             <table cellspacing="0" cellpadding="2" border="0" style="font-family:Arial,Helvetica,sans-serif;line-height:14px">                 <tbody><tr>                                                          <td style="line-height:14px">                                              <div style="display:inline-block;line-height:14px;padding-right:5px;border-right:1px solid rgb(26,96,168)">                             <span style="font-size:12px;line-height:1em;color:rgb(26,96,168);font-weight:bold">Mob:</span>                             <span style="font-size:13px;line-height:1em;color:rgb(37,51,64)"><a href="tel:+30+6981661410" style="color:rgb(37,51,64);text-decoration:none" target="_blank">+30 6981661410</a></span>                         </div>                          </td>                                         <td style="line-height:14px">                         <div style="display:inline-block;line-height:14px">                             <span style="font-size:12px;line-height:1em;color:rgb(26,96,168);font-weight:bold">E-mail:</span>                             <span style="font-size:13px;line-height:1em;color:rgb(37,51,64)"><a href="mailto:y.karayiannidis@stoiximan.gr" style="color:rgb(37,51,64);text-decoration:none" target="_blank">y.karayiannidis@stoiximan.gr</a></span>                         </div>                     </td>                 </tr>                 <tr>                     <td>                         <div style="height:4px"> </div>                     </td>                 </tr>             </tbody></table>         </td>     </tr>     <tr>         <td>             <table cellspacing="0" cellpadding="0" border="0">                 <tbody><tr>                     <td>                         <img width="310" height="30" style="display: block; border: 0px;" src="https://stoiximan.s3-eu-west-1.amazonaws.com/email-signature/stoiximan/combo-v2.png">                     </td>                 </tr>             </tbody></table>         </td>     </tr> </tbody></table></div>