1 docker风起云ppt v1
TRANSCRIPT
應用程序容器 Docker
與基礎設施容器 Joyent SmartMachines
的融合
风起云 / 联科集团(中国)有限公司
联席合伙人
吴秉宗
目录
1. Joyent Smart Cloud Technology 高性能云技术
2. Docker 與 Joyent SmartMachines 的融合
3. Docker + SmartMachines 的优势
4.总结
风起云就是中国的Joyent公司
• Joyent公司是美国三大公有云提供商之一
• 风起云与Joyent公司为合作伙伴关系,把Joyent公司的技术带到大中华地区
• Joyent公司的投资者和合作伙伴:
Z4
Z4 GT
传统的虚拟化技术(例如: VMware)
智能计算
高性能云计算
5
云架构的演进
Smart ComputingApplication Virtualization
Hardware Abstraction
Services Architecture
Traditional HardwareHardware Centric
Data Center Based
Centralized
1995
2010 +
< 1980
Virtual EnterpriseStovepipes of Dedicated
Hardware
Distributed Computing
App
Code
OS
App
Code
OS
User Interface Machine
Interface
Components Services
Computi
ngModules
StorageModules
NetworkModules
Software as a Service (SaaS)
Platform as a Service (PaaS)
Infrastructure as a Service (IaaS)
2005
SmartOS and KVM for Linux/Windows
Source: my.joyent.com
SmartOS
Existing Joyent’s Docker is on KVM
Existing Joyent’s Docker is on KVM;
Docker running on SmartOS will launch in Q1-Q2
目录
1. Joyent Smart Cloud Technology 高性能云技术
2. Docker 與 Joyent SmartMachines 的融合
3. Docker + SmartMachines 的优势
4.总结
應用程序容器
Source: http://www.slideshare.net/dotCloud/docker-intro-november?qid=4d3ee42e-50fd-4565-b82c-cfbbc1d32d26&v=qf1&b=&from_search=1
Docker vs Virtual Machines
Source: https://www.docker.com/whatisdocker/
Docker Virtual Machines
Docker runs as an isolated process in userspace on the host operating system, sharing the
kernel with other containers. Thus, it enjoys the resource isolation and allocation benefits
of VMs but is much more portable and efficient.
vse.g. 8G RAM
e.g. 4G RAM e.g. 4G RAM
Joyent vs other cloud technologies
Source: www.joyent.com
vs
“Container-based” Joyent Other Cloud Technologies
Joyent SmartMachine differs from traditional and virtual machine architectures primarily
in that it goes further in abstraction of the hardware by presenting the hosted application
with access to a pool of resources rather than control of a fixed resource. The
SmartMachine has been designed to be very transparent to the underlying
operating system, Joyent SmartOS.
e.g. 4G RAM e.g. 4G RAMe.g. 4G RAM scale to 8G RAM without reboot
Competition?
Source: www.joyent.com
Q: Does this mean that Joyent SDC somehow competes with Docker?
Bryan Cantrill, CTO Joyent:
“…emphaticially NOT – and in fact, to the contrary: we see Docker as entirely
complementary to Joyent solutions. While Docker delivers application
containers that are easy to create and portable across different infrastructures,
our focus is on making Joyent the best place to run Docker containers.”
Docker + KVM
Source: www.joyent.com
KVM
Application Container “Docker”e.g. 8G RAM
Resource allocation within Docker KVM
Bryan Cantrill, CTO Joyent:
“…today you can leverage SDC to
create KVM-based Docker hosts to
support your Docker deployments…”
融合 Docker + SmartOS
Source: www.joyent.com
Infrastructure Container “Joyent”
Application Container “Docker”e.g. 8G RAM
e.g. 8G RAM scale
to 16G RAM without reboot
Bryan Cantrill, CTO Joyent:
“…allow Docker containers to run
directly on the metal instead of being
tied to virtualized hardware…”
Joyent’s vision on Docker
Source: www.joyent.com
“We have a nascent Docker API endpoint for SDC that we intend to couple with
our emerging ability to natively execute Linux binaries on SmartOS to be able
to run Docker images securely and at scale directly on hardware”
“…contribute to the Docker project. In particular, as the community explores
things like network virtualization and ZFS-based storage.”
“…make the Joyent Public Cloud and private cloud software the best place to
run them!”
by Bryan Cantrill, CTO Joyent:
Key challenge: Getting native Docker Linux to run on SmartOS (Solaris)
to be announced in Q1/2-2015
Docker + SmartOS
Q: Why running Docker directly on hardware
instead of virtualized resources?
A: peformance, performance, performance
目录
1. Joyent Smart Cloud Technology 高性能云技术
2. Docker 與 Joyent SmartMachines 的融合
3. Docker + SmartMachines 的优势
4.总结
优势一: 高可扩展性 -- 垂直扩展
SmartMachines提供CPU的爆发,以处理短期可变的负荷
参考案例一电子商务网站(Reebonz) 网页服务器性能优化
• 某电子商务网站运行5台Linux服务器,每台48GB RAM,总共240GBRAM,来处理高峰时期的同时在线5,000个用户。 (平均每个48GB Linux服务器需应对1,000个同时在线用户)
• 在高峰时期所有的RAM和CPU都是超负荷的• 硬件成本非常高,并且难以扩展
• 每个4GB Joyent SmartMachine 可处理 250个同时在线用户, 相当于达到一个48GB Linux服务器1/4的性能
• 应对5,000个客户同时在线,只需要20个4GB SmartMachines (总共80 GB RAM)
就足够了• 节省超过60%的成本
• 将链接层和业务层分开• 将链接层放在Node.js的
Joyent SmartMachine上• 将Java业务层放在Tomcat上
0
100000
200000
300000
400000
500000
600000
Fengqi.Asia Other provider
每一主机可处理的并发连接
参考案例一(续)
风起云主机可处理的并发连接是其他供应商的10倍
优势二: 无重启地扩展储存及内存RAM
SmartDataCenter提供水平扩展助您快速部署云主机,以应付长期增长
无重启地扩展储存及内存RAM
按需计算,降低规划的复杂性
消除I / O瓶颈,减少争用问题消除RAM废料
提高透明度
应用程序为中心最大限度地减少网络延迟
架构 轻量级的虚拟化
CPU爆发 智能缓存
高效的性能
高可扩展性
全天候技术支持
快速部署
Kabam是Facebook上一家领先的社交游戏开发商,网上支持者社群连接数以百万计的体育和电视迷,并且已经扩展专长来创造社创新和引人入胜的社交游戏。
社交游戏难以扩展是一个让人头痛的问题,幸好的Joyent的云切实地解决了这个问题
JOHN HIGGINS
Director of Web Operations, Kabam Inc.
高度可扩展性: Kabam
001001
10
001001
10
001001
10
001001
10
001001
10
010000110110111101101110011001110111001001100001011101000111010101101100011000010111010001101001011011110110111
001110011001000010100001101101111011011100110011101110010011000010111010001110101011011000110000101110100011010
010110111101101110011100110010000101000011011011110110111001100111011100100110000101110100011101010110110001100
001011101000110100101101111011011100111001100100001010000110110111101101110011001110111001001100001011101000111
01010110110001100001011101000110
010000
110110
111101
101110
011001
110111
001001
10
应用程序
VCPU模拟
CPU
硬盘
应用程序
CPU
硬盘
ARC Cache + I/O QOS
省却软件CPU 模拟使CPU benchmarks
有5倍 的提速效果。
ARC Cache + I/O QOS在Disk IO benchmarks有14倍的提速效果。
软件CPU 模拟使整体效能降低
没有Global Disk Caching使
Disk IO未能完全优化
VMware不适合网页/流动应用程序:互动,流动,实时,游戏,社交,machine-to-machine 应用程序.
Joyent适合网页/流动应用程序:配合node.js使用效果更佳.
网页应用程序加速取决于I/O优化,而非CPU / RAM优化。
VMware ESXi
X86硬件资源(服务器、交换
机、存储)
优势三: 卓越性能利用的ARC缓存成就优越的磁盘I / O
高效的性能
高可扩展性
全天候技术支持
快速部署
虚拟机基准测试 - 用于测试的机型
风起云 VM (Large)
•CentOS6.4
•4核
•4G RAM
•20GB 硬盘
•香港 VS
亚马逊 EC2 (m1.Large)
•RHEL6
•2 EC2 Compute Units (每个compute unit 有 2个 virtual cores)
•7.5GB RAM
•850GB 硬盘
•美国东部
阿里云 (Large)
•CentOS6.3
•4核
•4G RAM
•20GB 硬盘
•青岛
测试 1: Disk I/O Test - IOZone
0
100
200
300
400
500
600
700
800
900
0
10
20
30
40
50
60
70
80
90
100MB/s MB/s
Disk I/O Test: Write Disk I/O Test: Read
141%
Better
1672%
Better
Test details: IOzone - Record Size: 4Kb - File Size: 8GB - Disk Test: Write and Read Performance
Write: This test measures the performance of writing a new file
Read: This test measures the performance of reading an existing file
Reference: http://www.iozone.org/docs/IOzone_msword_98.pdf
基准测试结果总结
测试 类别 基准
风起云 –优于
虚拟机
亚马逊 EC2 阿里云
1 磁盘 I/O 测试IOZone: 写 +141% +117%
IOZone: 读 +870% +1672%
2 内存 I/O 测试RAMSpeed: 整数 +196% +25%
RAMSpeed: 浮点 +270% +51%
3 CPU 测试稀疏矩阵乘法 +185% +69%
稠密矩阵的LU分解计算 +91% +34%
Barrier: Linux to SmartOS Cheatsheet
https://wiki.smartos.org/display/DOC/The+Linux-to-SmartOS+Cheat+Sheet
Demo
Joyent.com
风起云—基础设施即服务
风起云
• 由联科集团持有• 香港设有两个数据中心• 北京设有两个数据中心•上海一个数据中心• 计划于中国建立更多数据中心
• 多线BGP, 连接中国联通,
移动,电信和教育网
联科集团(中国)有限公司
•成立于2000年•总部设于香港科学园•在中国有六间办公室•专注于: 集群,云计算, 商业智能, 金融工程
风起云助您业务腾飞
风起云通过所有安保及技术要求,被香港特区政府认可为政府公共云端服务供应商。
客户列表(部分)
行业
客户
游戏 电商/应用 政府
合作伙伴(部分)
合作伙伴 描述
Kii 提供MBaaS (Mobile Backend-as-a-Service):
-透过提供行动平台的SDK跟公开的云端APIs来与App做资料交换以及储存
-移除所有的后端开发
-可扩展的后端服务
-减少开发周期
网宿科技 向客户提供内容分发与加速(CDN), 带宽达4Tbps
Edgecast 于香港及海外向客户提供内容分发与加速(CDN), 带宽达3Tbps
Riak领先分布式数据库由Basho开发,具有扩展性强,性能高,可靠,实用,可降低总运营成本等优势。用Riak构建的应用程序在任何条件下都可以保持同步读写,无需额外干预。无论在开放还是付费版本上,Riak都为企业、web、移动应用程序提供了前所未有的读写功能。
Basho
低延迟及快速部署
• 5分钟快速创建香港/国内云主机• 提供Linux,Windows及Joyent SmartMachine
从香港往返延迟*(毫秒)
• 低延迟:
地区 延迟(毫秒)
台湾 30
新加玻 32.6
印度尼西亚 58.7
马来西亚 60.3
泰国 67.4
*办公室实验结果
• 单机快速扩展:Joyent SmartMachine在不用关机
的情况下便可灵活增加内存及硬盘
总结
• 2015
o Q1: Docker + SmartMachine 在 Joyent 上線
o Q2: Docker + SmartMachine 在 风起云-香港北京上海 上線
o Q2/3: 希望邀請 Joyent 的 Docker技術負責人在中國分享
關注风起云微信,通知大家最新進展:
和測試 Docker 的 SmartMachine:
張聞聞(上海): 180 3737 9060