摘要信息高速发展的今天,人们为了更加充分地利用计算机资源,研发了虚拟化技术。通过虚拟化技术可以将各种计算资源,如网络带宽、内存、硬盘空间等资源予以抽象,把计算资源从硬件资源池中抽像出来,通过分配虚拟机的方式整合计算资源。通过这种方式,服务提供商的计算资源便可以按需分配给用户使用。45300
本设计通过安装OpenStack相关服务组件,搭建本地私有云平台,以双机主备方案实现平台高可用性,使用DRBD+Corosync+Pacemaker实现数据高可用性。为实现服务高可用性,本设计采用Corosync+Pacemaker技术管理HTTP等非数据持久化服务,设置虚拟IP地址,允许外界通过虚拟IP地址访问服务结点,使用服务功能。此外,本设计中用Python语言编写脚本实现了DRBD脑裂问题的自动修复和服务自动重启、数据定时差分备份等功能,以完善私有云平台的功能,构建一个本地高可用私有云。
平台搭建完成后,通过平台服务组件提供的命令按需创建虚拟机,提供SSH服务满足用户对虚拟机地安全远程登录,实现按需分配计算资源给用户的目标。
[毕业论文关键词]:OpenStack;高可用性;Python;私有云
Abstract Nowadays, with the rapid development of information, in order to make full use of computing resources, the human have researched and developed the virtualization technology.By the way of virtualization technology, The computing resource such as network bandwidth, memory, hard disk resources and so on are abstracted, it’s said that the computing resources are out of hardware resource pool, through the way of allocation of virtual machine to integrate of computing resources. In this way, the service provider's computing resources can be allocated on demand to users.
This design installs the OpenStack service component, sets up a local private cloud platform, and master standby scheme of platform to achieve high availability, and also uses DRBD+Corosync+Pacemaker to achieve data’s high availability. In order to realize the service high availability, this design uses the Corosync+Pacemaker technology to manage HTTP ,which non persistent data service, and set up virtual IP address, allowing the outside world through the virtual IP address to access the service node and use the service’s function. In addition, this design uses Python Language to write the script, as to realize the repair of the DRBD split-brain problems automatically, the service restart automatically,and data timing difference backup function and so on.to complete the function of Private Cloud platform, perfecting a local high availability of Private Clouds.
After the platform is completed, it can create a virtual machine on-demand through the platform service component’s command. Its SSH services can meet the demands of the user's virtual machine remote login in security, achieve the goal of alloting the computing resources to the user's on-demand.
[Key words]: OpenStack,;high-avaliablity; Python;Private Clouds
目录
摘 要 1
Abstract 2
目录 3
1. 绪论 - 1 -
1.1 研究背景 - 1 -
1.2 主要研究工作 - 1 -
2. 相关技术 - 3 -
2.1 概述 - 3 -
2.2 OpenStack云平台 - 3 -
2.3 LVM(逻辑卷管理) - 4 -
2.4 高可用性软件 - 5 -
2.5 SSH(Secure Shell)服务 - 7 -
2.6 RabbitMQ - 8 -
2.7 Python脚本语言 - 8 -
2.8 MySQL数据库 - 8 - OpenStack的云服务高可用性实践:http://www.751com.cn/jisuanji/lunwen_46812.html