[squid-users] Question on developing customized Cache Selection algorithm from Round Robin, Least Load

Eliezer Croitoru eliezer at ngtech.co.il
Mon Aug 17 17:53:24 UTC 2015


Hey,

This topic is probably not for squid-users list but for squid-dev list.
Take a small peek at:
http://www.squid-cache.org/Support/mailing-lists.html#squid-dev

Sorry that I cannot answer on the roundrobin questions but while I was 
working on a simple load balancer script what I did was:
Use an array of numbers and shift from it each time while pushing back 
the object into the array.
In golang I started pesudo that a go routine(something like a forked 
process\function) is managing the shift and push or loop operations.

All The Bests,
Eliezer

On 17/08/2015 20:42, Du, Hongfei wrote:
> Hello
> We are in an attempt to extend Squid Cache selection algorithm to make a more sophisticated, let’s say to add WRR or WFQ, a few questions to start with:
>
> -        As we probably has to rewrite new algorithm and recompile it, so does anyone know where(or which file) is the existing Round Robin or Least Load algorithm defined in source codes?
>
> -        Is there straight forward method to tell/instruct squid to store content from network(e.g. an URL) in a predefined specific disk folder rather than using the selection algorithm itself?
>
> Any help would be very much appreciated!
>
> Greetings
>
> Hongfei Du
> Staff Engineer (UK Software)
> InterDigital UK, Inc.
> Shoreditch Business Center
> 64 Great Eastern Street
> London,  EC2A 3QR
> T: +44 207.749.9140
> Hongfei.Du at InterDigital.com
> www.InterDigital.com<http://www.interdigital.com>
>
> [cid:imagef00a56.BMP at 7a20fae9.4f930ca1]
>
> This e-mail is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and/or otherwise protected from disclosure to anyone other than its intended recipient. Unintended transmission shall not constitute waiver of any privilege or confidentiality obligation. If you received this communication in error, please do not review, copy or distribute it, notify me immediately by email, and delete the original message and any attachments. Unless expressly stated in this e-mail, nothing in this message or any attachment should be construed as a digital or electronic signature.
>
>
>
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>



More information about the squid-users mailing list