OpenStack LBaaS之Octavia

2024-06-20 19:38
文章标签 openstack lbaas octavia

本文主要是介绍OpenStack LBaaS之Octavia,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

OpenStack自从Kilo版本引入了V2.0版本的LBaaS API,并且从Liberty版本开始正式支持V2.0 API,同时该API支持的LBaaS plug-in换成了Octavia。换成Octavia的原因是之前使用的haproxy plug-in没有HA功能,扩展性也比较差,不适用于大规模部署的场景。具体的关于Octavia的说明可以参考如下Specs:
http://specs.openstack.org/openstack/neutron-specs/specs/liberty/lbaas-ref-octavia.html 

但是,对于小规模部署的场景,haproxy plug-in还是有用武之地的。

1 介绍

octavia wiki:

https://wiki.openstack.org/wiki/Octavia

liberty:

http://specs.openstack.org/openstack/neutron-specs/specs/liberty/lbaas-ref-octavia.html

mitaka:

https://specs.openstack.org/openstack/openstack-ansible-specs/specs/mitaka/lbaasv2.html

官方:

https://docs.openstack.org/octavia/latest/

孔令贤的博客详细:

https://lingxiankong.github.io/2017-09-13-octavia.html

2 安装

2.1 devstack安装

https://docs.openstack.org/devstack/latest/guides/devstack-with-lbaas-v2.html

https://wiki.openstack.org/wiki/Neutron/LBaaS/HowToRun


2.2 手工安装

方法1:

pip install octavia 
方法2:

pypi: https://pypi.python.org/pypi/octavia

wget https://pypi.python.org/packages/31/83/845e8e2930735811d19ff189bc61ae0330385b216039461725c202f4c663/octavia-1.0.0.0rc2-py2.py3-none-any.whl#md5=ad04b06d6af88ed1148ce3a081c1c2bb
pip install octavia-1.0.0.0rc2-py2.py3-none-any.whl


3 配置

http://www.iyunv.com/thread-287366-1-1.html

http://superbigsea.blog.51cto.com/6862263/1862253



4 架构



Octavia version 0.9 consists of the following major components:

  • amphorae - Amphorae are the individual virtual machines, containers, or bare metal servers that accomplish the delivery of load balancing services to tenant application environments. In Octavia version 0.8, the reference implementation of the amphorae image is an Ubuntu virtual machine running HAProxy.
  • controller - The Controller is the “brains” of Octavia. It consists of four sub-components, which are individual daemons. They can be run on separate back-end infrastructure if desired:
    • API Controller - As the name implies, this subcomponent runs Octavia’s API. It takes API requests, performs simple sanitizing on them, and ships them off to the controller worker over the Oslo messaging bus.
    • Controller Worker - This subcomponent takes sanitized API commands from the API controller and performs the actions necessary to fulfill the API request.
    • Health Manager - This subcomponent monitors individual amphorae to ensure they are up and running, and otherwise healthy. It also handles failover events if amphorae fail unexpectedly.
    • Housekeeping Manager - This subcomponent cleans up stale (deleted) database records, manages the spares pool, and manages amphora certificate rotation.
  • network - Octavia cannot accomplish what it does without manipulating the network environment. Amphorae are spun up with a network interface on the “load balancer network,” and they may also plug directly into tenant networks to reach back-end pool members, depending on how any given load balancing service is deployed by the tenant.

For a more complete description of Octavia’s components, please see the Octavia v0.5 Component Design document within this documentation repository.

diagram of the Octavia v0.5 components:







这篇关于OpenStack LBaaS之Octavia的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1079067

相关文章

openstack中ping不通vm

ping不通vm的问题解决 ping不通vm,首先应考虑安全组规则的问题,查看安全组中是否有ICMP规则。 Even pinging the instance is not possible without an ICMP rule configured. 1 查看安全组及其规则 [root@-ctl ~]# nova secgroup-list+----------

Openstack使用官方ubuntu和Centos镜像

1 使用官方ubuntu镜像无法使用ssh用户名密码登录登录的问题 在创建instance的时候,选择"创建后",然后选择直接输入,输入如下代码 ubuntu [plain]  view plain  copy #!/bin/sh     passwd ubuntu<<EOF     123456   123456   EOF sed -i 's/Per

OpenStack Liberty High Availability 概述和指导

OpenStack Liberty 高可用性概述和参考-第一部分 这篇文章由Avishay Traeger 和 Shimshom Zimmerman编写。        OpenStack设计目的是在商用硬件上运行,但是没有自身的机制处理硬件和软件故障。OpenStack成功部署的一个重要组成部分是创建一个高可用性(HA)软件架构体系。这样的架构体系的首要组件是支持高可用OpenSta

OpenStack LBaaS之LBaaS

1 基础知识 1.1 负载均衡 1.2 负载均衡器 1.2.1 HAProxy 1.2.2 KeepAlived 1.2.3 Nginx 参考: http://www.cnblogs.com/sammyliu/p/4656176.html 2 LBaaS 2.1 架构 2.2 LBaaS V1和V2区别 2.2.1 区别 OpenStack中的网络服务通过neutr

[程序员] openstack: openvswitch: firewall丢包

最近看到一个老问题:说openvswitch提供的防火墙策略,会导致网络性能下降,而且有丢包。 https://bugzilla.redhat.com/show_bug.cgi?id=1559604 the firewalling changed and the firewall_driver is now ‘openvswitch’ ([security_groups] in openvsw

项目六 OpenStack虚拟机实例管理

任务一 理解OpenStack计算服务 1.1 •什么是Nova • Nova是OpenStack中的计算服务项目 ,计算虚拟机实例生命周期的所有活动都由 Nova 管理 。 • Nova 提供统一的计算资源 服务。 • Nova 需要下列 OpenStack 服务的 支持。 Ø Keystone :为所有的 OpenStack 服务提供身份管理和认证。 Ø Glanc

项目三OpenStack基础环境配置与API使用

任务一  了解OpenStack基础环境配置 1.1 •数据库服务器 1.2 •消息队列服务 •AMQP系统的组成 任务二  了解并使用OpenStack API 2.1 •什么是RESTful API • RESTful API 是目前比较成熟的 一套Internet应用程序的API软件架构 。 • 表现 层( Representation )是指资源的

深挖Openstack Cinder - 数据库表结构

”深挖数据库表结构,相当于从原子角度去剖析整个模块组成。“  --- 我说的 表清单 1. backups – 数据备份 2. cgsnapshots – 一致性组快照 3. consistencygroups – 一致性组 4. driver_initiator_data – 驱动发起人数据 5. encryption – 加密 6. image_volume_cache

深挖Openstack Glance - 源码分析(2)

============承接上篇 Glance - 源码分析(1)================= 3. 获取image信息 def detail(self, req): 其中,获取镜像image数据的语句如下: images = registry.get_images_detail(req.context, **params) 深入get_images_detail方法,对应的是

深挖Openstack Glance - 源码分析(1)

v1版本API功能解析 1. 创建image 2. 更新image 3. 获取image信息(metadata和data) 4. 删除image 5. 获取image列表 6. 获取image元数据(metadata) 7. 下载image 这些功能都在/glance/api/v1/images.py里,该文件主要是提供与image相关的操作。 接下来将对这些功能逐个分析: