一 高可用
最小停机时间
最小的数据丢失
二 可用性级别
三 收益与投入成本
四 如何实现
消除单点(SPOFs)
  • 网络冗余,比如:交换机、路由器
  • 应用服务冗余和自动服务迁移
  • 存储冗余
  • 基础设施冗余,比如:电源
五 高可用概念
1 无状态服务(stateless services)
  • 请求之间没有依赖
  • 比如:Nova API,Nova Scheduler,etc.
2 有状态服务(Stateful services)
  • 一次操作需要多个关联请求完成
  • 比如:MySQL,Qpid,etc.
3 Active/Passive
  • Redundant instances of stateless services are load balanced
  • For Stateful services a replacement resource can be brought online.
这种方式是一个节点是主,一个节点是备,主节点挂掉后,备节点起来工作。
4 Active/Active
  • Redundant instances of stateless services are load balanced
  • Stateful services are managed in such a way that services are redundant, and that all instances have an identical state.
  • Updates to one instance of a database would also update all other instances.
这种方式是所有节点都是活动的,没有主备之分,但每个节点的数据库状态必须保持一致,因此开销比较大。
5 Failover
  • Migration of a service from the “primary” to the “secondary”
6 Failback
  • Migration of service back to the “primary”
六 HA for Openstack
1 Compute HA
  • Instance HA
2 Controller HA
  • MySQL
  • Qpid
  • OpenStack APIs (keystone, nova-api etc.)
  • Nova, Neutron, Cinder, Swift, and so on
七 Server Evacuation
Without Shared Storage
  • The instance will be booted from a new disk, but will preserve the configuration, e.g. id, name, uid, ip...etc.
With Shared Storage
  • The instance will be booted from same disk and data will be preserved
八 Instance Migration
九 Application implement
十 HA on Openstack
十一 MySQL HA
  • 非常重要的一个组成
  • 每个Openstack的组件都用到了数据库
  • 需要使用数据库记录相当多的信息
1 Master/Master Replication
2 Pacemaker,Corosync and DRBD
Pacemaker
  • high availability and load balancing stack for the Linux platform.
  • Interacts with applications through Resource Agents (RA)
Corosync
  • Totem single-ring ordering and membership protocol
  • UDP and InfiniBand based messaging, quorum, and cluster membership to Pacemaker.
DRBD (Distributed Replication Block Device)
  • Synchronizes Data at the block device
  • Uses a journaling system (such as ext3 or ext4)
3 Galera
Synchronous multi-master cluster technology for MySQL/InnoDB
  • MySQL patched for wsrep (Write Set REPlication)
  • Active/active multi-master topology
  • Read and write to any cluster node
  • True parallel replication, in row level
  • No slave lag or integrity issues
4 比较
十二 Qpid HA
  • Pacemaker managed without clustering
  • Clustered without pacemaker
  • Pacemaker managed with clustering
十三 Qpid和Corosync的工作模式
1 Client连接一个Broker
2 Client failover
十四 Openstack APIs HA
  • keystone
  • glance-api
  • nova-api
  • cinder-api
  • neutron-api
  • Swift-proxy
一般都是用HA with keepalived and HAProxy
十五 Keepalived,HAProxy and VRRP
HAProxy
  • Load Balancing and Proxying for HTTP and TCP Applications
  • Works over multiple connections
  • Used to load balance API services
VRRP (Virtual Router Redundancy Protocol)
  • Eliminates SPOF in a static default routed environment
Keepalived
  • Based on Linux Virtual Server (IPVS) kernel module to provide layer 4 Load Balancing
  • Implements a set of checkers to check service status and to maintain health
  • Leverage the VRRP Protocol to remap VIPS in event of failure
十六 Openstack multi-host service
  • Nova-schedule
  • Nova-compute
  • Cinder-schedule
十七 keystone的HA
1 keystone是整个openstack的关键。
2 负责用户管理和权限控制。
3 Openstack每个组件都和keystone有交互。
4 单个keystone压力比较大。
5 单点
6 不同部署
十八 Glance的HA
1 Glance负责整个Openstack的image管理,上传和下载操作多,对后端压力大。
2 Image文件丢失与损坏
3 Glance API接受所有的外部请求,压力比较大
4 Glance的HA部署
十九 Swift,cinder以及Neutron的HA
1 Swift本身就自带HA
2 只需要对多个Proxy-Server做负责均衡即可。
3 Neutron HA功能暂时还不是特别完善。
4 Swift的HA部署
二十 Nova的HA
1 Nova支持MutiHost模式部署
2 可以做HA的包括nova-api和nova-scheduler,其中,nova-scheduler本身支持HA
3 MutilHost模式部署
4 对Nova-api进行负载
5 Nova的HA部署
二十一 Neutron HA
Active/active
  • dhcp-agent / openvswitch-agent/neutron-server
support active/ passive
  • L3-agent and metadata-agent
二十二 Sample Openstack HA Architecture

OpenStack HA相关推荐

  1. openstack ha 部署

    一.控制节点架构如下图: 二.初始化环境: 1.配置IP地址: 1.节点1:ip addr add dev eth0 192.168.142.110/24 echo 'ip addr add dev ...

  2. OpenStack HA集群3-Pacemake Corosync

    节点间主机名必须能解析 [root@controller1 ~]# cat /etc/hosts 192.168.17.149  controller1 192.168.17.141  control ...

  3. 理解 OpenStack 高可用(HA) (6): MySQL HA

    本系列会分析OpenStack 的高可用性(HA)概念和解决方案: (1)OpenStack 高可用方案概述 (2)Neutron L3 Agent HA - VRRP (虚拟路由冗余协议) (3)N ...

  4. OpenStack高可用(HA)和灾备(DR)解决方案

    一.基础知识 1.1 高可用 (High Availability,简称 HA) 高可用性是指提供在本地系统单个组件故障情况下,能继续访问应用的能力,无论这个故障是业务流程.物理设施.IT软/硬件的故 ...

  5. openStack高可用性和灾备方案

    1. 基础知识 1.1 高可用 (High Availability,简称 HA) 高可用性是指提供在本地系统单个组件故障情况下,能继续访问应用的能力,无论这个故障是业务流程.物理设施.IT软/硬件的 ...

  6. Cloud Prizefight: OpenStack vs. VMware(转)-HA-FT

    2019独角兽企业重金招聘Python工程师标准>>> There have been many discussions in the cloud landscape compari ...

  7. 4年!我对OpenStack运维架构的总结

    前言 应"云技术社区"北极熊之邀,写点东西.思来想去云计算范畴实在广泛,自然就聊点最近话题异常火热,让广大云计算从业者爱之深.痛之切,想说一声爱你,不容易的OpenStack吧. ...

  8. OpenStack Victoria搭建(一)简介

    简介 OpenStack 项目是一个适用于所有类型云的开源云计算平台,旨在实现简单.可大规模扩展和功能丰富.来自世界各地的开发人员和云计算技术人员创建了 OpenStack 项目. OpenStack ...

  9. 聊聊OpenStack运维架构

    前言 想一想,从事OpenStack杂七杂八的事儿,至今正好三年半了.做过QA测试(手动的.自动的).CI(gerrit.jenkins.gitlab.harbor).云产品封装(从系统pxe到ope ...

  10. 对OpenStack运维架构的总结(转)

    这里,仅从技术角度出发,谈谈OpenStack云平台在部署.架构和运维实施等方面的感想. 缘起,在2014年大二首次接触到OpenStack,当时国内外资料远没有当前这么丰富,为安装一个OpenSta ...

最新文章

  1. Spring Roo 2 使用分析
  2. 开源社区ITGeek介绍
  3. SAP HR 报表开发
  4. 移动开发:android , IOS html5
  5. 距离,margin padding ,width height 用法 ,记录
  6. 【C++】 C++标准模板库(四) Set
  7. mysql的外键_mysql如何查看外键
  8. 【Wordpress】分享500多款国外WordPress经典主题 其之三
  9. 前端学习(1664):前端系列实战课程之阻止复制
  10. 百度SEO万能网页操作编程者 v2.0
  11. html中文本框冒号对齐,html5 冒号分隔符对齐的实现,
  12. 图片压缩的另一种实现(3)
  13. 图像过滤,so easy~~
  14. 机器视觉在智能制造中的应用
  15. Zigbee之旅(十):综合小实验——基于CC2430的温度监测系统(转)
  16. 中国汽车高级驾驶辅助系统(ADAS)行业十四五规划及投资动态分析报告2022-2028年版
  17. 草履虫纳米机器人_《Nature》草履虫大小的微型机器人:由激光驱动可用于显微外科...
  18. Selenium自动化测试面试题
  19. linux 查询挂载信息,linux 查询挂载信息
  20. 编写一个基于控制台的购书系统实现购书功能

热门文章

  1. django -数据库操作
  2. Blast2GO使用方法详解(命令界面
  3. JavaWeb项目上云教程(Java项目在腾讯云上部署操作教程)
  4. HackTheBox::Blunder
  5. 前端性能优化方案(图片)
  6. 计算机网络分组交换特点,分组交换技术在计算机网络技术中的作用及特点是什么?...
  7. 使用matlab在图片上画框,并保存
  8. 新浪云部署javaweb项目
  9. app store connect
  10. 助过网:一个月时间怎么科学有效复习公务员考试?