关闭

私有云落地解决方案之openstack高可用(pike版本)-集群参数

标签: openstackcrm解决方案私有云集群
505人阅读 评论(0) 收藏 举报
分类:

作者:【吴业亮】

博客:http://blog.csdn.net/wylfengyujiancheng

一、添加服务

将消息队列加入集群监控中

crm configure primitive rabbitmq-server systemd:rabbitmq-server \
params environment_file="/etc/profile.d/rabbitmq-server.sh" \
op start interval=0s timeout=600 \
op stop interval=0s timeout=120 \
op monitor interval=10 timeout=20 \
meta priority=100

将消息队列克隆加入集群监控中

crm configure clone rabbitmq-server-clone rabbitmq-server meta target-role=Started

注意:
在三个控制节点上创建/etc/profile.d/rabbitmq-server.sh并写入

export RABBITMQ_USE_LONGNAME=true

将haproxy加入集群监控中

crm configure primitive haproxy systemd:haproxy \
op start interval=0s \
op start interval=0s timeout=20s \
op stop interval=0s timeout=20s \
op monitor interval=20s  timeout=30s \
meta priority=100 target-role=Started
colocation haproxy-with-vip inf: vip:Started haproxy:Started

将httpd加入集群监控中

crm configure primitive httpd systemd:httpd \
op start interval=0s timeout=40s \
op stop interval=0s timeout=60s \
op monitor interval=30s timeout=30s

将memcached加入集群监控中

crm configure primitive memcached systemd:memcached \
params \
op monitor interval=30s timeout=30s
crm configure clone openstack-dashboard-clone httpd meta
crm configure clone openstack-memcached-clone memcached

将openstack-glance-registry加入集群监控中

crm configure primitive openstack-glance-registry systemd:openstack-glance-registry \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-glance-registry克隆加入集群监控中

crm configure clone openstack-glance-registry-clone openstack-glance-registry  metatarget-role=Started

将openstack-glance-api加入集群监控中

crm configure primitive openstack-glance-api systemd:openstack-glance-api \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-glance-api克隆加入集群监控中

crm configure clone openstack-glance-api-clone openstack-glance-api  meta target-role=Started

将openstack-nova-cert加入集群监控中

crm configure primitive openstack-nova-cert systemd:openstack-nova-cert \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-nova-cert克隆加入集群监控中

crm configure clone openstack-nova-cert-clone openstack-nova-cert  meta target-role=Started

将openstack-nova-api加入集群监控中

crm configure primitive openstack-nova-api systemd:openstack-nova-api \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-nova-api克隆加入集群监控中

crm configure clone openstack-nova-api-clone openstack-nova-api  meta target-role=Started

将openstack-nova-conductor加入集群监控中

crm configure primitive openstack-nova-conductor systemd:openstack-nova-conductor   \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-nova-conductor克隆加入集群监控中

crm configure clone openstack-nova-conductor-clone openstack-nova-conductor metatarget-role=Started

将openstack-nova-scheduler加入集群监控中

crm configure primitive openstack-nova-scheduler systemd:openstack-nova-scheduler \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-nova-scheduler克隆加入集群监控中

crm configure clone openstack-nova-scheduler-clone openstack-nova-scheduler  metatarget-role=Started

将openstack-nova-novncproxy加入集群监控中

crm configure primitive openstack-nova-novncproxy systemd:openstack-nova-、
novncproxy \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-nova-novncproxy克隆加入集群监控中

crm configure clone openstack-nova-novncproxy-clone openstack-nova-novncproxy    metatarget-role=Started

将openstack-nova-consoleauth加入集群监控中

crm configure primitive openstack-nova-consoleauth systemd:openstack-nova-consoleauth \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s \
meta target-role=Started

将openstack-nova-consoleauth克隆加入集群监控中

crm configure clone openstack-nova-consoleauth-clone openstack-nova-consoleauth   metatarget-role=Started

将openstack-cinder-api加入集群监控中

crm configure primitive openstack-cinder-api systemd:openstack-cinder-api \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-cinder-api克隆加入集群监控中

crm configure clone openstack-cinder-api-clone openstack-cinder-api meta target-role=Started

将openstack-cinder-scheduler加入集群监控中

crm configure primitive openstack-cinder-scheduler systemd:openstack-cinder-scheduler \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将openstack-cinder-scheduler克隆加入集群监控中

crm configure clone openstack-cinder-scheduler-clone openstack-cinder-scheduler   metatarget-role=Started

将neutron-server 加入集群监控中

crm configure primitive neutron-server systemd:neutron-server \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将neutron-server克隆资源加入集群监控中

crm configure clone neutron-server-clone neutron-server  meta target-role=Started

将neutron-openvswitch-agent 加入集群监控中

crm configure primitive neutron-openvswitch-agent systemd:neutron-openvswitch-agent \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将neutron-openvswitch-agent克隆 加入集群监控中

crm configure clone neutron-openvswitch-agent-clone neutron-openvswitch-agent metatarget-role=Started

将neutron-dhcp-agent 加入集群监控中

crm configure primitive neutron-dhcp-agent systemd:neutron-dhcp-agent \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将neutron-dhcp-agent克隆加入集群监控中

crm configure clone neutron-dhcp-agent-clone neutron-dhcp-agent  meta target-role=Started

将neutron-metadata-agent 加入集群监控中

crm configure primitive neutron-metadata-agent systemd:neutron-metadata-agent  \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将neutron-metadata-agent克隆加入集群监控中

crm configure clone neutron-metadata-agent-clone neutron-metadata-agent metatarget-role=Started

将systemd:neutron-l3-agent加入集群监控中

crm configure primitive neutron-l3-agent systemd:neutron-l3-agent \
op start interval=0s timeout=45s \
op stop interval=0s timeout=45s \
op monitor interval=30s timeout=30s

将systemd:neutron-l3-agent克隆加入集群监控中

crm configure clone neutron-l3-agent-clone neutron-l3-agent meta target-role=Started

二、定义服务启动顺序

定义neutron-metadata-agent-clone和neutron-dhcp-agent-clone:start启动

pcs constraint order order_neutron-metadata-agent_neutron-dhcp-agent \
neutron-metadata-agent-clone:start neutron-dhcp-agent-clone:start    \
symmetrical=true

定义openstack-memcached-clone和openstack-dashboard-clone启动

pcs constraint order order_memcached_httpd openstack-memcached-clone:start\
openstack-dashboard-clone:start \
symmetrical=true

定义vip、haproxy和openstack-neutron-server-clone启动

pcs constraint order order_vip_haproxy vip:start haproxy:start \
pcs constraint order order_vip_neutron-server vip:start \
openstack-neutron-server-clone:start

定义neutron-openvswitch-agent-clone和neutron-metadata-agent-clone启动

pcs constraint order order_neutron-openvswitch-agent_neutron-metadata-agent \
neutron-openvswitch-agent-clone:start  neutron-metadata-agent-clone:start \
symmetrical=true

定义openstack-memcached-clone和openstack-nova-consoleauth-clone启动

pcs constraint order order_memcached_nova-consoleauth \
openstack-memcached-clone:start openstack-nova-consoleauth-clone:start\
symmetrical=true

定义neutron-metadata-agent-clone和neutron-l3-agent-clone启动

pcs constraint order order_neutron-metadata-agent_neutron-l3-agent \
neutron-metadata-agent-clone:start neutron-l3-agent-clone:start \
symmetrical=true
0
0
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

mitaka版本openstack虚拟化云桌面的实现(spice)

作者:【吴业亮】云计算开发工程师 博客:http://blog.csdn.net/wylfengyujiancheng 什么是vdi VDI,英文全称Virtual Desktop Infrast...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2016-07-05 23:13
  • 7273

hadoop 集群HA高可用搭建以及问题解决方案

hadoop 集群HA高可用搭建目录大纲1. hadoop HA原理 2. hadoop HA特点 3. Zookeeper 配置 4. 安装Hadoop集群 5. Hadoop HA配置 搭建环境 ...
  • qq_26840065
  • qq_26840065
  • 2017-02-20 19:44
  • 5237

基于openstack构建私有云实践

主要分享的是云计算、openstack的使用、私有云平台建设、云服务器云硬盘的构建和使用。从基本概念入手到私有云建设,信息量非常大。对于openstack的安装部署都是从官方文档中一步步的介绍,内容非...
  • sdksdk0
  • sdksdk0
  • 2017-02-02 13:35
  • 2743

私有云落地解决方案之openstack高可用(pike版本)-架构

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng本架构借鉴redhat架构1、API 服务:包括 *-api, neutron-server,gla...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:15
  • 358

私有云落地解决方案之openstack高可用(pike版本)-neutron【ovs】

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng创建用户# openstack user create --domain default --pro...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:46
  • 286

私有云落地解决方案之openstack高可用(pike版本)-数据库

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng1、安装rpm包# yum install -y MariaDB-server MariaDB-c...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:26
  • 261

私有云落地解决方案之openstack高可用(pike版本)-添加计算节点

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujianchengNova 安装软件包# yum install openstack-nova-compute ...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-28 09:34
  • 232

私有云落地解决方案之openstack高可用(pike版本)-nova

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng控制节点安装 创建数据库ova_api, nova, and nova_cell0 databas...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:44
  • 295

私有云落地解决方案之openstack高可用(pike版本)-添加存储节点

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng一、前提条件 各个节点的时间同步二、基础配置 1、安装软件包# yum -y install ...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-28 09:40
  • 269

私有云落地解决方案之openstack高可用(pike版本)-haproxy

1、三个节点安装haproxy,并设置开机自动启动# yum install -y haproxy # systemctl enable haproxy2、跟rsyslog结合配置haproxy日...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:34
  • 256
    个人资料
    • 访问:378019次
    • 积分:4200
    • 等级:
    • 排名:第8416名
    • 原创:141篇
    • 转载:0篇
    • 译文:0篇
    • 评论:65条
    文章分类
    最新评论