cache lusca berfungsi sebagian

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

cache lusca berfungsi sebagian

Postby sipelaut » 22 Jan 2012, 13:52

salam
setelah nyoba squid lusca
kok media penyimpanannya hanya berfungsi satu partisi saja ya?? :confused:
padahal saya membuat 3 partisi :cool:

Code: Select all

cache_dir aufs /p1 3600 800 100
cache_dir aufs /p2 3600 800 100
cache_dir aufs /p3 3600 800 100


Code: Select all

proxy:/etc/squid# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             9.2G  1.1G  7.7G  13% /
/dev/hda6             5.6G  498M  5.1G   9% /p1 <---- hanya ini yang berubah
/dev/hda7             5.6G   50M  5.6G   1% /p2
/dev/hda3             6.3G   51M  6.3G   1% /p3
tmpfs                  10M  632K  9.4M   7% /dev

atau memang begini cara kerja dari lusca :confused: , hanya satu buah pastisi saja?? :whistle:
mohon bimbingannya :grin:
wassalam
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: cache lusca berfungsi sebagian

Postby rafdinal » 22 Jan 2012, 20:58

itu kok L1 nya sampe 800,,apa gak terlalu banya itu bro,,biasanya cachenya akan terisi merata bro..
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 22 Jan 2012, 22:31

itu ane pakek perhitungan untuk ngisi L1 nya broo
dapetnya segitu, ntah apa aku yang salah ngitung
tapi yaa..... memang hasilnya segitu... :grin:
tapi yang penting jalan dulu

" biasanya cachenya akan terisi merata bro.."
itu dia masalhnya, kok malah punyaku hanya keisi sebelah..
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 25 Jan 2012, 14:25

wahhh... masih lom dapet jawaban.
ane share speedtest ane ajalah yang pakek lusca
Image
soalnya sampek sekarang cache p2 dan p3 masih gak keisi
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: cache lusca berfungsi sebagian

Postby yudiarbi » 25 Jan 2012, 21:26

maaf bro, kl mslh perhitungan kayake menurutq bukan "pelaku"nya yg bikin gak merata cachenya di hdd, mgkn berkenan share konfigurasinya
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 26 Jan 2012, 08:05

konfigurasi squid nya ya broo...
Tampilkan
http_port 3128 transparent
#hierarchy_stoplist cgi-bin ? \.js \.jsp \.g \.do \.php \.asp \.cgi \.shtml \.cfm \.cfml \.phtml \.php3
#acl QUERY urlpath_regex cgi-bin \? \.js \.jsp \.g \.do \.php \.asp \.cgi \.shtml \.cfm \.cfml \.phtml \.php3
#no_cache deny QUERY
icp_port 0
cache_mem 8 MB
cache_swap_low 80%
cache_swap_high 85%
maximum_object_size 600 MB
minimum_object_size 0 bytes
maximum_object_size_in_memory 32 kb
ipcache_size 16384
ipcache_low 98
ipcache_high 99

cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/share/squid/errors/English
icon_directory /usr/share/squid/icons

memory_replacement_policy heap LFUDA
cache_replacement_policy heap GDSF

cache_dir aufs /p1 3600 800 100
cache_dir aufs /p2 3600 800 100
cache_dir aufs /p3 3600 800 100

access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
logfile_rotate 1
emulate_httpd_log off
log_ip_on_direct on
client_netmask 255.255.255.255
request_header_max_size 20 kb
request_body_max_size 0 kb
dns_nameservers 202.134.1.10 125.160.4.82 125.160.2.34 202.134.0.155 203.130.196.5 203.130.196.155 202.134.0.61 8.8.8.8 8.8.4.4
uri_whitespace strip

#dns_nameservers 127.0.0.1
hosts_file /etc/hosts
redirector_bypass on
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on

#fungsi ini masih bingung
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id)
acl store_rewrite_list urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|rar|mp3)$
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.$
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.id)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|zip|flv|wm(a|v)|3gp|mp(4|3)|exe$
acl dontrewrite url_regex redbot\.org \.php
acl getmethod method GET

storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain
storeurl_access allow store_rewrite_list_path
#storeurl_access deny all

storeurl_rewrite_program /etc/squid/storeurl.pl
storeurl_rewrite_children 4
storeurl_rewrite_concurrency 99

refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 180 95% 403200 override-lastmod reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(doc|docx|xls|xlsx|ppt|pptx|mdb|hqx|pdf|rtf|swf|txt|html|php|asp|aspx)$ 1440 50% 43200
refresh_pattern -i \.(ico|gif|bmp|png|jpg|jpe|jpeg|tiff)$ 14400 100% 86400 override-expire override-lastmod reload-into-ims ignore-re$
refresh_pattern -i \.(rpm|cab|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z)$ 14400 95% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(avi|wav|mid|mpeg|mpg|flv|x-flv|mov|3gp|mp4|wmv)$ 14400 95% 86400 override-expire override-lastmod reload-into-i$
refresh_pattern -i \.(mp3|mid)$ 14400 95% 86400 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
refresh_pattern -i \.(css|js|axd)$ 14400 100% 86400 override-lastmod reload-into-ims ignore-no-cache
refresh_pattern -i \.(ini)(\?.*)?$ 2 5% 10800 reload-into-ims override-lastmod
refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern guru.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern pupdate-af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern af.avg.com/.*\.(bin) 4320 100% 43200 reload-into-ims
refresh_pattern upgrade.bitdefender.*/.*\.(gzip) 4320 100% 43200 reload-into-ims
refresh_pattern mbam-cdn.malwarebytes.org/.*\.(exe) 4320 100% 43200 reload-into-ims
refresh_pattern data-cdn.mbamupdates.com/.*\.(ref) 4320 100% 43200 reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 80% 10080
refresh_pattern ^http://*.yahoo.*/.* 720 80% 7200
refresh_pattern ^http://mail.google.com/.* 720 80% 10080
refresh_pattern ^http://*.google.*/.* 720 80% 7200
refresh_pattern ^http://*.wordpress.com/.* 720 80% 10080
refresh_pattern ^http://*.wp.com/.* 720 80% 10080
refresh_pattern ^http://*.gravatar.com/.* 720 80% 10080
refresh_pattern ^http://*.blogspot.com/.* 720 80% 10080
refresh_pattern ^http://*.msn.*/.* 720 80% 10080
refresh_pattern ^http://*.evony.com/.* 720 80% 10080
refresh_pattern ^http\:\/\/.*\.windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/office\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/windowsupdate\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w?xpsp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/w2ksp[0-9]\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.microsoft\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/download\.macromedia\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^ftp\:\/\/ftp\.nai\.com/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http\:\/\/ftp\.software\.ibm\.com\/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http://download.windowsupdate.com/msdownload/update/software/updt/ 10080 80% 43200 reload-into-ims
refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://*.static.ak.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache i$
refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
refresh_pattern ^http://apps.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-a$
refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignor$
refresh_pattern ^http://*.jobstreet.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache

#refresh_pattern ^http://*.detik.com.*/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache
#refresh_pattern ^http://*.detik.*/.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth

#refresh_pattern ^http://*.indowebster.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-n$
#refresh_pattern ^http://*.ziddu.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ig$
#refresh_pattern ^http://*.mediafire.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-$
#refresh_pattern ^http://*.4shared.com.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-ca$
#refresh_pattern ^http://*.21cineplex.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cac$
#refresh_pattern ^http://*.kompas.*/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.blogspot.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#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 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-a$
#refresh_pattern ^http://*.tinypic.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.imageshack.us/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.kaskus.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://www.kaskus.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.okezone.*/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://www.okezone.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://www.inilah.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://www.kapanlagi.com/.* 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-a$

#refresh_pattern ^http://*.detiknews.*/*.* 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://video.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-$
#refresh_pattern ^http://static.liputan6.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignor$
#refresh_pattern ^http://*.friendster.com/.* 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
#refresh_pattern ^http://*.twitter.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.facebook.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://profile.ak.fbcdn.net/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignor$
#refresh_pattern ^http://*.yahoo.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.google.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.forummikrotik.com/.* 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore$
#refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-$
#refresh_pattern ^http://*.c1p1.wordpress.com/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignor$
#refresh_pattern ^http://*.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://opensuse.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
#refresh_pattern ^http://*.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache igno$
#refresh_pattern ^http://*.opensuse.kendari.linux.or.id/.* 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-c$

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl localnet src 192.168.10.0/255.255.255.255
acl user src 192.168.11.0/24

#untuk melimit user wereles
acl download url_regex -i \.asf
acl download url_regex -i \.exe
acl download url_regex -i \.mp3
acl download url_regex -i \.vqf
acl download url_regex -i \.tar.gz
acl download url_regex -i \.gz
acl download url_regex -i \.tar
acl download url_regex -i \.zip
acl download url_regex -i \.mp4
acl download url_regex -i \.flv
acl download url_regex -i \.avi
acl download url_regex -i \.mpeg
acl download url_regex -i \.mpe
acl download url_regex -i \.mkv
acl download url_regex -i \.mpg
acl download url_regex -i \.doc
acl download url_regex -i \.docx
acl download url_regex -i \.iso
acl download url_regex -i \.rar
acl download url_regex -i \.wav
acl download url_regex -i \.mov
acl download url_regex -i \.msi
acl download url_regex -i \.raw
acl download url_regex -i \.v13.lscache4.c.youtube.com
acl download url_regex -i \.tc.v15.cache3.c.youtube.com

acl SSL_ports port 443 563 873 # https snews rsync
acl Safe_ports port 80 # http
acl Safe_ports port 20 21 22 53 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
#acl Safe_ports port 631 # cups
#acl Safe_ports port 666 # cups
#acl Safe_ports port 10000 # webmin
acl Safe_ports port 901 # SWAT
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
acl Safe_ports port 873 # rsync
acl Safe_ports port 110 # POP3
acl Safe_ports port 25 # SMTP
acl Safe_ports port 2095 2096 # webmail from cpanel
acl Safe_ports port 2082 2083 # cpanel
acl purge method PURGE
acl CONNECT method CONNECT
acl inputIP url_regex ^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/$

#fungsi ini masih bingung
header_access X-Forwarded-For deny all
header_access Accept-Encoding deny all
client_persistent_connections off
server_persistent_connections on
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 110 # POP3
acl Safe_ports port 25 # SMTP
acl Safe_ports port 2095 2096 # webmail from cpanel
acl Safe_ports port 2082 2083 # cpanel
acl purge method PURGE
acl CONNECT method CONNECT
acl inputIP url_regex ^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/$

#fungsi ini masih bingung
header_access X-Forwarded-For deny all
header_access Accept-Encoding deny all
client_persistent_connections off
server_persistent_connections on
half_closed_clients off
strip_query_terms off
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100
vary_ignore_expire on
reload_into_ims on
pipeline_prefetch on
#range_offset_limit 50 KB
#read_timeout 30 minutes
#client_lifetime 6 hours
negative_ttl 30 seconds
positive_dns_ttl 6 hours
negative_dns_ttl 60 seconds
pconn_timeout 15 seconds
request_timeout 1 minute
store_avg_object_size 13 KB
log_icp_queries off
ipcache_size 16384
ipcache_low 98
ipcache_high 99
log_fqdn off
fqdncache_size 16384
memory_pools off
forwarded_for on
prefer_direct on

#fungsi ini masih bingung
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136

#cachemgr_passwd none info
cachemgr_passwd none all
client_db on
max_filedescriptors 8192

######### for Lusca Only #############
n_aiops_threads 24
load_check_stopen on
load_check_stcreate on
download_fastest_client_speed on

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports
cache_mgr muammalhamidy@gmail.com
visible_hostname bagian_umum/umum.net
unique_hostname KOMANDANSIPELAUT
hostname_aliases umum.net

#fungsi melimit user wereles dari acl atas#
delay_pools 1
delay_class 1 2
delay_parameters 1 100/10000 100/100000
delay_access 1 allow user download
delay_access 1 deny ALL
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 26 Jan 2012, 09:19

sebenarnya ane masih lom paham apa itu squid lusca [0]

Code: Select all

- apakah harus install squid baru lusca
- apa install lusca baru squid
- apakah lusca itu bagian squid (kayak path gitu)
dan
- apakah hanya install lusca saja??, lalu untuk squidnya dibuang

tapi klo ngelihat hasil speed test ane..
ane aja hampir tidak percaya dengan hasil segitu gegegeekk.....
padahal itu dengan posisi sekitar 10 user sedang aktif
[0] http://bayu.blitar.org/index.php/instal ... web-cache/
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: cache lusca berfungsi sebagian

Postby thrvers » 26 Jan 2012, 10:09

'
Lusca is a fork of the Squid-2 development tree. The Lusca project aims to fix the shortcomings in the Squid-2 codebase whilst maintaining the the Squid-2 functionality and stability.

This project provides existing Squid-2 users with a migration path to an actively developed codebase and new users with a stable, predictable software product to deploy.

dan dilihat dari setting, sama dengan squid :D
intinya instal lusca saja atau squid saja.

cmiiw
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: cache lusca berfungsi sebagian

Postby MasDjo » 26 Jan 2012, 22:25

Yg biasanya dipakai :
Rumus hitung L1 = (misal mean = 13 kb dan L2 = 256)
(((3600000/13)/256)/256) x 2 = 8.45 == 8

shg :

cache_dir aufs /p1 3600 8 256
cache_dir aufs /p2 3600 8 256

kok masbro pelaut bisa 800, rumusnya yg kayak apa nih ... :grin:
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 27 Jan 2012, 07:49

MasDjo wrote:Yg biasanya dipakai :
Rumus hitung L1 = (misal mean = 13 kb dan L2 = 256)
(((3600000/13)/256)/256) x 2 = 8.45 == 8

shg :

cache_dir aufs /p1 3600 8 256
cache_dir aufs /p2 3600 8 256

kok masbro pelaut bisa 800, rumusnya yg kayak apa nih ... :grin:

keknya memang ane yang salah ngitung :grin: :grin: :grin: :grin: :grin:
apakah ini juga mempengaruhi alokasi penyimpanan sehingga tidak merata..????
tapi kok aneh yaa... :crazy: :crazy: browsing sama donlot lancar gak ada masalah... :confused: :confused:
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: cache lusca berfungsi sebagian

Postby yudiarbi » 27 Jan 2012, 09:29

setuju sama bro2 di atas, kl squid ya squid saja bro, kalo perhitunganne mgkn bisa juga merujuk ke http://4linuxprb.co.cc/index.php/tutori ... ache-squid
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 27 Jan 2012, 09:39

hee.. iya broo...
lebih enak pakek yang ginian [0] juga broo.....
iseng2 nyari...

[0] http://abyfine.com/info/squid-cache-calculator/
User avatar
JonCunKring
Posts: 4
Joined: 19 Feb 2012, 08:22
Location: Tanjung Tabalong, Kalsel

Re: cache lusca berfungsi sebagian

Postby JonCunKring » 19 Feb 2012, 08:49

Code: Select all

- apakah harus install squid baru lusca
- apa install lusca baru squid
- apakah lusca itu bagian squid (kayak path gitu)
dan
- apakah hanya install lusca saja??, lalu untuk squidnya dibuang


klo saya sih gak usah install paket squid, jadi jika masih ada squid langsung saya apt-get remove --purge squid aja, lalu langsung install lusca-nya. awalnya saya juga bingung, setelah coba2 sana-sini baru bisa jalan lusca saya.
tulisan singkat saya ada disini http://comstuff.net/forum/showthread.ph ... 1#post2164
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 19 Feb 2012, 11:50

lalu yang bikin ane bingung
nanti misal klo mau stop atau restart squidnya bigimana tuch bro...
User avatar
JonCunKring
Posts: 4
Joined: 19 Feb 2012, 08:22
Location: Tanjung Tabalong, Kalsel

Re: cache lusca berfungsi sebagian

Postby JonCunKring » 22 Feb 2012, 13:45

start stop seperti biasa aja,,,,/etc/init.d/squid start
soalnya file squid-nya ditaruh di /etc/init.d
User avatar
rockafello
Posts: 48
Joined: 23 Jan 2012, 14:21
Location: bekasi
Contact:

Re: cache lusca berfungsi sebagian

Postby rockafello » 22 Feb 2012, 23:03

sipelaut wrote:salam
setelah nyoba squid lusca
kok media penyimpanannya hanya berfungsi satu partisi saja ya?? :confused:
padahal saya membuat 3 partisi :cool:

Code: Select all

cache_dir aufs /p1 3600 800 100
cache_dir aufs /p2 3600 800 100
cache_dir aufs /p3 3600 800 100


Code: Select all

proxy:/etc/squid# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             9.2G  1.1G  7.7G  13% /
/dev/hda6             5.6G  498M  5.1G   9% /p1 <---- hanya ini yang berubah
/dev/hda7             5.6G   50M  5.6G   1% /p2
/dev/hda3             6.3G   51M  6.3G   1% /p3
tmpfs                  10M  632K  9.4M   7% /dev

atau memang begini cara kerja dari lusca :confused: , hanya satu buah pastisi saja?? :whistle:
mohon bimbingannya :grin:
wassalam


mas tlong ajari aku caranya ...
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 23 Feb 2012, 07:29

rockafello wrote:.
.
.
.

mas tlong ajari aku caranya ...

ajarin yang apa yaa..????
User avatar
ad_ry
Posts: 4
Joined: 03 Jul 2011, 17:08
Location: Mataram
Contact:

Re: cache lusca berfungsi sebagian

Postby ad_ry » 24 Feb 2012, 17:38

sipelaut wrote:
rockafello wrote:.
.
.
.

mas tlong ajari aku caranya ...

ajarin yang apa yaa..????

store_dir_select_algorithm round-robin

Ane perhatikan itu belum ada mbah di squid conf nya.
kalo gak salah itu agar pembagian penyimpanan cache biar merata mbah CMIIW...
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: cache lusca berfungsi sebagian

Postby sipelaut » 25 Feb 2012, 10:49

ad_ry wrote:
store_dir_select_algorithm round-robin

Ane perhatikan itu belum ada mbah di squid conf nya.
kalo gak salah itu agar pembagian penyimpanan cache biar merata mbah CMIIW...

seakrang udah merata masbro..
meskipun tidak sama2 keisi semua persennya
keknya memang kudu ditunggu
User avatar
antoniusgenta
Posts: 103
Joined: 29 Dec 2011, 14:40
Location: jakarta

Re: cache lusca berfungsi sebagian

Postby antoniusgenta » 27 Feb 2012, 10:18

sipelaut wrote:salam
setelah nyoba squid lusca
kok media penyimpanannya hanya berfungsi satu partisi saja ya?? :confused:
padahal saya membuat 3 partisi :cool:

Code: Select all

cache_dir aufs /p1 3600 800 100
cache_dir aufs /p2 3600 800 100
cache_dir aufs /p3 3600 800 100


Code: Select all

proxy:/etc/squid# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             9.2G  1.1G  7.7G  13% /
/dev/hda6             5.6G  498M  5.1G   9% /p1 <---- hanya ini yang berubah
/dev/hda7             5.6G   50M  5.6G   1% /p2
/dev/hda3             6.3G   51M  6.3G   1% /p3
tmpfs                  10M  632K  9.4M   7% /dev

atau memang begini cara kerja dari lusca :confused: , hanya satu buah pastisi saja?? :whistle:
mohon bimbingannya :grin:
wassalam


aktifkan metode roundrobin di squid.conf nya.
ini mbah save di squid.conf-nya

Code: Select all

store_dir_select_algorithm least-load|round-robin


=================================
CLOSE YOUR WINDOW OPEN YOUR LINUX
=================================

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 10 guests