SlideShare a Scribd company logo
1 of 34
應用程序容器 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 Computing
Application Virtualization
Hardware Abstraction
Services Architecture
Traditional Hardware
Hardware Centric
Data Center Based
Centralized
1995
2010 +
< 1980
Virtual Enterprise
Stovepipes of Dedicated
Hardware
Distributed Computing
App
Code
OS
App
Code
OS
User Interface Machine
Interface
Components Services
Computi
ng
Modules
Storage
Modules
Network
Modules
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.
vs
e.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
00
10
01
10
00
10
01
10
00
10
01
10
00
10
01
10
00
10
01
10
0100001101101111011011100110011101110
0100110000101110100011101010110110001
1000010111010001101001011011110110111
0011100110010000101000011011011110110
1110011001110111001001100001011101000
1110101011011000110000101110100011010
0101101111011011100111001100100001010
0001101101111011011100110011101110010
0110000101110100011101010110110001100
0010111010001101001011011110110111001
1100110010000101000011011011110110111
0011001110111001001100001011101000111
01010110110001100001011101000110
01
00
00
11
01
10
11
11
01
10
11
10
01
10
01
11
01
11
00
10
01
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
100
MB/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

More Related Content

What's hot

云的基石:Net app存储平台
云的基石:Net app存储平台云的基石:Net app存储平台
云的基石:Net app存储平台ITband
 
分会场八和Net backup一起进入云备份时代
分会场八和Net backup一起进入云备份时代分会场八和Net backup一起进入云备份时代
分会场八和Net backup一起进入云备份时代ITband
 
Iaa s管理平台的规划与研发 社区
Iaa s管理平台的规划与研发 社区Iaa s管理平台的规划与研发 社区
Iaa s管理平台的规划与研发 社区benbenhappy
 
七牛云存储详解
七牛云存储详解七牛云存储详解
七牛云存储详解niuer7
 
基于虚拟化平台创建企业私有云
基于虚拟化平台创建企业私有云基于虚拟化平台创建企业私有云
基于虚拟化平台创建企业私有云ITband
 
OpenStack Quantum项目介绍和演示
OpenStack Quantum项目介绍和演示OpenStack Quantum项目介绍和演示
OpenStack Quantum项目介绍和演示OpenCity Community
 
麗明營造 NVIDIA 使用成效分享
麗明營造 NVIDIA 使用成效分享麗明營造 NVIDIA 使用成效分享
麗明營造 NVIDIA 使用成效分享NVIDIA Taiwan
 

What's hot (7)

云的基石:Net app存储平台
云的基石:Net app存储平台云的基石:Net app存储平台
云的基石:Net app存储平台
 
分会场八和Net backup一起进入云备份时代
分会场八和Net backup一起进入云备份时代分会场八和Net backup一起进入云备份时代
分会场八和Net backup一起进入云备份时代
 
Iaa s管理平台的规划与研发 社区
Iaa s管理平台的规划与研发 社区Iaa s管理平台的规划与研发 社区
Iaa s管理平台的规划与研发 社区
 
七牛云存储详解
七牛云存储详解七牛云存储详解
七牛云存储详解
 
基于虚拟化平台创建企业私有云
基于虚拟化平台创建企业私有云基于虚拟化平台创建企业私有云
基于虚拟化平台创建企业私有云
 
OpenStack Quantum项目介绍和演示
OpenStack Quantum项目介绍和演示OpenStack Quantum项目介绍和演示
OpenStack Quantum项目介绍和演示
 
麗明營造 NVIDIA 使用成效分享
麗明營造 NVIDIA 使用成效分享麗明營造 NVIDIA 使用成效分享
麗明營造 NVIDIA 使用成效分享
 

Viewers also liked

Skydive, real-time network analyzer
Skydive, real-time network analyzer Skydive, real-time network analyzer
Skydive, real-time network analyzer Sylvain Afchain
 
3 introduction to kubernetes
3 introduction to kubernetes3 introduction to kubernetes
3 introduction to kubernetesJiang Shang
 
Docker architecture rework case study
Docker  architecture rework case studyDocker  architecture rework case study
Docker architecture rework case studydchaffiol
 
Introduction to containers running dockers using kubernetes - הרצאה לכנס מיק...
Introduction to containers  running dockers using kubernetes - הרצאה לכנס מיק...Introduction to containers  running dockers using kubernetes - הרצאה לכנס מיק...
Introduction to containers running dockers using kubernetes - הרצאה לכנס מיק...Zohar Stolar
 
Prometheus Monitoring
Prometheus MonitoringPrometheus Monitoring
Prometheus Monitoringinovex GmbH
 
Scaling docker with kubernetes
Scaling docker with kubernetesScaling docker with kubernetes
Scaling docker with kubernetesLiran Cohen
 
Compute node HA - current upstream development
Compute node HA - current upstream developmentCompute node HA - current upstream development
Compute node HA - current upstream developmentAdam Spiers
 
Moderne App-Entwicklung am Beispiel waipu.tv
Moderne App-Entwicklung am Beispiel waipu.tvModerne App-Entwicklung am Beispiel waipu.tv
Moderne App-Entwicklung am Beispiel waipu.tvinovex GmbH
 

Viewers also liked (9)

Skydive, real-time network analyzer
Skydive, real-time network analyzer Skydive, real-time network analyzer
Skydive, real-time network analyzer
 
3 introduction to kubernetes
3 introduction to kubernetes3 introduction to kubernetes
3 introduction to kubernetes
 
Docker architecture rework case study
Docker  architecture rework case studyDocker  architecture rework case study
Docker architecture rework case study
 
Introduction to containers running dockers using kubernetes - הרצאה לכנס מיק...
Introduction to containers  running dockers using kubernetes - הרצאה לכנס מיק...Introduction to containers  running dockers using kubernetes - הרצאה לכנס מיק...
Introduction to containers running dockers using kubernetes - הרצאה לכנס מיק...
 
Prometheus Monitoring
Prometheus MonitoringPrometheus Monitoring
Prometheus Monitoring
 
Scaling docker with kubernetes
Scaling docker with kubernetesScaling docker with kubernetes
Scaling docker with kubernetes
 
Hands on docker
Hands on dockerHands on docker
Hands on docker
 
Compute node HA - current upstream development
Compute node HA - current upstream developmentCompute node HA - current upstream development
Compute node HA - current upstream development
 
Moderne App-Entwicklung am Beispiel waipu.tv
Moderne App-Entwicklung am Beispiel waipu.tvModerne App-Entwicklung am Beispiel waipu.tv
Moderne App-Entwicklung am Beispiel waipu.tv
 

Similar to 1 docker风起云ppt v1

Huawei cloud computing
Huawei cloud computingHuawei cloud computing
Huawei cloud computingssuser220dc6
 
美团点评技术沙龙14美团云-Docker平台
美团点评技术沙龙14美团云-Docker平台美团点评技术沙龙14美团云-Docker平台
美团点评技术沙龙14美团云-Docker平台美团点评技术团队
 
Cnut 容器大会 京东
Cnut 容器大会 京东Cnut 容器大会 京东
Cnut 容器大会 京东tommy tommy
 
《云计算入门指南》
《云计算入门指南》《云计算入门指南》
《云计算入门指南》wiit
 
雲端技術的新趨勢
雲端技術的新趨勢雲端技術的新趨勢
雲端技術的新趨勢Ben Huang
 
云网锦绣 SDN实战研讨会
云网锦绣 SDN实战研讨会云网锦绣 SDN实战研讨会
云网锦绣 SDN实战研讨会Hardway Hou
 
Challenges and opportunities computing Kuo-Yi Chen
Challenges and opportunities computing   Kuo-Yi ChenChallenges and opportunities computing   Kuo-Yi Chen
Challenges and opportunities computing Kuo-Yi Chenkuoyichen
 
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016Jeff Chu
 
課程1 1:雲端運算初探
課程1 1:雲端運算初探課程1 1:雲端運算初探
課程1 1:雲端運算初探vaemon
 
容器式基礎架構介紹
容器式基礎架構介紹容器式基礎架構介紹
容器式基礎架構介紹Philip Zheng
 
深入浅出 V cloud director
深入浅出 V cloud director深入浅出 V cloud director
深入浅出 V cloud directorITband
 
03 李实恭-乘云之势以智致远 0611
03 李实恭-乘云之势以智致远 061103 李实恭-乘云之势以智致远 0611
03 李实恭-乘云之势以智致远 0611ikewu83
 
Private Cloud vs Public Cloud Analysis
Private Cloud vs Public Cloud AnalysisPrivate Cloud vs Public Cloud Analysis
Private Cloud vs Public Cloud AnalysisChris Hsiang
 
建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義
建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義
建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義采威國際
 
Web rtc和webstorage技术讲解
Web rtc和webstorage技术讲解Web rtc和webstorage技术讲解
Web rtc和webstorage技术讲解吴 晓兰
 
虚拟化与云计算
虚拟化与云计算虚拟化与云计算
虚拟化与云计算ITband
 
Nodejs & NAE
Nodejs & NAENodejs & NAE
Nodejs & NAEq3boy
 

Similar to 1 docker风起云ppt v1 (20)

Huawei cloud computing
Huawei cloud computingHuawei cloud computing
Huawei cloud computing
 
QIoT ,QuAI
QIoT ,QuAI  QIoT ,QuAI
QIoT ,QuAI
 
美团点评技术沙龙14美团云-Docker平台
美团点评技术沙龙14美团云-Docker平台美团点评技术沙龙14美团云-Docker平台
美团点评技术沙龙14美团云-Docker平台
 
Cnut 容器大会 京东
Cnut 容器大会 京东Cnut 容器大会 京东
Cnut 容器大会 京东
 
《云计算入门指南》
《云计算入门指南》《云计算入门指南》
《云计算入门指南》
 
雲端技術的新趨勢
雲端技術的新趨勢雲端技術的新趨勢
雲端技術的新趨勢
 
云网锦绣 SDN实战研讨会
云网锦绣 SDN实战研讨会云网锦绣 SDN实战研讨会
云网锦绣 SDN实战研讨会
 
從技術找未來
從技術找未來從技術找未來
從技術找未來
 
Challenges and opportunities computing Kuo-Yi Chen
Challenges and opportunities computing   Kuo-Yi ChenChallenges and opportunities computing   Kuo-Yi Chen
Challenges and opportunities computing Kuo-Yi Chen
 
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
Windows 與 Azure 的容器旅程 @ Ignite Mini 2016
 
課程1 1:雲端運算初探
課程1 1:雲端運算初探課程1 1:雲端運算初探
課程1 1:雲端運算初探
 
容器式基礎架構介紹
容器式基礎架構介紹容器式基礎架構介紹
容器式基礎架構介紹
 
深入浅出 V cloud director
深入浅出 V cloud director深入浅出 V cloud director
深入浅出 V cloud director
 
03 李实恭-乘云之势以智致远 0611
03 李实恭-乘云之势以智致远 061103 李实恭-乘云之势以智致远 0611
03 李实恭-乘云之势以智致远 0611
 
Meteor
MeteorMeteor
Meteor
 
Private Cloud vs Public Cloud Analysis
Private Cloud vs Public Cloud AnalysisPrivate Cloud vs Public Cloud Analysis
Private Cloud vs Public Cloud Analysis
 
建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義
建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義
建國科大雲端中心成立記者會~與采威國際產學合作~Cafe 企業雲端伺服器演講講義
 
Web rtc和webstorage技术讲解
Web rtc和webstorage技术讲解Web rtc和webstorage技术讲解
Web rtc和webstorage技术讲解
 
虚拟化与云计算
虚拟化与云计算虚拟化与云计算
虚拟化与云计算
 
Nodejs & NAE
Nodejs & NAENodejs & NAE
Nodejs & NAE
 

1 docker风起云ppt v1