《架构演进:网易开源.pptx》由会员分享,可在线阅读,更多相关《架构演进:网易开源.pptx(38页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、open source in netease,网易杭州研究院 谢骋超 圈圈套圈圈 xiecc,About me-hujs(jsconf in china),Category,Overview Pomelo framework InnoSQL Site,Overview,How many corps support employees for full time open source?,We are, a long, along time ago,Netease and open source,Now is the time, for exposure,A game server develo
2、pment framework,Pomelo framework,Web Tomcat/Jetty Struts/Spring ruby on rails django express,Game Reddwarf SmartfoxServer Bigworld,Fast, scalable architecturesingle process does not scale,Runtime architecture,Game VS Web,Long connection VS Short connection Partition: area based VS Load balanced clus
3、ter State VS Stateless Broadcast VS Request/response,almost zero code achieving this architecture easy to extend servers,Server abstraction,Server abstraction,Duck type,Server abstraction,server type,Easy request/response, channel, rpc,Request/response,Zero config Client, like ajax Server, like web
4、mvc framework,rpc framework,app.rpc.chat.chatRemote.kick,Zero config Auto route,Focus on performance, and honest,Full stress testing,A lot of optimization,Online users per area: 100 to 800 Response time: 200ms Problems solved: Html 5, client side memory leak Path finding and aoi optimization Data to
5、o fat, reduce weight Unclean connection data, make socket.io crazy Some api implementation: dataApi Divide process: path finding And broadcast,1600 onlines per area,800 onlines per area,A lot of tools and library,Pomelo-architecture,framework,data-sync,seq-queue,schedule,ai,robot,pathfind,aoi,Librar
6、y,. . .,Admin console,tools,Full MMO demos in HTML5,Written in node.js,Coming soon 2012.11月底,InnoSQL,http:/www.innomysql.org/ Mysql 分支版本 更好的MySQL数据库性能 将一些富有创意的想法用于数据库的生产环境。,InnoDB Flash Cache,SSD as L2 Cache Persistent cache Write back Read cache Read page from flash cache Write cache Merge write Im
7、prove write intensive workload,InnoSqls flash cache architecture,InnoDb FlashCache,InnoDb warm up,MySQL/Percona/Twider Dump/Load LRU InnoSQL Share Memory + Dump/Load LRU,InnoSql warm up,IO Statistics,Vanilla MySQL SQL Profiler Record IO statstics based on global InnoSQL SQL Profiler Integrate IO statistics with SQL Profiler IO statistics with each SQL Excellent help for DBA & developer,IO Statistics,Slow log,And more,死锁检测优化 -stack方式模拟递归 UNDO informatin_schema -每个事务的undo信息 Virtual sync Replication with group commit MySQL Profiler,Open source site, Follow us 圈圈套圈圈 insidemysql 网易汪源 -CE-,Q&A,
限制150内