Reverse Proxing for Highspeed Content Delivery

Delivery Condition :

delivery size : 10~500K (avg 300KB) file
total file size : 1TB
Request per sec -
Minimum : 3000 Requests / sec
Average : 9000 requests / sec
Peak : 36000 Requests / sec
Inactconn : 150,000 / Average
enforce object ttl : 1Day (NO REFRESH/MODIFIED ignore)
daily cache average area size (following ttl time) : most 8.2GB
peak transmit rate : 400MBps
Memory : 16GB

Additional Information
Storage : 3ware sata raid5
capacity : 4TB
Transferating Speed :  READ 190MB/s / ( actually most 30MB/s  left bandwidth for handle cache server, we have a lot of writing, and reading for another service.)


Current Configuration
Using Squid
only first level caching on memory
no secondary level caching

Problem : never cache again when the object has been expired.
1day -> cached object -> 1days over(2days) -> cached object has been expire also purge memory -> 2Days after -> the object never cache again -> user request this -> direct pass throught to origin server

We got a serveral I/O hazard when the expired object is issued in our site by users.

Tried aufs secondary level caching with async i/o , but the result is very poor.
if you have setting like that, you cannot make a traffic over 250Mbps

I'll trying to install squid version 3.
Actually there is no solutions, except zeus web server.
(i saw the report which zeus performance results, it is good for this case,
but still have memory caching problems for seperate process sharing)

Tried Solutions
varnishd - it supporting useful configuration, the vcl have much feather than squid's.
but we got a serveral memory bugs. it isn't perfect yet. do not use to production.
and there is no cache replacement logics such like as LRU, Greedy dual size freqs.
this is very important logic when you operating over memory only system.

lighttpd - too very slow. that is not optimized for cache usage

apache - don't think.

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by LeCieL

2007/01/21 03:31 2007/01/21 03:31
, , , , , , , ,
Response
No Trackback , No Comment
RSS :
http://cl.dgtalx.net/rss/response/90

ss5 quick reference

ss5 는 socks5 소켓 프락시다.

user configure 를 별도로 하거나, ldap, pam auth 에 대한 설정을 이용할 수 있다.

ss5.conf 파일이다.
다운로드 URL : http://sourceforge.net/projects/ss5

# 요 사이 내용은 필요시 사용
set SS5_PAM_AUTH  #pam auth 사용

auth    사용IP        -               n      # fake auth
#pam auth 혹은 패스워드 인증 사용시 n을 u로 바꾸어 주면 실제 인증을 요구하게된다.
auth    0.0.0.0/0               -               -
permit -        사용IP        -       0.0.0.0/0       -       -       -       -       -   #모든 이용권한 승인
deny    -       0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -  #모든 이용권한 거절

ss5.passwd 는 아이디/패스워드 식으로 저장한다. 암호화없이 플레인으로 저장하므로 파일퍼미션에 신경쓰자
기본포트는 1080번을 사용한다.

설정이 다되었으면 /etc/init.d/ss5 start
그리고 자신의 시스템이 방화벽이 동작중인지를 잊지 말아야 한다.

주의1 : 64bit system에서는 정상동작하지 않는다. (게시물 작성일자 기준)
주의2 : Firefox 에서는 socks5 모드로 정상적인 프락시 역할을 수행할 수 없다. socks4 로 변경하여 이용하라
주의3 : 인터넷 브라우저에서 proxy로 이용시 모든항목을 비우고 socks 항목에만 서버정보를 입력해라

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by LeCieL

2006/10/11 22:35 2006/10/11 22:35
, , ,
Response
No Trackback , No Comment
RSS :
http://cl.dgtalx.net/rss/response/13


Archives

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29