Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install database in openstack-mitaka

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to install the database in openstack-mitaka, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Database installation SQL database installation

Many OpenStack services use a SQL database to store information. The database usually runs on the controller node. The next step is to install the MariaDB database to provide information storage using the Openstack service. The OpenStack service also supports other SQL databases, including PostgreSQL.

Install and configure components

1. Install the package:

Yum install mariadb mariadb-server python2-PyMySQL

two。 To create and edit the / etc/my.cnf.d/openstack.cnf file, complete the following steps

In the [mysqld] section, set bind-address to the management IP address of the controller node

[mysqld]

…… .

Bind-address=controller

L in the [mysqld] section, add the following configuration

[mysqld]... default-storage-engine = innodbinnodb_file_per_tablemax_connections = 4096collation-server = utf8_general_cicharacter-set-server = utf8 complete installation

1. Start the database and set up boot self-startup

Systemctl enable mariadb.servicesystemctl start mariadb.service

two。 Install the database service by running the mysql_secure_installation script, during which you need to set a password for the root account

Mysql_secure_installation installs NoSQL database

The Telemetry service uses a NoSQL database to store information. The database usually runs on the controller node. The next step is to install MongoDB.

Note: when the Telemetry service is installed, the NoSQL database service is required. Install and configure components

1. Install the MongoDB package

Yum install mongodb-server mongodb

two。 Edit the / etc/mongod.conf file and complete the following steps

Configure bind_ip as the IP address of the management interface of the control node

Bind_ip = controller

By default, MongoDB creates several 1GB log files in the / var/lib/mongodb/journal folder. If you want to reduce each log file to 128MB, and want to limit all log space to 512MB, set smallfiles:

Smallfiles = true

You can also turn off the log and check out MongoDB manual for more information.

Complete the installation

Start the MongDB service and set it to boot.

Systemctl enable mongod.servicesystemctl start mongod.service install Message queue

OpenStack uses a message queue to coordinate the operation and status information before each service. The message queuing service typically runs on the controller node. OpenStack supports several message queuing services, including RabbitMQ, Qpid, and ZeroMQ. However, most OpenStack of distributed packages support a specific message queuing service. Since most distributed deployments support RabbitMQ, the next step is to install RabbitMQ. If you like to deploy other message queuing services, consult the relevant documents to install.

Install and configure components

1. Install the package

Yum install rabbitmq-server

two。 Start the message queuing service and set up boot self-startup

Systemctl enable rabbitmq-server.servicesystemctl start rabbitmq-server.service

3. Add openstack user

Rabbitmqctl add_user openstack RABBIT_PASSCreating user "openstack". Done.

Replace RABBIT_PASS with the appropriate password

4. Modify permissions to allow openstack users to read and write

Rabbitmqctl set_permissions openstack ". *" Setting permissions for user "openstack" in vhost "/" .done. Install Memcached

The Identity service that provides the authentication mechanism for the service uses memcached to cache tokens. Memcached services typically run on controller nodes. Deployed in a production environment, it is recommended to use junction firewall, authentication and encryption to protect it.

Install and configure components

Install the package

Yum install memcached python-memcached completes installation

Start the Memcached service and set up boot self-startup

Systemctl enable memcached.servicesystemctl start memcached.service above is all the contents of the article "how to install databases in openstack-mitaka". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report