Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2007-01-11 18:05:16

  askorka - Użytkownik

askorka
Użytkownik
Skąd: Śląsk
Zarejestrowany: 2007-01-07

Squid spowalnia dostęp

Mam taki problem debian sarge - po włączeniu squida dostęp do stronek jest bardzo spowolniony. Wyglada tak jakby bardzo długo szukał czy ma taką stronkę na dysku a potem dopiero ją ładuje. Po wyłaczeniu squida stronki ładuje szybko. nie wiem czy to jest norma albo może błąd w configu ? Może ktoś pomoże ??

Offline

 

#2  2007-01-12 07:25:08

  guzzi - Członek DUG

guzzi
Członek DUG
Skąd: Asteroida Linux
Zarejestrowany: 2005-03-31

Re: Squid spowalnia dostęp

trzeba ustawić confa squida - ale go nie przedstawiłeś i trudno zgadnąć którą opcję masz zwaloną.

Offline

 

#3  2007-01-13 18:09:41

  askorka - Użytkownik

askorka
Użytkownik
Skąd: Śląsk
Zarejestrowany: 2007-01-07

Re: Squid spowalnia dostęp

Poniżej podaję moj squid.conf

cache_mem 64 MB
store_avg_object_size 128 kB
cache_access_log /var/log/squid/access.log
acl all src 192.168.0.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 21 70 80 210 443 563 1025-65535
acl CONNECT method CONNECT
http_access allow all
icp_access allow all
miss_access allow all
cache_mgr root@localhost
http_port 3128
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
error_directory /usr/share/squid/errors/Polish
visible_hostname www.ruda.internetdsl.pl
log_fqdn on
log_mime_hdrs on
ident_lookup_access allow all localhost SSL_ports Safe_ports CONNECT
cache_dir ufs /var/spool/squid 50 16 25

Jeśli gdzies jest bląd to prosze o pomoc :)
Nie wiem też co dokładnie oznaczają liczby w ostatniej linii

Offline

 

#4  2007-01-13 18:55:19

  guzzi - Członek DUG

guzzi
Członek DUG
Skąd: Asteroida Linux
Zarejestrowany: 2005-03-31

Re: Squid spowalnia dostęp

Nie chce mi się myśleć masz mój conf. ( z tego co na początku wdzę to cache masz za dużo ustawione)

http_port 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY
cache_mem 16 MB
cache_dir ufs /var/spool/squid 256 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
#hosts_file /etc/hosts
dns_nameservers 194.204.152.34 194.204.159.1
refresh_pattern ^ftp:        1440    20%    10080
refresh_pattern ^gopher:    1440    0%    1440
refresh_pattern .        0    20%    4320


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 lan src 192.168.16.0/24
acl to_lan dst 192.168.16.0/24
acl lan src 192.168.1.0/24
acl to_lan dst 192.168.1.0/24
acl lan src 192.168.2.0/24
acl to_lan dst 192.168.2.0/24


#acl all proxy_auth REQUIRED
acl SSL_ports port 443 563    # https, snews
#acl SSL_ports port 873        # rsync
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443 563    # https, snews
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
acl Safe_ports port 631        # cups
acl Safe_ports port 873        # rsync
acl Safe_ports port 901        # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

acl zak_domeny dstdomain -i "/usr/local/squid/etc/zak_domeny"
#acl zak_url dstdomain -I "/usr/local/squid/etc/zak_url"
acl zak_url url_regex -i "/usr/local/squid/etc/zak_url"
http_access deny zak_domeny
http_access deny zak_url

http_access allow localhost
http_access allow to_localhost
http_access allow lan
http_access allow to_lan
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_group proxy
visible_hostname strona.pl
icp_access allow all
httpd_accel_port 80
error_directory /usr/share/squid/errors/Polish
coredump_dir /var/spool/squid
ie_refresh on

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.012 seconds, 12 queries executed ]

Informacje debugowania

Time (s) Query
0.00014 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00151 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.88.247' WHERE u.id=1
0.00094 UPDATE punbb_online SET logged=1719775331 WHERE ident='3.145.88.247'
0.00065 SELECT * FROM punbb_online WHERE logged<1719775031
0.00096 DELETE FROM punbb_online WHERE ident='185.191.171.9'
0.00097 SELECT topic_id FROM punbb_posts WHERE id=49573
0.00143 SELECT id FROM punbb_posts WHERE topic_id=6441 ORDER BY posted
0.00095 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=6441 AND t.moved_to IS NULL
0.00011 SELECT search_for, replace_with FROM punbb_censoring
0.00099 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=6441 ORDER BY p.id LIMIT 0,25
0.00104 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=6441
Total query time: 0.00973 s