<div><div dir="auto">Hi Rahul,</div><div dir="auto"><br></div></div><div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 27 Apr 2022 at 4:44 pm, rahul gupta <<a href="mailto:mca2rahulbit@gmail.com" target="_blank">mca2rahulbit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">Hi Team,<div><br></div><div>I am new to the Squid community, can someone please help/guide me?</div><div><br></div><div>Need to know, How to enable health check or get 200 return from squid? it returns 400, </div></div></blockquote><div dir="auto"><br></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">It sounds like you are using an HTTP healthcheck in the NLB which issues a GET / request on the instance and returns an HTTP 400.</span><br></div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div dir="auto">when associating a target in AWS NLB, it only accepts from 200-399 and also not allowed to override?</div></div></blockquote><div dir="auto"><br></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><div style="border-color:rgb(0,0,0);color:rgb(0,0,0)" dir="auto"><div dir="auto" style="border-color:rgb(0,0,0)">I don't think there's a way to override the expected HTTP status code in the NLB. Using an ALB in front of squid will not solve this problem as well.</div><div dir="auto" style="border-color:rgb(0,0,0)"><br></div><div dir="auto" style="border-color:rgb(0,0,0)">I suggest using a TCP healthcheck in your NLB's target group.</div><div dir="auto" style="border-color:rgb(0,0,0)"><br></div><div dir="auto" style="border-color:rgb(0,0,0)">HTH.</div><div dir="auto" style="border-color:rgb(0,0,0)"><br></div><div dir="auto" style="border-color:rgb(0,0,0)">Best regards, ron</div></div><div style="border-color:rgb(0,0,0);color:rgb(0,0,0)" dir="auto"></div></span></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div dir="auto"></div><div>Any help would be appreciated. thanks.</div><div><br></div><div>Regards</div><div>Rahul </div></div>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div></div>
</div>