Patterns of Expertise in Cloud 云计算中的专家模式 QCon 2014 北京
Transcript of Patterns of Expertise in Cloud 云计算中的专家模式 QCon 2014 北京
日程
• 机遇与挑战
• 云专家模式
– 概念与技术
– DevOps中应用
• 与开源社区的融合与技术发展
– TOSCA
– Heat
提升IT效率加速新应用上线,
支持大数据分析、移动互联等
简化云应用平台和基础架构
by 2015
90% plan to implement cloud
68% of IT
* IDC; Converged Systems: End-User Survey Results presentation; September 2012; Doc #236966
operating costs in 2013 will be for management and administration
29%
1996 2013
68%
* IBM GBS 2011 IBV Study, “The power of cloud: driving business model innovation
From a commissioned study conducted by Forrester Consulting on behalf of IBM
deploy late
34% of new IT Projects
Server mgmt & admin costs
New server spending
Power & cooling costs
云计算为业务创新提供了可能,同时创新的需求也推动了云技术的发展
4
业务需求…
IT实现…
监控生命周期管理
明天 …
监控生命周期管理
6
Patterns of Expertise: 将应用部署和运维的最佳实践和专业技能转化为可重复部署的资产
监控生命周期管理
什么是模式?• 预定义的应用或云服务架构
•预配置、预优化、预集成
• 可重复部署、实现应用全生命周期管理
• 自动化复杂任务
• 支持不同云环境部署
价值:• 敏捷 – 快速交付• 高效 – 降低成本提高系统利用率• 简化 – 降低技能要求,减少运维成本• 管控 – 降低风险减少人为错误
7
应用部署 应用运维
应用监控、安全、IT治理
“Patterns are the magic here. Customers are capturing expertise in patterns. It’s a new pride of ownership.”
Richard Doherty, Envisioneering Group
基础架构服务(虚拟机, 网络, 存储)
软件定义的基础架构
中间件服务(应用服务器、数据库、流程、消息队列等)
硬件基础架构
应用服务SLA 策略
ServiceAPIs
Presentation Tier
Application Tier
Data Tier
构建完整的应用执行环境所需要服务,以及相应的服务级别策略。
不同级别的服务,与组装
性能安全高可用
专家模式定义了不同层次的服务组装
利用模式来定义应用负载
© 2012 IBM Corporation
内存网格提供缓存服务和会话复制
使用模式来简化应用架构部署可伸缩Web应用架构为例
应用服务器集群
关系数据库 企业核心服务
弹性负载均衡与路由服务
用户
Virtual Application Pattern
Virtual Application Pattern
云上运行的虚拟机云上运行的虚拟机
拓扑逻辑
WASWAS
DB2DB2
LDAPLDAP
物理资源视图
LDAPLDAP
DB2DB2
WASWAS
模式
用户专注于应用需求和SLA,系统自动生成拓扑
与IaaS层协作优化部署,满足应用所需资源要求、高可用等需求。
ProxyProxy
ProxyProxy
CacheCache
CacheCache
在云环境中实现优化部署
WASWASWASWASProxyProxy
CacheCache
WASWAS
WASWAS
ProxyProxy
水平弹性伸缩示例
9.7Standby
9.7Active
7.0
7.0
9.7Standby
9.7Active
7.0
7.0
感知应用性能下降
自动从云中分配新虚机、创建WAS节点来分担负载
注:1. 当负载下降系统会自动回收资源2. 部分应用负载也可以同时支持垂直资源扩展
升级维护流程如何实现应用的快速部署和更新?如何保证更新过程中业务的持续运行?
• 最佳实践– 根据服务之间的依赖关系和部署顺序,自动规划更新流程
– 自动化和优化更新流程• 滚动升级 rolling update
• 允许服务提供维护脚本来定制更新行为: 比如更新应用之前之后修改应用路由表
– 利用云的能力• 快照
• 更新已有虚拟机或创建全新虚拟机
更新中…
1
专家模式实例:商业智能分析
< 30 minutes0 Errors
2 to 3 weeks250+ opportunities for errors
专家模式与DevOps相结合确保一致和准确的应用部署和上线流程
产出相应的流程,比如开发构建、上线等
不同的部署定义和服务质量策略
Environment
Application Configuration
不同的目标环境
利用专家模式实现应用的持续交付
基于专家模式的部署确保了一致性,并降低成本。
专家模式部署可以支持公有云、私有云和混合云的解决方案
Deploy Softwareapplication
MonitoringLifecycle
Management
PureApplication Service on SoftLayer
Private Clouds
Public Cloud
Expert Integrated Systems
Hybrid Cloud
IBM SmartCloud Orchestration
Bring your own hardware
Workload definitionWorkload definition OptimizationOptimizationOrchestrationOrchestration
SoftwareSoftwareDefinedDefined
EnvironmentEnvironment
Software Defined ComputeSoftware Defined Compute Software Defined StorageSoftware Defined Storage Software Defined NetworkingSoftware Defined Networking
资源抽象, 优化与安全
利用开放标准来定义应用模式
Topology and Orchestration Specification for Cloud Applications
Private Clouds Public Cloud
Software Defined EnvironmentsSoftware Defined Environments
PaaS Layer
Infrastructure Orchestration IaaS Layer
Application Orchestration (New in Icehouse)
Heat Orchestration Template (HOT) /CloudFormation Templates
Composition LayerComposition Layer
使用Heat在OpenStack上实现服务编排
Heat EngineHOT/HOT
• Supports basic, “built-in” Linux apps. orstatic VMs
Nova
Quantum Cinder
• IaaS Stacks using OpenStack APIs
OS image
“app” or VM
VMMySQL
• IaaS “stack-like” patterns
• Assumes stack-based relationships
WordPress or …
Hardware
“Backplane” Drivers HW / Provider Specific
Business Application Layer
IBM Confidential
• Application stack using software configuration