1 / 21

Sina App Engine

Sina App Engine. - deep inside cloud service. SAE Team. http://t.sina.com.cn/saet. 前言. 什么是 Sina App Engine Sina App Engine的发展现状 SAE和微博是啥关系 关于SAE的外部好消息 关于SAE的内部好消息. 提纲. Cloud Service. RDC. MemcacheX. TaskQueue. Cloud Service. Php. XHProf. Stor. Image. MemcacheX. . 覆盖整个Web服务

asasia
Télécharger la présentation

Sina App Engine

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sina App Engine - deep inside cloud service SAE Team http://t.sina.com.cn/saet

  2. 前言 什么是 Sina App Engine Sina App Engine的发展现状 SAE和微博是啥关系 关于SAE的外部好消息 关于SAE的内部好消息

  3. 提纲 Cloud Service RDC MemcacheX TaskQueue

  4. Cloud Service Php XHProf Stor Image MemcacheX . 覆盖整个Web服务 . 精英团队作战 SMail DB Appconfig RDC Tmpfs TaskQueue Fetchurl Cron DeferredJobs

  5. Cloud Service

  6. Cloud Service App Sandbox:

  7. RDC 什么是RDC: Relational Database Cluster RDC的目标: 1,监控百万数量级的DB,包括心跳检查、主从同步检查、节点负载 2,管理百万数量级的DB,包括启动、停止、迁移、重启、切换 3,被动复制模式的HA 4,支持MySQL5通讯协议,代理层完全透明,代理损耗低 5,无状态依赖,自身支持水平扩展 6,提供用户的DB的隔离性,保证整体集群的安全性

  8. RDC RDC与MySQL在实现上的一些不同 1,多进程 vs 多线程 2,SQL解析,词法分析 vs 语法分析 3,Query Cache 特别说明: 1,RDC不负责用户数据库的水平扩展,所以水平扩展需要用户自己做分表 2,RDC自身提供一主多从的DB结构,上层支持读写分离 3,为了整个数据库平台的安全和可靠,RDC会根据自身的预判算法预先屏蔽某些SQL语句 4,RDC强烈建议用户使用正确的MySQL调用习惯,对每个MySQL函数判断返回值

  9. RDC

  10. RDC 如何使用RDC 主库 =》 w.rdc.sae.sina.com.cn:3307 从库 =》 r.rdc.sae.sina.com.cn:3307

  11. RDC RDC的预判机制: 1,语句 select update insert delete replace create table alter table create index 2,三道封锁线 3,SQL并发执行时间和

  12. RDC Benchmark: 硬件环境: 4Core 3GHz,4G 软件环境: CentOS 5.1 C++ boost 1.36 MySQL Server version: 5.0.87-log Source distribution 标准压测脚本,/usr/local/mysql5/sql-bench/run-all-tests RDC vs 标准MySQL with QueryCache -5% without QueryCache -10% 增强功能: 1,水平扩展 2,监控与系统结合

  13. MemcacheX 什么是MemcacheX MemcacheX的目的 1,low overhead 2,HA 3,Statics 4,Connection Protector 5, Data dump

  14. MemcacheX

  15. MemcacheX

  16. MemcacheX Connection保护 1,Connection LRU 2,Conection Timeout find-key => O(logN) insert-key => O(logN) delete-key => O(logN) get min-value => O(1)

  17. TaskQueue 1,什么是TaskQueue 2,和DeferredJobs的区别 3,如何使用TaskQueue

  18. TaskQueue

  19. TaskQueue 1,硬哈希 2,多进程 3,非阻塞timeout 4,master-slave 被动复制 5,worker延迟等待时间 6,worker死亡唤醒检查

  20. What we will do SAE is still coding • 新的代码部署文件系统 • 无缝迁移 • Key-Value数据库

  21. 关于 丛磊: 码控,http://t.sina.com.cn/kobe sprewellkobe@163.com 个人技术博客:http://saecloud.sinaapp.com

More Related