[SFS] Load-balancers, like light-sabers, are (mostly) bullshit

Mike Shoup mike@shouptech.com
Wed, 10 Jun 2015 14:38:08 -0600


--20cf307f39e04c4b7605182fda8c
Content-Type: text/plain; charset=UTF-8

Wouldn't that depend on some timeout value for the client? What if one of
the servers hosting www.sofree.us is offline, and connection attempts just
aren't being responded to as opposed to being actively refused? Wouldn't my
web browser have to wait for the connection attempt to timeout before
moving on to the next one? I know web developers can be a picky bunch and
want pages to load as fast as insanely possible because attention spans.

On Wed, Jun 10, 2015 at 2:26 PM, David L. Willson <DLWillson@thegeek.nu>
wrote:

> Go to YouTube and search for "Light-sabers are bullshit"
>
> You're welcome. Now, to add to your happy.
>
> If you don't do clusters and have a basic understanding of DNS, you
> probably want to stop reading here.
>
> It turns out that having multiple A records for a name does most of what a
> load-balancer does.
>
> Almost every client program (*definitely* web-browsers) are smart enough
> to try the next address when they're refused connection *on a
> service-port*. So, you add two A records with the key "www.sofree.us" and
> when one web-server stops answering, the *client* will automatically try
> another address. Yes, really. So, if you have two A records, and http
> server is down, the clients will automatically move to the other. I always
> thought that half the clients would just hang or get errror messages. Nope.
> It just works. No need for haproxy or keepalived or an expensive hardware
> device, most of the time.
>
> Remember that I said that I mostly wanted to work here so I could learn
> stuph from the brilliant Chris Fedde? I'm paid.
>
> --
> David L. Willson
> Teacher, Engineer, Evangelist
> RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 UbuntuCP NovellCLA
> Mobile 720-333-LANS(5267)
> http://sofree.us
>
> This is a good time for a r3VOLution.
>
>

--20cf307f39e04c4b7605182fda8c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Wouldn&#39;t that depend on some timeout value for th=
e client? What if one of the servers hosting <a href=3D"http://www.sofree.u=
s">www.sofree.us</a> is offline, and connection attempts just aren&#39;t be=
ing responded to as opposed to being actively refused? Wouldn&#39;t my web =
browser have to wait for the connection attempt to timeout before moving on=
 to the next one? I know web developers can be a picky bunch and want pages=
 to load as fast as insanely possible because attention spans.<br></div></d=
iv><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, Jun 10=
, 2015 at 2:26 PM, David L. Willson <span dir=3D"ltr">&lt;<a href=3D"mailto=
:DLWillson@thegeek.nu" target=3D"_blank">DLWillson@thegeek.nu</a>&gt;</span=
> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div style=3D"font-family:t=
imes new roman,new york,times,serif;font-size:12pt;color:#000000">Go to You=
Tube and search for &quot;Light-sabers are bullshit&quot;<br><br>You&#39;re=
 welcome. Now, to add to your happy.<br><br>If you don&#39;t do clusters an=
d have a basic understanding of DNS, you probably want to stop reading here=
.<br><br>It turns out that having multiple A records for a name does most o=
f what a load-balancer does.<br><br>Almost every client program (*definitel=
y* web-browsers) are smart enough to try the next address when they&#39;re =
refused connection <b>on a service-port</b>. So, you add two A records with=
 the key &quot;<a href=3D"http://www.sofree.us" target=3D"_blank">www.sofre=
e.us</a>&quot; and when one web-server stops answering, the *client* will a=
utomatically try another address. Yes, really. So, if you have two A record=
s, and http server is down, the clients will automatically move to the othe=
r. I always thought that half the clients would just hang or get errror mes=
sages. Nope. It just works. No need for haproxy or keepalived or an expensi=
ve hardware device, most of the time.<br><br>Remember that I said that I mo=
stly wanted to work here so I could learn stuph from the brilliant Chris Fe=
dde? I&#39;m paid.<br><br><div><span name=3D"x"></span>--<br>David L. Wills=
on<br>Teacher, Engineer, Evangelist<br>RHCE+Satellite CCAH Network+ A+ Linu=
x+ LPIC-1 UbuntuCP NovellCLA<br>Mobile 720-333-LANS(5267)<br><a href=3D"htt=
p://sofree.us" target=3D"_blank">http://sofree.us</a><br><br>This is a good=
 time for a r3VOLution.<span name=3D"x"></span><br></div><br></div></div></=
blockquote></div><br></div>

--20cf307f39e04c4b7605182fda8c--