ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Вопрос к squid-team
@ 2004-09-01 15:28 Yury Levdansky
  2004-09-02  5:35 ` Nizamov Shavkat
  2004-09-02  5:38 ` Alex
  0 siblings, 2 replies; 4+ messages in thread
From: Yury Levdansky @ 2004-09-01 15:28 UTC (permalink / raw)
  To: community


Существуют ли способы балансировать http трафик при помощи сквида?
В продолжение к первому вопросу, можно ли сквид заставить работать от 
двух адресов (tcp_outgoing_address)?

-- 
____________
С уважением 
   Левданский Юрий



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Вопрос к squid-team
  2004-09-01 15:28 [Comm] Вопрос к squid-team Yury Levdansky
@ 2004-09-02  5:35 ` Nizamov Shavkat
  2004-09-02  5:38 ` Alex
  1 sibling, 0 replies; 4+ messages in thread
From: Nizamov Shavkat @ 2004-09-02  5:35 UTC (permalink / raw)
  To: community

>
> Существуют ли способы балансировать http трафик при помощи сквида?
> В продолжение к первому вопросу, можно ли сквид заставить работать от
> двух адресов (tcp_outgoing_address)?
>

вот как я примерно это делаю (это не совсем балансировка, а просто
распределение пользователей по нескольким каналам)

acl net1 172.16.0.0/24 172.16.1.0/24
acl net2 172.16.4.0/24 172.16.5.0/24

tcp_outgoing_address xxx.yyy.zzz.111 net1
tcp_outgoing_address xxx.yyy.zzz.222 net2
tcp_outgoing_address xxx.yyy.zzz.333

то есть пользователи получают DHCP адреса равномерно в диапазоне
172.16.0.0-172.16.5.255
примерно треть из них идет через сквид через внешний адрес
xxx.yyy.zzz.111, треть через xxx.yyy.zzz.222, остальные (тоже треть) через
xxx.yyy.zzz.333

чем больше пользователей и внешних адресов тем лучше работает такая схема




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Вопрос к squid-team
  2004-09-01 15:28 [Comm] Вопрос к squid-team Yury Levdansky
  2004-09-02  5:35 ` Nizamov Shavkat
@ 2004-09-02  5:38 ` Alex
  2004-09-02 10:54   ` Yury Levdansky
  1 sibling, 1 reply; 4+ messages in thread
From: Alex @ 2004-09-02  5:38 UTC (permalink / raw)
  To: community


> Существуют ли способы балансировать http трафик при помощи сквида?
> В продолжение к первому вопросу, можно ли сквид заставить работать от 
> двух адресов (tcp_outgoing_address)?


позволю себе ответить хоть никакого касательства к squid-team не имею

Как то нашел на опеннете следующее:

Пример равномерной балансировки по 3 каналам:

# acl rand1 dst 0.0.0.0/0.0.0.192
acl rand2 dst 0.0.0.64/0.0.0.192
acl rand3 dst 0.0.0.128/0.0.0.192
acl rand4 dst 0.0.0.192/0.0.0.192
acl rand5 dst 0.0.0.192/0.0.0.224
# acl rand6 dst 0.0.0.224/0.0.0.224

tcp_outgoing_address 10.1.1.1 rand2
tcp_outgoing_address 10.1.1.1 rand3
tcp_outgoing_address 10.1.1.2 rand4
tcp_outgoing_address 10.1.1.2 rand5
tcp_outgoing_address 10.1.1.3



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Вопрос к squid-team
  2004-09-02  5:38 ` Alex
@ 2004-09-02 10:54   ` Yury Levdansky
  0 siblings, 0 replies; 4+ messages in thread
From: Yury Levdansky @ 2004-09-02 10:54 UTC (permalink / raw)
  To: community

Alex пишет:

>>Существуют ли способы балансировать http трафик при помощи сквида?
>>В продолжение к первому вопросу, можно ли сквид заставить работать от 
>>двух адресов (tcp_outgoing_address)?
>>    
>>
>
>позволю себе ответить хоть никакого касательства к squid-team не имею
>
>Как то нашел на опеннете следующее:
>
>Пример равномерной балансировки по 3 каналам:
>
># acl rand1 dst 0.0.0.0/0.0.0.192
>acl rand2 dst 0.0.0.64/0.0.0.192
>acl rand3 dst 0.0.0.128/0.0.0.192
>acl rand4 dst 0.0.0.192/0.0.0.192
>acl rand5 dst 0.0.0.192/0.0.0.224
># acl rand6 dst 0.0.0.224/0.0.0.224
>
>tcp_outgoing_address 10.1.1.1 rand2
>tcp_outgoing_address 10.1.1.1 rand3
>tcp_outgoing_address 10.1.1.2 rand4
>tcp_outgoing_address 10.1.1.2 rand5
>tcp_outgoing_address 10.1.1.3
>  
>
Спасибо за ответ, но интересует не равномерная балансировка, а например 
с учетом какого-либо коэффициента.

-- 
____________
С уважением 
   Левданский Юрий



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-02 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-01 15:28 [Comm] Вопрос к squid-team Yury Levdansky
2004-09-02  5:35 ` Nizamov Shavkat
2004-09-02  5:38 ` Alex
2004-09-02 10:54   ` Yury Levdansky

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git