Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-19 Thread Alex Rousskov
On 09/19/2016 06:29 AM, ysu yang wrote: >> A. Define "session" in HTTP or Squid terms that Squid understands. Write >> ACLs (likely including an external ACL or an eCAP adapter) that will >> define a "session" for any given transaction and annotate same-session >> transactions

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-19 Thread ysu yang
Firstly of all.Thanks for your advice. > B. Adjust the ICAP service to store information about "sessions" in > such > a way that different service instances can share it. For example, if > all > ICAP services run on the same machine, they can use shared memory > segments to

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-18 Thread Alex Rousskov
On 09/18/2016 05:41 AM, yanghe wrote: > I have two ICAP servers and want load balancing.If I > use AclRandom,the traffic will be averagely distributed to > the two ICAP servers,but it can't guarantee the integrity of > the session.For example,I sent a message with 5 > attachments,which were

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-18 Thread ysu yang
Now,I have two ICAP servers and want load balancing.If I use AclRandom,the traffic will be averagely distributed to the two ICAP servers,but it can't guarantee the integrity of the session.For example,I sent a message with 5 attachments,which were randomly assigned to two ICAP servers. If

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-18 Thread yanghe
on 09/18/2016 03:46 PM, wrote: "Amos Jeffries"squ...@treenet.co.nz Now,I have two ICAP servers and want load balancing.If I use AclRandom,the traffic will be averagely distributed to the two ICAP servers,but it can't guarantee the integrity of the session.For example,I sent a message with 5

Re: [squid-users] What's the algorithm to achieve AclRandom

2016-09-18 Thread Amos Jeffries
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

[squid-users] What's the algorithm to achieve AclRandom

2016-09-18 Thread yanghe
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. Can I make certain the next traffic will go to which Web server? Thanks in advance 2016-09-18 yanghe