cloudstack vs openstack · cloudstack openstack 通用 hypervisor xenserver,xcp,ovm,...
TRANSCRIPT
Copyright 2010 TCloud Computing Inc.
CloudStack vs OpenStack Fred Liu
Copyright 2010 TCloud Computing Inc.
Status
Survey done by Zenoss 2012 Q3
Copyright 2010 TCloud Computing Inc.
What to compare?
Survey done by Zenoss 2012 Q3
Copyright 2010 TCloud Computing Inc.
项目历史与运营团队
• CloudStack
– 2008年由Cloud.com开发,有商业和开源两个版本。开源版本采用GPL v2
license
– 2011年7月Cloud.com被Citrix(思杰)收购,CloudStack全部开源
– 2012年4月Citrix将CloudStack贡献给Apache基金会,改为Apache 2.0 license
• OpenStack
– Rackspace和NASA合作研发,2010年10月开源,采用Apache 2.0 license
– 2011年Rackspace宣布成立OpenStack基金会,将OpenStack贡献给该基金会
Copyright 2010 TCloud Computing Inc.
Apache 2.0
• Apache Licence是著名的非盈利开源组织Apache采用的协议。该协议和BSD类似,
同样鼓励代码共享和尊重原作者的著作权,同样允许代码修改,再发布(作为开源或
商业软件)。需要满足的条件也和BSD类似:
– 需要给代码的用户一份Apache Licence
– 如果你修改了代码,需要再被修改的文件中说明。
– 在延伸的代码中(修改和有源代码衍生的代码中)需要带有原来代码中的协议,商标,专利声
明和其他原来作者规定需要包含的说明。
– 如果再发布的产品中包含一个Notice文件,则在Notice文件中需要带有Apache Licence。你
可以在Notice中增加自己的许可,但不可以表现为对Apache Licence构成更改。
• Apache Licence也是对商业应用友好的许可。使用者也可以在需要的时候修改代码来
满足需要并作为开源或商业产品发布/销售。
Copyright 2010 TCloud Computing Inc.
CloudStack Release History
• In July 2010, Cloud.com became one of the founding members of
OpenStack
• In October 2010, Cloud.com announced a partnership with Microsoft to
develop the code to provide integration and support of Windows Server 2008
R2 Hyper-V to the OpenStack project.
• CloudStack Release
• 2.0 June 17, 2010
• 2.2 Feb, 2011
• 3.0 March, 2012
Copyright 2010 TCloud Computing Inc.
OpenStack Release History
Copyright 2010 TCloud Computing Inc.
社区发展
Copyright 2010 TCloud Computing Inc.
社区发展
Copyright 2010 TCloud Computing Inc.
系统比较 CloudStack OpenStack
通用
Hypervisor XenServer,XCP,OVM, vMWare,KVM,Bare Metal XenServer,OpenXen,OVM,vMWare,KVM,QEMU
,LXC(Linux Container)
数据库 MySQL PostgreSQL、MySQL、SQLite
组件
Management Server
Usage Server
Host Agent (KVM/OVM only)
System VM
VirtualRouter
Nova
Glance
Keystone
Horizon
Swift
Qutumn
Cinder
编码 Java Python,各模块独立
虚拟机
动态资源调配 动态迁移 无,但可以通过Nova-Scheduler实现
服务方案 有(Compute Offering) 有(Flavors)
主机选择策略 5种分配策略 3种分配策略
虚拟机模板 支持 支持
VM Console 支持 支持
备份与恢复 硬盘快照 实例快照(硬盘+内存)
卷快照(硬盘)
网络
网络形式 ISOLATION(VLAN)
SHARE
VLAN
FLAT,FLATDHCP
Load Balance 内部软件负载均衡(VR)
外部硬件负载均衡 内部软件负载均衡(Nova-Network)
外部硬件负载均衡
VLAN 有 有
存储
存储分级 主存储
二级存储 无
VM镜像使用设备 NAS,iSCSI, FC-SAN,Local Disk
Ceph(KVM)
Swift
Local file system
S3
Http(read only)
模板/快照使用设备 NAS, 后端可接Swift
部署运维
用户界面 功能完善 简单
告警机制 有(灵活可变的告警阈值) 无,依赖第三方软件
版本问题 版本发布较稳定,不存在版本兼容性问题 版本发布快,存在各版本兼容性问题
最小化部署 一个管理节点,一个计算节点 All in One(Nova,KeyStone,Glance组件必选)
高可用 Management Server Cluster
DB replication 不同组件有不同的方式
BSS Usage Server,定期收集资源使用情况 无,依赖第三方实现
Copyright 2010 TCloud Computing Inc.
用户界面 CloudStack
Copyright 2010 TCloud Computing Inc.
用户界面 OpenStack
Copyright 2010 TCloud Computing Inc.
权限管理
• CloudStack
由管理节点统一管理,分为Domain/SubDomain/Account/User,树状结构
Account属于某个Domain或SubDomain,User为Account的别名
不同Account的资源相互隔离,同一Account的不同用户共享同样的资源。Project中
可包含多个Account的资源
• OpenStack
Keystone: Tenant(Project), User, Role
每次通信之前,都会进行keystone验证
Copyright 2010 TCloud Computing Inc.
系统架构 CloudStack
Pros
• Agile development for existing developers
• Scales well horizontally
Cons
• Monolithic
• Difficult to educate new and third-party developers
• Easy to introduce bugs
14
Xen
Server
Resource
Agent Manager
API Layer EC2 CloudStac
k
Vir
tua
l M
ach
ine
Ma
na
ge
r
KVM
Resourc
e
SRX
Resource
F5
Resourc
e
NetScal
er
Resourc
e
Other
Resourc
es
Access Control
Sto
rag
e M
an
ag
er
Netw
ork
Mana
ger
Co
nso
le P
roxy M
an
ag
er
Sn
ap
sh
ot
Ma
na
ge
r
Te
mp
late
Ma
na
ge
r
Asyn
c J
ob
Ma
na
ge
r
…
Copyright 2010 TCloud Computing Inc.
系统架构 CloudStack(New Architecture)
• Scales horizontally to different pressure points
• Automatically scales service VMs in zones to facilitate most efficient data path transfers
• Fault isolation between API servers and Execution servers and resources within zones
Copyright 2010 TCloud Computing Inc.
系统架构 OpenStack
16
Copyright 2010 TCloud Computing Inc.
系统架构 OpenStack
Copyright 2010 TCloud Computing Inc.
部署方式 CloudStack
Copyright 2010 TCloud Computing Inc.
部署方式 OpenStack
Copyright 2010 TCloud Computing Inc.
规模部署
• OpenStack
• 使用RabbitMQ来做消息通信,有人提出在100个节点的规模下,
RabbitMQ有出现问题,Joe表示SwiftStack使用zeroMQ代替了
RabbitMQ;
• 如果要大规模部署,可以将每个zone作为独立的单元进行部署,各自
独立运作,在上层构建另外一套调度系统
• CloudStack
• 10k resources managed per management server node
• Scales out horizontally (must disable stats collector)
• Real production deployment of tens of thousands of resources
Copyright 2010 TCloud Computing Inc.
主机选择策略 CloudStack/OpenStack
Copyright 2010 TCloud Computing Inc.
网络架构 CloudStack
Copyright 2010 TCloud Computing Inc.
网络架构 CloudStack - Multi-tier network
Public Network/Internet
Private IP 10.1.1.112
DHCP, DNS User-data
Public IP 65.37.141.112
10.1.1.1
Web VM
1
10.1.1.3
Web VM
2
10.1.1.4
Web VM
3
10.1.1.5
Web VM
4
LB
Private IP 10.1.1.111
Public IP 65.37.141.111
Firewall
CS
Virtual
Router
CS
Virtual
Router
Virtual Network 10.1.1.0/24 VLAN 100
Virtual Network 10.1.2.0/24 VLAN 1001
10.1.2.21
10.1.2.18
10.1.2.38
10.1.2.39
10.1.2.31
App VM
1 10.1.3.21
Virtual Network 10.1.3.0/24 VLAN 141
10.1.2.24
App VM
2 10.1.3.45
10.1.3.24
DB VM
1
CS
Virtual
Router
DHCP, DNS, User-data
DHCP, DNS User-data, Source-NAT, VPN
Public IP 65.37.141.115
Copyright 2010 TCloud Computing Inc.
网络架构 CloudStack - Multi-tier unified [vision]
10.1.1.1
Web VM
1
10.1.1.3
Web VM
2
10.1.1.4
Web VM
3
10.1.1.5
Web VM
4
Virtual Network 10.1.1.0/24 VLAN 100
Virtual Network 10.1.2.0/24 VLAN 1001
10.1.2.31
App VM
1
Virtual Network 10.1.3.0/24 VLAN 141
10.1.2.24
App VM
2
10.1.3.24
DB VM 1
CS
Virtual Router /
Other
Customer
Premises
IPSec or SSL site-to-site VPN
Internet
Monitoring VLAN
Virtual Router Services
• IPAM
• DNS
• LB [intra]
• S-2-S VPN
• Static Routes
• ACLs
• NAT, PF
• FW [ingress & egress]
• BGP
Load Balancer
Copyright 2010 TCloud Computing Inc.
网络架构 OpenStack – Nova-Network
Copyright 2010 TCloud Computing Inc.
网络架构 OpenStack - Quantum
Quantum plugin
Open vSwitch
- Builds isolated networks with OVS and L2-in-
L3 tunnel
Cisco UCS
- Isolation based on VLAN and net-profiles
applied to Cisco UCS converged network
adapters
Linux Bridge
- Build isolated networks with VLAN interfaces
and linux bridges
- Works with every Linux Distro
NTT-Data Ryu
- Acts as a proxy for the NTT Ryu platform
Nicira NVP
- Acts as a proxy for the Nicira NVP platform
Copyright 2010 TCloud Computing Inc.
存储 CloudStack
• 分级架构
– 二级存储 NAS, 后端可以Pass-through 给Swift
– 主存储 现有的存储设备, NAS,Iscsi, FC-SAN,Local Disk,
Ceph (CloudStack 4.0)
– * Qemu on the Hypervisor has to be compiled with RBD enabled
– * The libvirt version on the Hypervisor has to be at least 0.10 with RBD enabled
– S3 Like
• 集成Caringo,提供S3功能
Copyright 2010 TCloud Computing Inc.
存储 OpenStack -- Swift (Object storage)
Copyright 2010 TCloud Computing Inc.
存储 OpenStack -- Cinder (Block storage)
Copyright 2010 TCloud Computing Inc.
高可用性 CloudStack
Copyright 2010 TCloud Computing Inc.
高可用性 OpenStack
组件 依赖组件 模式
Nova-api 无 每个节点可运行自己的nova-api,负载均衡
Nova-scheduler 无 每个节点可运行自己的nova-scheduler
Nova-volume 暂无HA方案
Nova-network 无 2种方案
KeyStone Pacemaker,Corosync,
OCF Agent
主备、N+1 、N-N 等多种模式。
Glance Pacemaker,Corosync,
OCF Agent
主备、N+1 、N-N 等多种模式。
Swift 本身就是分布式存储,不需要自己添加HA
无中心节点,高性能,无瓶颈
RabbitMQ 需要持久化到硬盘 主被
Copyright 2010 TCloud Computing Inc.
Why we choose CloudStack?
• 产品成熟度
– CloudStack 全球商用案例超过100个,
– OpenStack不到10个(不包含仅用OpenStack Swift存储模块)
• 社区管理
– CloudStack是Apache基金会项目,作为全球最大的开源项目管理基金会,
我们更相信他们对开源项目的管理能力
– OpenStack是由OpenStack基金会董事会管理
• 开发语言
– CloudStack采用Java,C
– OpenStack采用Python
Copyright 2010 TCloud Computing Inc.
Contact us
www.tcloudcomputing.com.cn