[ale] /etc/hosts and caching

Damon L. Chesser damon at damtek.com
Sun Nov 6 12:31:23 EST 2011


On Sat, 2011-11-05 at 13:28 -0400, Richard Bronosky wrote:
> Geeh, I'm glad someone read my demo! You can talk all day long, or you
> can code a proof. I encourage my developers to do that because at
> least 20% of what they find on the internet doesn't apply because of
> config differences.
> 
> I also would encourage the OP to try putting IP addresses into the
> applications to see what that does for performance. Unfortunately the
> concept of "test instead of talk" does not go very far on this list.

Actually, I appreciate the test.  We were also talking about just using
IPs in the application vs hostnames.  however, I don't yet have access
to those boxes, so I was gathering information. Change control and all
that.
> 
> On Nov 5, 2011 10:10 AM, "leam hall" <leamhall at gmail.com> wrote:
>         yeah, it took me a sec to figure out why you did that, but it
>         makes sense. Your example shows that for that
>         purpose /etc/hosts file changes are updated immediately. With
>         "immediate" being defined as sub 1 second. 
>          
>         I would assume there are edge cases where nscd causes issues.
>         Not sure what they are but with the wide spread usage of Linux
>         there are probably some places.
>          
>         Leam
>         
>         
>         On Fri, Nov 4, 2011 at 6:42 PM, Richard Bronosky
>         <Richard at bronosky.com> wrote:
>                 What is important to note about that example is that
>                 ping, like most applications that do network lookups,
>                 will only do the lookup once at the beginning. For
>                 that reason my example required that I put single ping
>                 calls in a loop
>                 
>         
>         _______________________________________________
>         Ale mailing list
>         Ale at ale.org
>         http://mail.ale.org/mailman/listinfo/ale
>         See JOBS, ANNOUNCE and SCHOOLS lists at
>         http://mail.ale.org/mailman/listinfo
>         
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo

-- 
Damon
damon at damtek.com



More information about the Ale mailing list