Search squid archive

Re: What's the algorithm to achieve AclRandom

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/09/2016 7:25 p.m., yanghe wrote:
> Hi
> Although he said it was random,certainly based on an algorithm.
> I would like to know what's the algorithm or principle  to achieve AclRandom.


ACL random uses the operating system random() number generator.

A new random number is selected each time the ACL is checked. The ACL
will declare match vs. no-match depending on whether that number is
below or above a defined squid.conf threshold value.

> Can I make certain the next traffic will go to which Web server?

Not using ACL random.

For certainty you need one of the many load balancing cache_peer
selection algorithms. Which naturally require the server(s) to be
cache_peer.

Amos

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux