help check my squid.conf hit nya lemah

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
Th4r3n
Posts: 11
Joined: 04 Jun 2010, 16:24

help check my squid.conf hit nya lemah

Postby Th4r3n » 25 Jun 2010, 17:32

tolong master semua baru instal n jalan 20 jam hit nya lemah

berikut squid.conf saya :

acl all src all
acl localhost src 127.0.0.1/32
acl LAN src 192.168.0.0/255.255.0.0 # ip client sesuaikan
http_access allow LAN
server_http11 on
http_access deny all
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 3128 # squid
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
access_log /var/log/squid/access.log
visible_hostname NOVALNET_by_eyditharen
store_avg_object_size 13 KB
store_objects_per_bucket 20
cache_dir aufs /cache 8400 122 256
coredump_dir /var/spool/squid
#tcp_outgoing_tos 0x30 localnet
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
via on
client_db on
netdb_filename /var/log/squid/netdb.state
cache_access_log /dev/null
cache_log /dev/null
#cache_log /var/log/squid/cache.log
cache_store_log /dev/null
pid_filename /var/run/squid.pid
logfile_rotate 1
reload_into_ims on
max_filedesc 4096 pipeline_prefetch on
offline_mode off
cache_mgr eyditharen@yahoo.co.id
cachemgr_passwd 842736
cache_effective_user proxy
cache_effective_group proxy

# REFRESH-PATTERN #
# pictures & images
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)$ 10080 50% 43200 reload-into-ims override-lastmod override-expire ignore-private ignore-private
refresh_pattern -i \.(xml|html|htm|js|txt|css|php)$ 10080 50% 43200 reload-into-ims override-lastmod override-expire ignore-private
#sound, video multimedia
refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 reload-into-ims override-lastmod override-expire ignore-private ignore-private
# files
refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 reload-into-ims override-lastmod override-expire ignore-private
# -- refresh pattern for specific sites -- #
refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.atmajaya.*/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.kompas.*/.* 720 100% 10080
refresh_pattern ^http://*.theinquirer.*/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
refresh_pattern ^http://*.photobucket.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800
refresh_pattern ^http://*.detik.*/.* 720 50% 2880
refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880
refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080
refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://apps.facebook.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://static.playfish.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://cooking.game.playfish.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern -i http://[^a-z\.]*onemanga\.com/? 720 80% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://media?.onemanga.com/.* 720 80% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.google.com/.* 720 80% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^http://*.forummikrotik.com/.* 720 50% 10080
refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern -i http://*.pornhub.com/.* 720 100% 10080 reload-into-ims override-lastmod override-expire ignore-private
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320


ncoming TCP-requests by status
status request % sec/req Byte % kB/sec

HIT 1090 16.96 0.28 11523944 4.48 37.38
TCP_MEM_HIT 665 10.35 0.00 7532245 2.93 22494.52
TCP_REFRESH_HIT 372 5.79 0.81 905261 0.35 2.94
TCP_NEGATIVE_HIT 26 0.40 0.00 27535 0.01 10342.17
TCP_HIT 25 0.39 0.02 3058174 1.19 7319.85
TCP_IMS_HIT 2 0.03 0.00 729 0.00 3559.57
MISS 5334 82.99 8.02 239727K 95.51 5.61
TCP_MISS 5315 82.70 8.04 239684K 95.50 5.61
TCP_REFRESH_MISS 19 0.30 1.35 44815 0.02 1.70
ERROR 3 0.05 0.00 4695 0.00 15283.20
TCP_DENIED 3 0.05 0.00 4695 0.00 15283.20

Sum 6427 100.00 6.70 250986K 100.00 5.83
User avatar
waqpaw
Posts: 69
Joined: 19 May 2010, 13:55
Contact:

Re: help check my squid.conf hit nya lemah

Postby waqpaw » 25 Jun 2010, 18:54

pake jaringan kantor kah soudari th4r3n?
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby zitux » 25 Jun 2010, 19:04

klo hit nya lemah hubungan dgn apa ya ??
fungsi hit untuk apa ya ?
cara naikin hit nya gimana ya ?
:grin: tq
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby zitux » 25 Jun 2010, 19:06

User avatar
Th4r3n
Posts: 11
Joined: 04 Jun 2010, 16:24

Re: help check my squid.conf hit nya lemah

Postby Th4r3n » 25 Jun 2010, 22:11

pake jaringan speedy buat warnet sendiri mas, check tkp ah ...
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: help check my squid.conf hit nya lemah

Postby Rh354 » 26 Jun 2010, 06:26

squid br jalan 20 jam..cachenya ulang dari nol ato gimana...cek squid hit lemah biasanya tunggu seminggu br ambil kesimpulan...refresh pattern buat domain khusus jgn ditaro dibawah refresh pattern yg umum...ntar ga' ngefek...squid membaca squid.conf dari atas ke bawah :grin:

cache_dir ga' salah tuh

cache_dir aufs /cache 8400 122 256

dasarnya apa y :grin:

klo berdasarkan rumus cache dir sich mestinya begini :blush:

cache_dir aufs /cache 8400 20 256

tp ga' tau jg sich cos masih nubi :blush:
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: help check my squid.conf hit nya lemah

Postby Rh354 » 26 Jun 2010, 06:35

zitux wrote:klo hit nya lemah hubungan dgn apa ya ??
fungsi hit untuk apa ya ?
cara naikin hit nya gimana ya ?
:grin: tq
hit = hemat Bandwith + kenceng

naikin hit diakalin dengan mainin refresh pattern...
User avatar
suryayusra
Posts: 394
Joined: 05 May 2010, 15:54
Location: Palembang, Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby suryayusra » 26 Jun 2010, 08:20

dibikin standar aja boz
kenceng kok :D

scrip yg ente kasi penjelasan nya apa seh
susah baca na
apa ane nya yg oon
tp klo kantor ane pake proxy setingan standar mmmm... kenceng2 aja
dan hemat bandwidth

paling yg di setting port, network, cache mem ...ya segitu aja :D
gak terlalu neko2
hayyy...haayyy....hayyyy ... :D
tapi bagus jd seh untuk masukkan.
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: help check my squid.conf hit nya lemah

Postby Rh354 » 26 Jun 2010, 13:19

suryayusra wrote:dibikin standar aja boz
kenceng kok :D

scrip yg ente kasi penjelasan nya apa seh
susah baca na
apa ane nya yg oon
tp klo kantor ane pake proxy setingan standar mmmm... kenceng2 aja
dan hemat bandwidth

paling yg di setting port, network, cache mem ...ya segitu aja :D
gak terlalu neko2
hayyy...haayyy....hayyyy ... :D
tapi bagus jd seh untuk masukkan.
script yg mana...emang squid.conf yg menurut lo kenceng itu yg gimana :)

masalah penjelasan silahkan baca dimari

http://www.visolve.com/squid/squid26/contents.php

http://www.squid-cache.org/Doc/config/

kenceng ato ga' nya setau gw sich ngakalin di refresh pattern..maklum nubi..
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby zitux » 26 Jun 2010, 13:21

harus nunggu seminggu :D
ntar klo jalan 4 hari dirubah settingannya harus nunggu seminggu lagi :D

klo cuma reboot atau squid restart ?? harus nunggu lagi gak ?
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: help check my squid.conf hit nya lemah

Postby Rh354 » 26 Jun 2010, 13:35

zitux wrote:harus nunggu seminggu :D
ntar klo jalan 4 hari dirubah settingannya harus nunggu seminggu lagi :D

klo cuma reboot atau squid restart ?? harus nunggu lagi gak ?
mo direboot ato restart tp klo cm isi 4 mb sama aja boong khan :D

nunggu seminggu buat liat isinya..klo isinya dah banyak br bs dikatakan bagus ato ga' nya dari hit yg tercapai

HTTP/1.0 200 OK
Date: Sat, 26 Jun 2010 06:31:23 GMT
Content-Type: text/plain
Expires: Sat, 26 Jun 2010 06:31:23 GMT
X-Cache: MISS from Rh354
X-Cache-Lookup: MISS from Rh354:3128
Connection: close

Squid Object Cache: Version 2.7.STABLE9
Start Time: Fri, 25 Jun 2010 22:41:05 GMT
Current Time: Sat, 26 Jun 2010 06:31:23 GMT
Connection information for squid:
Number of clients accessing cache: 0
Number of HTTP requests received: 26790
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 57.0
Average ICP messages per minute since start: 0.0
Select loop called: 334468 times, 84.367 ms avg
Cache information for squid:
Request Hit Ratios: 5min: 83.2%, 60min: 74.1%
Byte Hit Ratios: 5min: 84.1%, 60min: 77.6%
Request Memory Hit Ratios: 5min: 4.5%, 60min: 4.9%
Request Disk Hit Ratios: 5min: 94.2%, 60min: 92.2%

Storage Swap size: 588104 KB
Storage Mem size: 8164 KB
Mean Object Size: 13.10 KB
Requests given to unlinkd: 0
Median Service Times (seconds) 5 min 60 min:
HTTP Requests (All): 0.00000 0.00000
Cache Misses: 0.76407 0.80651
Cache Hits: 0.00000 0.00000
Near Hits: 0.00000 0.72387
Not-Modified Replies: 0.00000 0.00000
DNS Lookups: 0.05078 0.05078
ICP Queries: 0.00000 0.00000
Resource usage for squid:
UP Time: 28218.153 seconds
CPU Time: 28.258 seconds
CPU Usage: 0.10%
CPU Usage, 5 minute avg: 0.15%
CPU Usage, 60 minute avg: 0.13%
Process Data Segment Size via sbrk(): 16808 KB
Maximum Resident Size: 77936 KB
Page faults with physical i/o: 1
Memory usage for squid via mallinfo():
Total space in arena: 16808 KB
Ordinary blocks: 16276 KB 415 blks
Small blocks: 0 KB 0 blks
Holding blocks: 768 KB 2 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 531 KB
Total in use: 17044 KB 97%
Total free: 531 KB 3%
Total size: 17576 KB
Memory accounted for:
Total accounted: 12196 KB
memPoolAlloc calls: 3795214
memPoolFree calls: 3679159
File descriptor usage for squid:
Maximum number of file descriptors: 2048
Largest file desc currently in use: 25
Number of file desc currently in use: 13
Files queued for open: 0
Available number of file descriptors: 2035
Reserved number of file descriptors: 100
Store Disk files open: 0
IO loop method: epoll
Internal Data Structures:
44951 StoreEntries
1218 StoreEntries with MemObjects
1217 Hot Object Cache Items
44904 on-disk objects
baru jalan 1 hari tp liat hitnya (malah pernah 100%) :grin:

jelas ajalah, cache gw udah 700Mb (personal use)

sekali lg hit itu tergantung dari

  1. hardware nya kompi yg dipakein squid
  2. konfigurasi squid
  3. user behavior
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby zitux » 26 Jun 2010, 15:16

Code: Select all

Squid Object Cache: Version 2.7.STABLE7
Start Time:     Sat, 26 Jun 2010 06:02:54 GMT
Current Time:   Sat, 26 Jun 2010 08:14:21 GMT
Connection information for squid:
        Number of clients accessing cache:      5
        Number of HTTP requests received:       11275
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Number of HTCP messages received:       0
        Number of HTCP messages sent:   0
        Request failure ratio:   0.00
        Average HTTP requests per minute since start:   85.8
        Average ICP messages per minute since start:    0.0
        Select loop called: 176891 times, 44.588 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 52.9%, 60min: 41.3%
        Byte Hit Ratios:        5min: 3.8%, 60min: 17.9%
        Request Memory Hit Ratios:      5min: 0.0%, 60min: 6.7%
        Request Disk Hit Ratios:        5min: 80.0%, 60min: 79.1%
        Storage Swap size:      6032948 KB
        Storage Mem size:       7720 KB
        Mean Object Size:       48.58 KB
        Requests given to unlinkd:      0
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.61549  0.85130
        Cache Misses:          0.55240  1.81376
        Cache Hits:            0.68577  0.00179
        Near Hits:             0.55240  0.94847
        Not-Modified Replies:  0.00000  0.00000
        DNS Lookups:           0.00000  0.00000
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        7887.209 seconds
        CPU Time:       15.857 seconds
        CPU Usage:      0.20%
        CPU Usage, 5 minute avg:        0.04%
        CPU Usage, 60 minute avg:       0.11%
        Process Data Segment Size via sbrk(): 26172 KB
        Maximum Resident Size: 122960 KB
        Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        Total space in arena:   26172 KB
        Ordinary blocks:        25927 KB   1716 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:          3644 KB      6 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:     244 KB
        Total in use:           29571 KB 99%
        Total free:               244 KB 1%
        Total size:             29816 KB
Memory accounted for:
        Total accounted:        17134 KB
        memPoolAlloc calls: 2238746
        memPoolFree calls: 1951959
File descriptor usage for squid:
        Maximum number of file descriptors:   8192
        Largest file desc currently in use:     49
        Number of file desc currently in use:   24
        Files queued for open:                   0
        Available number of file descriptors: 8168
        Reserved number of file descriptors:   100
        Store Disk files open:                   0
        IO loop method:                     epoll
 Data Structures:
        124244 StoreEntries
          1862 StoreEntries with MemObjects
          1860 Hot Object Cache Items
        124184 on-disk objects
root@zitux:~#


maklum nubie cache masih 25% :D
User avatar
naruse
Posts: 10
Joined: 26 Jun 2010, 15:16
Location: jakarta
Contact:

Re: help check my squid.conf hit nya lemah

Postby naruse » 26 Jun 2010, 22:49

buset itu dns lookup bisa nol gitu ?? masa secepat itu..
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby zitux » 27 Jun 2010, 15:39

memang nya harus berapa mas ? salah setting ya ?
User avatar
naruse
Posts: 10
Joined: 26 Jun 2010, 15:16
Location: jakarta
Contact:

Re: help check my squid.conf hit nya lemah

Postby naruse » 27 Jun 2010, 17:37

ini pengetahuan saya sendiri ya .. dns lookup kalau nol itu biasanya koneksinya cepet banget ... tapi sih jarang dnslookupnya sampe nol biasanya minimal 10000 sampe 30000 kalau melebihi dari 100000 coba aja browsing pasti berat banget ...

Select loop called: 176891 times, 44.588 ms avg <-- coba di cek lagi gan :) kayaknya ada masalah deh sama squidnya. kalau mas avg nya masih 44 itu bisa menimbulkan bottleneck .. minimal di bawah 10.000 ms avg .. penjelasannya mungkin kita kasih sama suhu disini .. saya juga belajar otodidak .. sama suhu forum sebelah
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: help check my squid.conf hit nya lemah

Postby Rh354 » 28 Jun 2010, 06:19

naruse wrote:ini pengetahuan saya sendiri ya .. dns lookup kalau nol itu biasanya koneksinya cepet banget ... tapi sih jarang dnslookupnya sampe nol biasanya minimal 10000 sampe 30000 kalau melebihi dari 100000 coba aja browsing pasti berat banget ...

Select loop called: 176891 times, 44.588 ms avg <-- coba di cek lagi gan :) kayaknya ada masalah deh sama squidnya. kalau mas avg nya masih 44 itu bisa menimbulkan bottleneck .. minimal di bawah 10.000 ms avg .. penjelasannya mungkin kita kasih sama suhu disini .. saya juga belajar otodidak .. sama suhu forum sebelah
Is there any way to speed up the time spent dealing with select? Cachemgr shows:

Select loop called: 885025 times, 714.176 ms avg

This number is NOT how much time it takes to handle filedescriptor I/O. We simply count the number of times select was called, and divide the total process running time by the number of select calls.

This means, on average it takes your cache .714 seconds to check all the open file descriptors once. But this also includes time select() spends in a wait state when there is no I/O on any file descriptors. My relatively idle workstation cache has similar numbers:

Select loop called: 336782 times, 715.938 ms avg

But my busy caches have much lower times:

Select loop called: 16940436 times, 10.427 ms avg
Select loop called: 80524058 times, 10.030 ms avg
Select loop called: 10590369 times, 8.675 ms avg
Select loop called: 84319441 times, 9.578 ms avg


kesimpulan yg gw ambil sich tergantung banyaknya user aktif klo masalah looping
User avatar
snk
Posts: 6
Joined: 23 Jan 2010, 08:35
Location: Surabaya
Contact:

Re: help check my squid.conf hit nya lemah

Postby snk » 29 Jun 2010, 10:37

Untuk Bro Th4r3n:

klo memory cpu rendah, coba turunin cache_mem menjadi 32Mb, trus di cache_dir aufs /cache 8400 122 256 ===> apa g salah ngitungnya harusnya 8400 20 256

Rumus untuk menghitung L1:
((( x / y ) / 256 ) / 256 ) * 2 = L1
x = besarnya disk cache yang akan di gunakan, satuannya adalah Kb (20 GB = 20.000.000 KB)
y = jumlah rata-rata object biasanya bernilai 13Kb
misalkan besarnya cache disk adalah 8,4 GB maka:

(((8.400.000/13)/256)/256)*2 = 20 Maka nilai L1 adalah 20.
biar kinerja cache lebih bagus maka lebih baik gunakan 80% dari cache disk.
Misal untuk partisi /cache adalah 10 GB maka baiknya yang terpakai di squid hanya 8 GB saja
User avatar
mindcracker
Posts: 239
Joined: 17 Jun 2010, 16:25
Location: Jogjakarta, Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby mindcracker » 29 Jun 2010, 11:23

IJIN NYIMAK AJA GAN, BELUM SAMPE NGURUSIH MASALAH GITUAN.
User avatar
suryayusra
Posts: 394
Joined: 05 May 2010, 15:54
Location: Palembang, Indonesia
Contact:

Re: help check my squid.conf hit nya lemah

Postby suryayusra » 29 Jun 2010, 18:15

Rh354 wrote:
suryayusra wrote:dibikin standar aja boz
kenceng kok :D

scrip yg ente kasi penjelasan nya apa seh
susah baca na
apa ane nya yg oon
tp klo kantor ane pake proxy setingan standar mmmm... kenceng2 aja
dan hemat bandwidth

paling yg di setting port, network, cache mem ...ya segitu aja :D
gak terlalu neko2
hayyy...haayyy....hayyyy ... :D
tapi bagus jd seh untuk masukkan.
script yg mana...emang squid.conf yg menurut lo kenceng itu yg gimana :)

masalah penjelasan silahkan baca dimari

http://www.visolve.com/squid/squid26/contents.php

http://www.squid-cache.org/Doc/config/

kenceng ato ga' nya setau gw sich ngakalin di refresh pattern..maklum nubi..


thanxs link squid nya :)

coba bro Rh354 kasi copas squid yg kuenceng, yg udah ada stingan refreh nya
tapi yg standar2 aja, biar ane bisa plajarin :) dan bisa di pake di kantor ane :)
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: help check my squid.conf hit nya lemah

Postby Rh354 » 30 Jun 2010, 19:17

ini squid.conf gw

###########################################
# HIGH PERFORMANCE SQUID 2.7
# Config date : 21 April 2010
###########################################

# ACCESS CONTROLS
# ----------------

acl QUERY urlpath_regex -i cgi-bin \? \.php$ \.asp$ \.shtml$ \.cfm$ \.cfml$ \.phtml$ \.php3$ localhost
acl localnet src 10.0.0.0/8
acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/32
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
acl sslports port 443 563 81
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT
acl ym dstdomain .messenger.yahoo.com .psq.yahoo.com
acl ym dstdomain .us.il.yimg.com .msg.yahoo.com .pager.yahoo.com
acl ym dstdomain .rareedge.com .ytunnelpro.com .chat.yahoo.com
acl ym dstdomain .voice.yahoo.com
acl ymregex url_regex yupdater.yim ymsgr myspaceim

http_access deny ym
http_access deny ymregex
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
http_access allow localhost
http_access allow localnet
http_access deny all

# NETWORK OPTIONS
# -----------------

http_port 3128 transparent
#htcp_port 4827
icp_access deny all

# OPTIONS WHICH AFFECT THE CACHE SIZE
# ------------------------------------

cache_mem 8 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir aufs /cache 4000 10 256
maximum_object_size 128000 KB
cache_swap_low 90
cache_swap_high 95
update_headers off

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# ---------------------------------------

access_log /cache/access.log
#access_log none
cache_log /cache/cache.log
#cache_log /dev/null
cache_store_log none
logfile_rotate 5
log_ip_on_direct off
log_icp_queries off
buffered_logs off
netdb_filename none
client_db off
#pid_filename /var/run/squid.pid

# OPTIONS FOR TUNING THE CACHE
# ----------------------------

cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jp?g|ico|bmp|tiff?)$ 10080 95% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(rpm|cab|deb|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z|doc?|xls?|ppt?|pdf|nth|psd|sis)$ 10080 90% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(avi|iso|wav|mid|mp?|mpeg|mov|3gp|wm?|swf|flv|x-flv|axd)$ 43200 95% 432000 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js)$ 1440 75% 40320
refresh_pattern -i \.index.(html|htm)$ 0 75% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 1440 90% 10080

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
store_avg_object_size 13 KB

# HTTP OPTIONS
# ------------

server_http11 on
collapsed_forwarding on
vary_ignore_expire on
header_access From deny all
header_access Server deny all
header_access Link deny all
header_access Via deny all
header_access X-Forwarded-For deny all

# TIMEOUTS
# --------

forward_timeout 240 second
connect_timeout 30 second
peer_connect_timeout 5 second
read_timeout 600 second
request_timeout 60 second
persistent_request_timeout 60 second
client_lifetime 86400 second
half_closed_clients off
pconn_timeout 60 second
shutdown_lifetime 10 second

# ADMINISTRATIVE PARAMETERS
# --------------------------

cache_mgr Rh354
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname Rh354

# ADVANCED NETWORKING OPTIONS
# ---------------------------

max_filedescriptors 2048

# DNS OPTIONS
# -------------

check_hostnames off
dns_timeout 10 seconds
#DNS NAWALA
#dns_nameservers 180.131.144.144
#dns_nameservers 180.131.144.145
hosts_file /etc/hosts
ipcache_size 8192
ipcache_low 90
ipcache_high 95

# MISCELLANEOUS
# ---------------

memory_pools off
forwarded_for off
reload_into_ims on
coredump_dir /cache
pipeline_prefetch on
offline_mode off

###### END CONFIGURATION ###########

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 3 guests