نمایش نتایج: از شماره 1 تا 2 از مجموع 2

موضوع: Hit rate پايين و عدم باز شدن صفحات تنها در برهه هاي زماني بدون الگو

  
  1. #1
    نام حقيقي: S. Z.

    تازه وارد
    تاریخ عضویت
    Nov 2014
    محل سکونت
    Ahvaz
    نوشته
    1
    سپاسگزاری شده
    0
    سپاسگزاری کرده
    0

    Hit rate پايين و عدم باز شدن صفحات تنها در برهه هاي زماني بدون الگو

    باسلام
    من اقدام به نصب اسكوئيد كش برروي سرور لينوكسي براي پهناي باند 8 مگ با تعداد 100 كاربر كرده ام. با مطالعه پست هاي قبلي دوستان مبني بر سرعت يا كارايي كم كش، بهينه سازي ها به توصيه دوستان را برروي سرور انجام داده ام. حتي اقدام به نصب CachingOnly DNS برروي سرور كش جهت كاهش زمان پاسخ درخواست ها كرده ام ولي هم چنان Hit Rate بسيار پايين (در حدود 3 درصد) است و علاوه بر اين در بازه هاي زماني نامشخص هيچ صفحه وبي باز نمي شوند و درحال انتظار براي ارتباط با سرور سايت باقي مي ماند درحاليكه در همان زمان سرعت دانلود، عملكرد سرويس كش، ميزان پردازنده و رم مصرفي سرور آن و ميزان مصرف پهناي باند اينترنت (50 درصد خالي) چك شده و همه چيز عادي بنظر مي رسد. با توجه به مشخصات و كانفيگ زير چه چيزي ممكن است از قلم افتاده باشد؟ مشكل از كجاست؟
    مشخصات سخت افزار كش: رم 8 گيگ
    هارد: SATA 7200 rpm

    اينترنت: 8 مگ
    كاربران: ماكزيمم 100 نفر

    كانفيگ كش سرور:
    acl manager proto cache_object
    acl localhost src all
    acl to_localhost dst all
    visible_hostname localhost
    tcp_outgoing_address 192.168.#.#

    acl localnet src all

    acl SSL_ports port 443
    acl Safe_ports port 80 # http
    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
    acl CONNECT method CONNECT

    http_access allow manager localhost
    http_access deny manager

    http_access deny !Safe_ports

    http_access deny CONNECT !SSL_ports

    http_access allow localnet
    http_access allow localhost


    http_access deny all

    http_port 3128 intercept
    http_port 8080

    cache_effective_user squid
    cache_effective_group squid

    hierarchy_stoplist cgi-bin ?

    cache_dir ufs /var/spool/squid 100000 16 256
    cache_mem 6000 MB
    memory_pools off

    coredump_dir /var/spool/squid

    refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320$
    refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) $
    refresh_pattern -i windows.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 8$
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern \*.(html|htm|css|js)$ 1440 30% 14400
    refresh_pattern \*.(gif|png|jpg|jpeg|ico|bmp)$ 1440 20% 14400
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern -i (/cgi-bin/|\?) 0 0% 0


    #Reply
    acl mymachine src all
    http_reply_access allow mymachine

    #Log
    access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log

    #Cache Size
    cache_swap_low 95
    cache_swap_high 98
    maximum_object_size 50000000 bytes
    minimum_object_size 2000000 bytes
    maximum_object_size_in_memory 2 MB
    ipcache_size 100
    ipcache_low 94
    ipcache_high 96
    fqdncache_size 10000
    cache_replacement_policy lru
    memory_replacement_policy lru

    #Tuning the Squid Cache
    quick_abort_min 0 KB
    quick_abort_max 0 KB
    quick_abort_pct 90
    negative_ttl 1 minute
    positive_dns_ttl 8 hour
    negative_dns_ttl 30 second

    #Timeouts
    connect_timeout 2400 second
    client_lifetime 2 hour
    request_timeout 60 minute
    persistent_request_timeout 50 minutes


    #For caching images
    acl JPGS url_regex -i \.*/*.jpg$ #Matches JPGs from somedomain
    acl JPEGSS url_regex -i \.*/*.jpeg$ #
    acl JPES url_regex -i \.*/*.jpe$ #
    acl JFIFS url_regex -i \.*/*.jfif$ #
    acl TIFS url_regex -i \.*/*.tif$ #
    acl TIFFS url_regex -i \.*/*.tiff$ #
    acl GIFS url_regex -i \.*/*.gif$ #Matches GIFs from somedomain
    acl PNGS url_regex -i \.*/*.png$ #
    acl BMPS url_regex -i \.*/*.bmp$ #
    acl DIBS url_regex -i \.*/*.dib$ #
    acl ICOS url_regex -i \.*/*.ico$
    acl ALLx dst all #Matches Everything else
    never_direct allow JPGS
    never_direct allow JPEGSS
    never_direct allow JPES
    never_direct allow JFIFS
    never_direct allow TIFS
    never_direct allow TIFFS
    never_direct allow GIFS
    never_direct allow PNGS
    never_direct allow BMPS
    never_direct allow DIBS
    never_direct allow ICOS
    always_direct allow ALLx

    #404 Server not found
    acl CONNECT method CONNECT
    acl POST method POST
    never_direct allow CONNECT
    never_direct allow POST


    #DNS setting
    dns_retransmit_interval 1 seconds
    dns_timeout 30 seconds

    #icp Log
    log_icp_queries off



    موضوعات مشابه:

  2. #2


    عضو عادی شناسه تصویری neynef
    تاریخ عضویت
    Aug 2005
    نوشته
    533
    سپاسگزاری شده
    20
    سپاسگزاری کرده
    0
    از چه لینوکسی استفاده می کنید ؟ شما نیاز به کانفیگ بهتر و بهینه تر دارید.



کلمات کلیدی در جستجوها:

هیچ کلمه ای ثبت نشده است.

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •