From: "Vladimir V. Kamarzin" <vvk@jurati.ru> To: community@altlinux.ru Subject: Re: [Comm] delay_pool in squid Date: Fri, 9 Apr 2004 10:26:53 +0600 Message-ID: <20040409102653.3d07d1cb.vvk@jurati.ru> (raw) In-Reply-To: <4050A3E6.60101@ricom.ru> Приветствую, Alexey Morsov! Thu, 11 Mar 2004 20:37:42 +0300 вы писали: AM> Не могу понять как разделить два ведра в Squid AM> AM> Сейчас имею такое: AM> AM> delay_pools 2 AM> # первое ведро для всех пользователей AM> delay_class 1 1 AM> # второе ведро для закачек пользователей AM> delay_class 2 2 AM> AM> acl pooled url_regex -i "/usr/local/squid/etc/pooled" AM> acl pooled_users src "/usr/local/squid/etc/pooled_users" AM> AM> # правила для первого ведра AM> delay_access 1 allow ricom !coolguys AM> delay_access 1 deny all AM> delay_parameters 1 64000/64000 AM> AM> # правила для второго ведра AM> delay_access 2 allow pooled pooled_users !coolguys AM> delay_access 2 deny all AM> delay_parameters 2 32000/32000 2000/2000 AM> AM> Так вот (что вообщем-то естественно) запрос попадает в ервое AM> ведро и до второго не доходит... Т.е. вопрос - как указать что AM> если это скажем \.mp3$ то пожалуйте во второе ведерко а вообщем в AM> первое? acl files urlpath_regex -i \.mp3$ \.mpeg$ \.avi$ \.mov$ \.zip$ \.rar$ \.exe$ \.tar\.gz$ \.tar\.bz2$ \.rpm$ delay_pools 4 delay_class 1 1 delay_class 2 1 delay_class 3 1 delay_class 4 2 delay_access 1 allow supervip delay_access 1 deny all delay_access 2 allow files delay_access 2 deny all delay_access 3 allow vip delay_access 3 deny all delay_access 4 allow users delay_access 4 deny all delay_parameters 1 30000/30000 delay_parameters 2 1700/1700 delay_parameters 3 11000/11000 delay_parameters 4 44000/50000 8000/18000 Таким образом supervip-ы качают что угодно на данной им скорости, а вот все остальнеые при скачивании вышеуказанных типов файлов получат скорость 1700 байт/сек ;-) Т.е. сквид просматривает delay_access-ы по очереди, до первого совпадения. У вас же т.о. образом все подпадают под delay_access 1. -- WBR, Vladimir V. Kamarzin, 2:5077/16.35
next parent reply other threads:[~2004-04-09 4:26 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-04-09 4:26 ` Vladimir V. Kamarzin [this message] 2004-04-09 6:53 ` Alexey Morsov
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=20040409102653.3d07d1cb.vvk@jurati.ru \ --to=vvk@jurati.ru \ --cc=community@altlinux.ru \ /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
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