Friday, October 23, 2009

Squid Delay Pools Configuration

Like the previous post about proxy squid and squid delay pools, on this occasion I give a simple example configuration squid delay pools. Previously must understand some common terms in the delay pools :

delay_pools
delay_pools can be defined as a part / pool, which states how many parts / pool that will be made, for example:

delay_pools 1

Note : there is only 1 pools that we enforce

delay_class

delay_class states of the rules of each section / pool that has been defined in the delay-pools option. There are three classes are supported :

• Class 1: All access is restricted to a single bucket, that is one rule for all the networks.
• Class 2: All Access is restricted to a single aggregate bandwidth with two parameters. The first parameter defines how the maximum bandwidth throughout the network, the second parameter defines a more specific bandwidth to each client.
• Class 3: The bandwidth that defines in detail. The first parameter defines how the maximum bandwidth throughout the network, the second parameter defines how much bandwidth is normally obtained by the client, and third parameters are obtained defining client bandwidth when accessing certain files specific,

for example:

delay_class 1 3

Note : pool 1 has 3 classes, meaning there will be 3 rules in the pool 1

delay_access

delay_access disallow access to anyone (acl) who may use this delay pools. important to remember that should the limit be sure to determine in the end with deny all, to declare that outside acl is not allowed to use delay pools, for example:

delay_access 1 allow localnet
delay_access 1 deny all


delay_parameters


This is the most important part of the delay pools to give every delay rules established pools. delay parameter has a format that is tailored to the type / class is used. But every type of wear is the standard format 1 restore / max.
restore indicates the maximum data rate that can be passed when the price had exceeded max, in units of bytes / second
max showing her big files or bucket that can be passed without delay through the process. in units of bytes.
To note the above is the price of the unit is restored where we often receive / rent / buy bandwidth from the provider in units of bits / second rather than bytes / second. While speed unit shown by Microsoft at the time of downloading files is bytes / sec.

While the units of max price is in conformity with the daily habits, which we give quantities bytes in the files.
1 byte = 8 bits.

This is where the bandwidth limitations rules apply. Max is a condition in which we have all the bandwidth quota or while not at its peak usage. Restore is a condition when the bandwidth reaches its peak, and each rule will get a maximum bandwidth of the price we restore the set.

delay_parameters 1 -1/-1 24000/32000 16000/32000

Ket:

Pool 1 has 3 classes.
Class 1 has a -1/-1 value means the overall bandwidth allocated to the entire client network squid.
Class 2 has 24000/32000 value means each client will get the squid maximum bandwidth allocated 32,000 bytes / second or 256 kbps and as high traffic will only get a maximum of 24,000 bytes / second or 192 kbps.
Class 3 has a 16000/32000 value meaning when download a file, the client will get the squid maximum bandwidth allocated 32,000 bytes / second or 256 kbps and as high traffic will only get a maximum of 16,000 bytes / second or 128 kbps.

The following simple example squid delay pools

Example 1

acl all src 0.0.0.0/0.0.0.0
acl admin src 192.168.1.250/255.255.255.255 
acl server src 192.168.1.251/255.255.255.255
acl general src 192.168.1.0/255.255.255.0
acl staff src 192.168.1.1 192.168.1.111 192.168.1.2 192.168.1.4 192.168.1.71
 

delay_pools 3
delay_class 1 1
delay_parameters 1 -1/-1
 

delay_access 1 allow admin 
delay_access 1 allow the server 
delay_access 1 deny all
 

delay_class 2 1
delay_parameters 2 1500/64000
delay_access 2 allow staff
delay_access 2 deny all
 

delay_class 3 1
delay_parameters 3 1000/32000
delay_access 3 general allow 
delay_access 3 deny all

Note :
- admin and server with unlimited bandwidth
- staff with a bandwidth of 1.5 Kbytes / sec, when files are accessed over 64Kbytes
- common with bandwidth 1 Kbytes / sec, when files are accessed by more than 32 Kbytes

Example 2

acl multimedia url_regex -i \. mp3 $ \. rm $ \. mpg $ \. mpeg $ \. avi $ \. dat $
 

delay_pools 1
delay_class 1 1
delay_parameters 1 1000/16000
delay_access 1 allow multimedia 
delay_access 1 deny ALL 

Note :
Delay pools are used to restrict download files for a particular extension.
Use the acl url_regex to restrict download multimedia files up to 1 KBytes / sec.

Example 3

acl JAM_KANTOR time SMTWHFA 07:00-18:00

delay_pools 2 delay_class 1 2
delay_parameters 1 24000/32000 -1/-1
delay_access 1 allow JAM_KANTOR
delay_access 1 deny all

delay_class 1 2
delay_parameters 2 8000/8000 -1/-1
delay_access 2 allow research ! JAM_KANTOR
delay_access 2 deny all


Note :
In office hours (07:00 - 18:00) given speed to 256 kbps on each host, and outside office hours are given only up to 64 kbps speed.

25 comments:

Dwi M. Wibowo said...

Wah ini nich yang lagi aku cari, makasih pak :)

Lutfi said...

tp aq blm coba d squid for win, klo dwi nyoba d win kabari aq yaaaaaa

Apin Prastya said...

Ya ini kalo udah pake bhasa Inggris udah mulai gak ngerti.

Lutfi said...

Pin, mm penjelasannya penting tah, copy paste samplenya aja ... beres kan

Harga HP Terbaru said...

Thank you for sharing in this article
I can learn a lot and could also be a reference
I am happy to find your website and can join to comment
I think is very valuable to be able to read your writing, and on this occasion will I use for my reference source
Thank you so much for sharing, I hope you continue to write spirit next topic
bbm windows phone harga galaxy s5 harga nokia x harga asus zenfone harga lenovo golden warrior s8 harga philips w6618 obat kuat obat pembesar penis vimax canada vimax asli vimax original vimax extender

Obat Aborsi said...

Makasih infonya pak.. sangat bermanfaat buat tugas aku
Jasa SEO Obat Aborsi Obat Aborsi Jual Obat Aborsi

Hanny Cantik said...

Exceptional post and really quality info here. Thanks for your hard work. thanks for your post,
livedraw singapore/ sgp
liveresult singaporepools/ sgp
live hongkongpools/ hk
live laospools
paito sgp
mesin acak angka tardal bbfs
buku mimpi 2d
buku mimpi 3d
buku mimpi 4d
cara bermain togel online
cara daftar togel online via hp operamini
cara bermain togel online
daftar bandar togel online aman terpercaya


buku tafsir mimpi togel lengkap
cara dan panduan daftar togel online
kumpulan bandar togel online terpercaya
live result sgp



sgp live draw
bandar togel online teruji aman terpercaya
bandar togel online terpercaya
daftar bandar togel online aman
singapore live

KUMPULAN BANDAR TOGEL PASARAN SINGAPORE / SGP
KUMPULAN BANDAR TOGEL ONLINE PASARAN HONGKONGPOOLS / HK
KUMPULAN BANDAR TOGEL ONLINE PASARAN SYDNEY / SD
KUMPULAN BANDAR TOGEL ONLINE PASARAN LAOSPOOLS
KUMPULAN BANDAR TOGEL ONLINE SUPPORT BANK BRI
KUMPULAM BANDAR TOGEL ONLINE SUPPORT BANK BNI
KUMPULAN BANDAR TOGEL ONLINE SUPPORT BANK DANAMON
BANDAR TOGEL ONLINE DENGAN DISKON PALING BESAR
BANDAR TOGEL ONLINE DENGAN DEPOSIT PALING MURAH



bosse seo said...

vimax asli plazaobat.com
vimax asli plazaobat.com
vimax asli plazaobat.com
vimax asli plazaobat.com
vimax asli plazaobat.com
vimax asli plazaobat.com
vimax asli plazaobat.com
vimax asli

hukum islam said...

Ya ini kalo udah pake bhasa Inggris udah mulai gak ngerti. hukum islam

ReviewHape said...

Wah, izin copy artikel nya mas, buat pembelajaran buat saya, Terima Kasih

OLB365.COM Agen Judi Bola Online, Agen Judi Casino Online Indonesia Terpercaya said...

semngat baru. mari saling berbagi

vimax said...

vimax | vimax asli | vimax canada | vimax asli | vimax asli | vimax asli

terimakasih, semoga admin sukses selalu

Bandar Togel Indonesia said...

Bandar Togel Indonesia

Wallpaper HP Seksi said...

Thank you udah sharing..

vimaxherbal alami said...

thank's for your information and i like this post


Obat Pembesar Penis

Alat Pembesar Penis

Vimax Asli Canada

Khasiat Vimax

Cara Memperbesar Penis

vimaxcanada herbal said...

VIMAX ASLI DI MEDAN
VIMAX ASLI DI ACEH
VIMAX ASLI DI JAKARTA
VIMAX ASLI DI BANDUNG
VIMAX ASLI DI BOGOR
VIMAX ASLI DI JOGJA
VIMAX ASLI DI TANGERANG
VIMAX ASLI DI KALIMANTAN
VIMAX ASLI DI PADANG
VIMAX ASLI DI PAPUA
VIMAX ASLI DI SELAWESI
VIMAX ASLI DI MAKASSAR
VIMAX ASLI DI SEMARANG
VIMAX ASLI DI SOLO
VIMAX ASLI DI BANTEN
VIMAX ASLI DI SURABAYA
VIMAX ASLI DI JEPARA
VIMAX ASLI DI RIAU
VIMAX ASLI DI JAMBI
VIMAX ASLI DI BATAM
VIMAX ASLI DI PEKANBARU
VIMAX ASLI DI NTB
VIMAX ASLI DI NTT
VIMAX ASLI DI GRESIK
VIMAX ASLI DI CIREBON
VIMAX ASLI DI MAGELANG
VIMAX ASLI DI SERPONG
VIMAX ASLI DI SIDOARJO
VIMAX ASLI DI BALIKPAPAN
VIMAX ASLI DI KUDUS
VIMAX ASLI DI BENGKULU
VIMAX ASLI DI LAMPUNG
VIMAX ASLI DI PONTIANAK
VIMAX ASLI DI SAMARINDA
VIMAX ASLI DI MANADO
VIMAX ASLI DI AMBON
VIMAX ASLI DI SLEMAN
VIMAX ASLI DI KEDIRI
VIMAX ASLI DI TERNATE
VIMAX ASLI DI GORONTALO

Vimax Asli said...

VIMAX
VIMAX ASLI
CIRI VIMAX ASLI
VIMAX CANADA
AGEN VIMAX ASLI
VIMAX ASLI CANADA
OBAT PEMBESAR PENIS
VMENPLUS
VMENPLUS ASLI
HARGA OBAT VMENPLUS ASLI
CIRI CIRI VMENPLUS ASLI
VIMAX
VIMAX ASLI
CIRI VIMAX ASLI
VIMAX CANADA
AGEN VIMAX ASLI
VIMAX ASLI CANADA
OBAT PEMBESAR PENIS

ciaseng said...

OBAT Pembesar Penis

OBAT Pemanjang Penis

Cara Memperbesar Penis

✔ OBAT Pembesar dan Pemanjang Penis

JUAL OBAT Pembesar Penis

JUAL OBAT Pemanjang penis

OBAT Pembesar dan Pemanjang Penis

OBAT Pembar Penis Permanen

VIMAX Canada

VIMAX Herbal

VIMAX Original

VIMAX Capsul canada

VIMAX Asli

VIMAX Capsul Original

VIMAX Pembesar Penis Herbal 

VIMAX Pemanjang Penis Herbal

OBAT VIMAX ASLI 

✔ OBAT VIMAX

Anonymous said...

CONTOH TERBARU
Contoh Kata Pengantar Makalah
Contoh Surat Pengunduran Diri
Contoh Makalah Bahasa Indonesia
Contoh Surat Pernyataan
Contoh Surat Lamaran Kerja
Contoh Judul Skripsi Pendidikan
Contoh Judul SKripsi Akuntansi
Contoh Teks Vidato Singkat
Contoh Surat Lamaran Kerja Via Email
Contoh Surat Undangan Dinas
Contoh Surat Lamaran Kerja di Bank

Katalog Harga Promo Terbaru
Katalog Harga Promo
Katalog Harga
Harga Promo
Harga Promo Terbaru

Model Rambut Terbaru
Model rambut keriting
Model Rambut Spike
Model Rambut Bob
Model Rambut Jadul
Model Rambut Panjang

Mochammad Fikri said...

Cara root dan install cwm acer liquid jade
Cara Root LG Magna Y90 H502 Tanpa PC
Cara Mudah Root Lenovo A6010 Tanpa PC
Cara Mudah Root Sony Xperia E3 Tanpa PC
Cara Mudah Root Samsung Galaxy A3 / A3 Duos Kitkat
Cara Mudah Root Oppo Mirror 3 Tanpa PC
Cara Root Vivo Y15 Dengan Mudah Tanpa PC
Cara Mudah Root Asus Zenfone C Z007 (ZC451CG)
Cara Mudah Root LG G3 Stylus Lollipop Tanpa PC
Cara Mudah Root Semua Jenis Android Menggunakan Framaroot
Cara Mudah Root Xiaomi Redmi Note 3 + Video Tutorial

Artikel kesehatan terbaru said...

informasinya menarik dan mudah di pahami oleh para pembaca,,,thanks penulis

obat tahan lama pria said...

informasinya menarik dan mudah di pahami oleh para pembaca,,,thanks penulis

Vimax Asli - KLG said...

Thank you for sharing in this article,wish you all success
I can learn a lot and could also be a reference


@ vimax asli - vimax izon
@ klg asli
@ viagra asli
@ vimax asli
@ klg asli medan
@ vimax asli

klg asli said...


Thank you for sharing in this article , you may be useful and successful always .

Apotek Farma said...

Jual Vimax Asli Di Batam
Vimax Asli Di Batam
Jual Vimax Asli Canada Di Batam
Jual Vimax Di Batam
Agen Vimax Asli Di Batam
Vimax Asli Batam
Vimax Di Batam
Agen Vimax Di Batam
Toko Vimax Asli Di Batam
Alamat Toko Vimax Di Batam
Vimax Batam

Related Post :