• Save
JavaEye网站架构解密
Upcoming SlideShare
Loading in...5
×
 

JavaEye网站架构解密

on

  • 1,596 views

 

Statistics

Views

Total Views
1,596
Views on SlideShare
1,576
Embed Views
20

Actions

Likes
3
Downloads
0
Comments
0

1 Embed 20

http://blog.xiaoshuolang.com 20

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    JavaEye网站架构解密 JavaEye网站架构解密 Presentation Transcript

    • JavaEye Robbin Fan
    • • JavaEye• JavaEye• JavaEye•
    • JavaEye
    • JavaEye• 1U•1 Web Server, 1 DB Server• 2.6• 3
    • Web Server• AMD Opteron 2.4GHz *2• 8G• 146G SCSI
    • DB Server• AMD Opteron 2.0GHz *2• 4G• 73G SCSI
    • 150 /
    • JavaEye 10 20 RSSRSS 20 100
    • ruby ......
    • Google Adplanner Data for JavaEye
    • Google Adplanner Data for JavaEye
    • IT CSDN 260 JavaEye 74ChinaUnix 73 Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 260 3.5X JavaEye 74ChinaUnix 73 Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server 260 3.5X JavaEye 74ChinaUnix 73 Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74ChinaUnix 73 Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 ServerChinaUnix 73 Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 Server rubyChinaUnix 73 Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 Server rubyChinaUnix 73 4+ Server Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 Server rubyChinaUnix 73 4+ Server PHP Cnblogs 55 ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 Server rubyChinaUnix 73 4+ Server PHP Cnblogs 55 4+ Server ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 Server rubyChinaUnix 73 4+ Server PHP Cnblogs 55 4+ Server ASP.net ITPUB 38 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 Server rubyChinaUnix 73 4+ Server PHP Cnblogs 55 4+ Server ASP.net ITPUB 38 PHP 51CTO 23 infoq 8 0 75 150 225 300
    • IT CSDN 30+ Server ASP.net 260 3.5X JavaEye 74 2 Server rubyChinaUnix 73 4+ Server PHP Cnblogs 55 4+ Server ASP.net ITPUB 38 PHP 51CTO 23 infoq 8 Java 0 75 150 225 300
    • JavaEye
    • 2006.09•1••
    • 2006.09• lighttpd• ruby 1.8.4, rails 1.1.2, fastcgi• mysql5.0
    • Single Server lighttpdfastcgi(ruby) mysql
    • 2007.01• 2• web DB• IO
    • Web Server DB Server lighttpdfastcgi(ruby) mysql
    • 2007.02• posts• posts select count 30 0.1
    • posts• posts(id, ..., body)• 2GB
    • posts• posts(id, post_text_id,...) 50MB• post_texts(id, body) 2GB
    • 2007.03•• memcached CachedModel•• 240 sql query/s 140 sql query/s• memcached 75%
    • Web Server DB Server lighttpdfastcgi(ruby) mysqlmemcached
    • 2007.05••
    • 2007.09•• ruby ferret•
    • 2008.01• JavaEye• cache_fu• 84%• sql query 50 /s
    • 2008.05• rmmseg-cpp
    • 2008.10• cache plugin• 96%
    • 2008.10• ferret• Java lucene• C/S
    • Web Server DB Server lighttpd SearchServer (lucene)fastcgi(ruby) mysqlmemcached
    • 2008.11• PDF
    • Web Server DB Server lighttpd SearchServer (lucene)fastcgi(ruby) mysql PDF Creatingmemcached (ruby, C)
    • 2009.03• SNS feed• twitter• API
    • Web Server DB Server RSS/API fastcgi(ruby) lighttpd SearchServer (lucene)fastcgi(ruby) mysql PDF Creatingmemcached (ruby, C) twitter sync
    • 2009.03• Google Analytics•
    • Web Server DB Server RSS/API fastcgi(ruby) lighttpd SearchServeranalytics (lucene) fastcgi(ruby) mysql PDF Creating memcached (ruby, C) twitter sync DNS Server/Email Server/ NFS Server DNS Server/Email Server
    • 2009.12• Web IM••
    • Backgroud ServerWeb Server fastcgi(ruby) IM Server lighttpd PDF Creating SearchServer fastcgi(ruby) DB Server memcached mysql
    • JavaEye• CachedModel+ QueryCache• cache_fu• cache_plugin• cache_money*
    • ••• • page cache • frgment cache • REST
    • •• n• ORM• join n+1 SQL
    • • Web• IO•• n+1 SQL
    • CachedModel• , Hibernate•• select * from post_texts where id = ?• 75%
    • CachedModel• AR find_by_sql••
    • cache_fu• cache_fu AR•• cache_fu memcached 84%
    • cache plugin• Rails Cache 60• n:1 1:n• memcached 96%
    • memcached
    • memcached
    • cache_money• twitter• ruby cache•
    • • JavaEye•• ruby
    • JavaEye• ruby db Web Server load DB• ruby
    • ruby• ruby• erb•• ruby
    • postpost html
    • postpost html
    • JavaEye• memcached 96%• cache get : sql query = 4 : 1
    • JavaEye• ferret• ferret+rmmseg-cpp•
    • • ferret+rmmseg• ferret
    • fastcgi json protocol SearchServer (ruby) (java) socketlong lived processes long lived threads
    • • DNS• Web Server• ruby
    • Thank you!