All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Grinevich <grin@spez.com.ua>
To: lartc@vger.kernel.org
Subject: Re:[LARTC] Routing for Squid
Date: Sat, 27 Dec 2003 12:09:52 +0000	[thread overview]
Message-ID: <marc-lartc-107252714619257@msgid-missing> (raw)
In-Reply-To: <marc-lartc-107225479907223@msgid-missing>

Hi.

I use squid (2.5.STABLE4) with probing to parent squid's on ISP-side (2
ISP in my case). And also use "weight" parameter for parents.
For first ISP I'v use weight 1, for second 10.
Like this

cache_peer 1.1.1.1 parent 3128 3130 no-delay weight\x10
cache_peer 2.2.2.2 parent 3128 3130 no-delay weight=1

So most requests go via 10-weghted ISP untill it not marked "dead" (see
/var/log/squid/cache.log) or "tcp connection failed". In that case
request will go via second ISP (weight=1).
when 1.1.1.1 "wake ip" :) requests again return in "right way".


> 
> To: Lartc List <lartc@mailman.ds9a.nl>
> Subject: Re:[LARTC] Routing for Squid
> > 
> > > hi all,
> > >
> > > i'm using squid as a proxy server, and have 2 gateway f
> > or internet access,
> > > currently i'm using 1 gateway for the internet access,
> > if that gateway is
> > > down then i have to change it manually the the 2nd gate
> > way.
> > > can anyone help me with the configuration that will aut
> > omatically switch to
> > > 2nd gateway if the 1st gateway is down.
> > >
> > > Thanks in advance
> > 
> 
> 
> Santiago J. Ruano Rincn
> 
> Soluciones Avatar Ltda.
> ParqueSoft Popayn
> +57-2 8221214
> 

-- 
Alexander Grinevich <grin@spez.com.ua>
JSV SPEZ


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-12-27 12:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-24  8:13 [LARTC] Routing for Squid Abd. Samad Awang
2003-12-24 21:24 ` andybr
2003-12-26 21:36 ` Santiago J. Ruano Rincón
2003-12-27 12:09 ` Alexander Grinevich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-107252714619257@msgid-missing \
    --to=grin@spez.com.ua \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.