What is ncache?

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    What is ncache? - Presentation Transcript

    1. NCACHE
      • The fast web cache server base on nginx
      • Use aio sendfile and epoll modules
      • The self sort share mem hash index
      • High performance and large storage
      • Low cpu cost and low iowait
      • Record lock instead of process lock
      • Without http headers cache
    2. OVERVIEW F5 NGINX PROXY NCACHE BACKEND BACKEND BACKEND
    3. STRUCTURE Be proxy hash index Init by Ngx master process when nginx is start on Ngx worker process Ngx worker process Disk Files Read / write by file system or raw dev Backend server Backend server Backend server Body filter Get the proxy content and save into the disk by aio
    4. Logic Diagram Request Request Find cache in index found Not found Timeout? not yes Sendfile output Proxy backend Body filter Writev output Aiowrite fresh index
    5. The self sort share mem hash index 2(5) 3(4) First floor of hash index List to solve the conflict of the hash Hash_malloc 1(6) Index[1]+2 = 7 1(6) 3(4) 2(7) Top:0 16777216 33554432 If arrived at the bottom of the share memory then ncache will return to the 16777216 point and find which can be reused
    6. Record lock Mmap auto sync Mem index Sync file Worker process Worker process Read Write Worker process Do not need to lock any worker process or request cause wait not cause wait not cause wait
    7. Performance between SQUID 1 First: cpu last: io Blue is ncache
    8. Performance between SQUID 2 SQUID NCACHE
    9. Future
      • The aio_sendfile function
      • Compress share memory hash index
      • Memory cache the hottest data
      • Raw device read and write
      • Distribute storage system
      • Aio queue with lio_listio function
    10. The end
      • Google code:
        • http:// code.google.com/p/ncache /
      • Nginx wiki:
        • http://wiki.codemongers.com/
      • Our mail:
        • [email_address]
        • [email_address]

    + guestf02407guestf02407, 10 months ago

    custom

    772 views, 1 favs, 0 embeds more stats

    a web cache system base on nginx web server. faster more

    More info about this document

    CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

    Go to text version

    • Total Views 772
      • 772 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 20
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories