openstack controller HA

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openstack controller HA相关的知识,希望对你有一定的参考价值。

global

        log 127.0.0.1 local3

        maxconn 4000

        chroot  /var/lib/haproxy

        pidfile  /var/run/haproxy.pid

        nbproc 16

        #ulimit-n 231097

        #tune.ssl.default-dh-param 1024

        user haproxy

        group haproxy

        daemon

defaults

        log     global

        mode    http

        option  httplog

        option  dontlognull

        option  forwardfor

        retries 3

        option redispatch

        maxconn 8000

        timeout connect 5s

        timeout client 5m

        timeout server 5m

        timeout check 1s

        timeout http-request 10s

        timeout http-keep-alive 10s

listen Stats *:10000

        mode http

        stats enable

        stats uri /

        stats refresh 15s

        stats show-node

        stats show-legends

        stats hide-version

listen dashboard

        bind 10.203.3.9:80

        balance  source

        capture  cookie vgnvisitor= len 32

        cookie  SERVERID insert indirect nocache

        mode  http

        option  forwardfor

        option  httpchk

        option  httpclose

        option  httplog

        rspidel  ^Set-cookie:\ IP=

        timeout  client 3h

        timeout  server 3h

        server controller1 10.203.3.10:90 cookie controller1 check inter 2000 rise 2 fall 3

        server controller2 10.203.3.11:90 cookie controller2 check inter 2000 rise 2 fall 3

listen keystone_common

        bind 10.203.3.9:5000

        balance  source

        option  tcpka

        option  httpchk

        server keystone1 10.203.3.10:6000 check inter 2000 rise 2 fall 3

        server keystone2 10.203.3.11:6000 check inter 2000 rise 2 fall 3

listen keystone_admin

        bind 10.203.3.9:35357

        balance  source

        option  tcpka

        option  httpchk

        server keystone1 10.203.3.10:45357 check inter 2000 rise 2 fall 3

        server keystone2 10.203.3.11:45357 check inter 2000 rise 2 fall 3

listen nova_compute_api

        bind 10.203.3.9:8774

        balance  source

        option  tcpka

        option  httpchk

        server nova1 10.203.3.10:9774 check inter 2000 rise 2 fall 3

        server nova2 10.203.3.11:9774 check inter 2000 rise 2 fall 3

listen novncproxy

        bind 10.203.3.9:6080

        balance  source

        option  tcpka

        server nova1 10.203.3.10:7080 check inter 2000 rise 2 fall 3

        server nova2 10.203.3.11:7080 check inter 2000 rise 2 fall 3 backup

listen nova_metadata_api

        bind 10.203.3.9:8775

        balance  source

        option  tcpka

        server nova1 10.203.3.10:9775 check inter 2000 rise 2 fall 3

        server nova2 10.203.3.11:9775 check inter 2000 rise 2 fall 3

listen cinder_api

        bind 10.203.3.9:8776

        balance  source

        option  tcpka

        server cinder1 10.203.3.10:9776 check inter 2000 rise 2 fall 3

        server cinder2 10.203.3.11:9776 check inter 2000 rise 2 fall 3

listen glance_api

        bind 10.203.3.9:9292

        balance  source

        option  tcpka

        option  httpchk

        server glance1 10.203.3.10:10292 check inter 2000 rise 2 fall 3

        server glance2 10.203.3.11:10292 check inter 2000 rise 2 fall 3

listen glance_registry

        bind 10.203.3.9:9191

        balance  source

        option  tcpka

        server glance1 10.203.3.10:10191 check inter 2000 rise 2 fall 3

        server glance2 10.203.3.11:10191 check inter 2000 rise 2 fall 3

listen neutron_api

        bind 10.203.3.9:9696

        balance  source

        option  tcpka

        option  httpchk

        server cinder1 10.203.3.10:10696 check inter 2000 rise 2 fall 3

        server cinder2 10.203.3.11:10696 check inter 2000 rise 2 fall 3

listen rdb_mysql

        bind 10.203.3.9:3306

        balance  source

        mode  http

        option  mysql-check 

        server mysql1 10.203.3.10:4306 check inter 2000 rise 2 fall 3

        server mysql2 10.203.3.11:4306 check inter 2000 rise 2 fall 3 backup

net.ipv4.ip_nonlocal_bind = 1

本文出自 “让我men共同成长” 博客,请务必保留此出处http://wujingfeng.blog.51cto.com/5725921/1964717

以上是关于openstack controller HA的主要内容,如果未能解决你的问题,请参考以下文章

openstack--newton安装过程(官方文档)controller

OpenStack Mitaka HA高可用搭建

openstack controller ha测试环境搭建记录——配置keystone

Openstack组件部署 — Nova_安装和配置Controller Node

openstack-mitaka之编排服务(controller安装部署)

openstack controller ha测试环境搭建记录——配置neutron(计算节点)