SQL データベース

SQL データベース

ほとんどの OpenStack のサービスは、情報を保存するために SQL データベースを使用します。データベースは、一般的にコントローラーノードで実行します。このガイドの手順では、ディストリビューションによりますが、 MariaDB か MySQL を使用します。OpenStack のサービスは、PostgreSQL などの他の SQL データベースもサポートしています。

コンポーネントのインストールと設定

  1. パッケージをインストールします。

    # apt install mariadb-server python-pymysql
    
  1. ファイル /etc/mysql/mariadb.conf.d/99-openstack.cnf を作成、編集し、以下の作業をすべて行います。

    • Create a [mysqld] section, and set the bind-address key to the management IP address of the controller node to enable access by other nodes via the management network. Set additional keys to enable useful options and the UTF-8 character set:

      [mysqld]
      bind-address = 10.0.0.11
      
      default-storage-engine = innodb
      innodb_file_per_table
      max_connections = 4096
      collation-server = utf8_general_ci
      character-set-server = utf8
      

インストールの最終作業

  1. データベースサービスを再起動します。

    # service mysql restart
    
  1. mysql_secure_installation スクリプトを実行して、データベースサービスの安全性を向上します。特に、データベースの root アカウントに適切なパスワードを選択します。

    # mysql_secure_installation
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.