一 关于Cinder 1 在F版本之前,没有Cinder,对应的组件未nova-volume 2 提供了Rest API 3 Cinder的目标 减少Nova的复杂性,降低Nova负载 支持多种后端存储 增加和其他组件之间的交互 4 参与Cinder项目的公司与组织 Rackspace HP Ceph NetApp Citrix
二 Openstack的Cinder和Swift的比较
三 Cinder的位置
四 Cinder的架构
五 Cinder各组件的功能 1 API service 负责接受和处理Rest请求,并将请求放入RabbitMQ/Qpid队列。 2 Scheduler service 处理任务队列的任务,并根据预定策略选择合适的Volume Service节点来执行任务。 3 Volume service 该服务运行在存储节点上,管理存储空间。
六 Cinder API列表
七 Volume Types Admins can create tiers of storage Specify requirments from storage User can specify a tier when creating a volume
对应下图的类型
八Cinder Chooses back-end to place a new volume on Confirurable plugins for scheduler Simple Chance Filter Most common is the filter scheduler Has plug-able filters and weights
九 Filter Scheduler:Examle Flow Drivers continuously report capabilities and state Scheduler starts with list of all back-ends Filters out unsuitable back-ends ? Insufficient free space ? Insufficient capabilities Sorts according to weights (e.g., available space) Returns best candidate
十 Cinder Volume Manager contains generic code ? e.g., High-level flow, DB & quota updates Drivers contain back-end specific code Linux LVM Storage controllers from various vendors Distributed file systems Admin can run multiple cinder-volume instances ? Each able to manage multiple back-ends Each back-end is generally configured to interact with one storage pool Multi-threading 美国高防vps
十一 Exmple Flow :Attach Volume Nova calls Cinder via its API, passing connection information ? e.g., host name, iSCSI initiator name, FC WWPNs cinder-api passes message to cinder-volume Manager does initial error checking and calls volume driver Volume driver does any necessary preparation to allow the connection ? e.g., give the nova host permissions to access the volume Volume driver returns connection information, which is passed to Nova ? e.g., iSCSI iqn and portal, FC WWPN Nova creates the connection to the storage using the returned information Nova passes the volume device/file to the hypervisor
十二 Cinder存储解决方案 1 使用本地存储,即Cinder LFS 2 使用动态存储系统,即Cinder ZFS 这种解决方案提供了多种存储特性,如: Cache Copy on Write snapshot & Clone Changeble block size 3 使用分布式存储系统,即Cinder DFS 常用的分布式存储系统有: Ceph Sheepdog Glusterfs
十三 常用的Backend Storage产品 Netapp EMC Huawei Ceph ? ? 基于Linux ? ? 可扩展 ? ? 高负债 ? ? 高可靠性 Sheepdog ? ? 专为QEMU/KVM设计得分布式存储系统 ? ? 可扩展
十四 解决方案的选择 LFS,ZFS还是DFS 根据云的规模考虑存储方案 根据预算考虑存储方案 公有云的特征 私有云的特征
十五 私有云块存储需求 集中存储 高性能、高可靠 在预算范围内实现性能最大化,同时保障数据可靠 无可挑剔的用户体验
十六 公有云存储需求 对存储进行分级 异构的存储后端 高容量,高可用,成本可控 QoS保障 良好的存储网络设计
17727065