一、環境
1、系統:
a、CentOS Linux release 7.4.1708 (Core)
b、更新yum源和安裝常用軟件
# yum -y install epel-release bash-completion.noarch bash-completion-extras.noarch vim net-tools
2、節點:6台
3、配置時間同步 (chrony)
博客:http://www.cnblogs.com/weijie0717/p/8549204.html
4、關閉 firewalld 和 Selinux
5、安裝 openstack 源(所有節點)
# yum install centos-release-openstack-pike
6、安裝 openstack-client(controller 節點)
# yum install python-openstackclient
7、更新系統,並重啟(所有節點)
# yum upgrade
# init 6
二、ceph 集群部署
博客:ceph 集群安裝
三、數據庫集群部署 (controller 節點)
1、博客:Mysql 5.7 Galera cluster 部署
或 Centos 7 MariaDB Galera cluster 部署
安裝python mysql 插件
# yum -y install python2-PyMySQL.noarch
2、配置文件添加修改如下配置:
# vim /etc/my.cnf
[mysqld] bind-address = 10.6.32.x (各節點網卡IP) default-storage-engine = innodb innodb_file_per_table = on max_connections = 4096 collation-server = utf8_general_ci character-set-server = utf8
3、重啟服務(因為是集群,服務逐一重啟)
# systemctl restart mysql.service
四、集群高可用部署 (controller 節點)
博客:Corosync + Pacemaker + psc + HA-proxy 實現業務高可用
博客:Openstack 集群,及常用服務的 高可用 haproxy配置
部署 mysql + Haproxy,並逐台切換Haproxy的節點測試,保證mysql-VIP 負載可用。
五、Message queue 安裝 (controller 節點)
博客:Centos 7 RabbitMQ + Haproxy 集群高可用部署
六、Memcached 安裝 (controller 節點)
1、安裝包
# yum install memcached python-memcached
2、修改配置
# vim /etc/sysconfig/memcached
3、重啟服務,並設置開機自啟動
# systemctl enable memcached.service
# systemctl start memcached.service
七、Etcd 安裝
目前Etcd 尚未搭建成功,前期openstack 可以不做配置,后期補充。
基礎環境部署完畢。