대부분의 OpenStack 서비스들을 SQL 데이터베이스를 사용하여 정보를 저장합니다. 해당 데이터베이스는 보통 컨트롤러 노드에서 실행합니다. 본 가이드 내 절차에서는 배포판에 따라 MariaDB 또는 MySQL을 사용합니다. OpenStack 서비스들은 PostgreSQL 를 포함한 다른 SQL 데이터베이스 또한 지원합니다.
패키지를 설치하십시오:
# zypper install mariadb-client mariadb python-PyMySQL
/etc/my.cnf.d/openstack.cnf
파일을 생성과 편집하여 다음 작업을 완료합니다:
[mysqld]
섹션을 생성하고, 다른 노드들이 관리 네트워크를 통한 액세스를 활성화하기 위해 컨트롤러 노드의 관리 IP 주소를 bind-address
키로 설정합니다. 유용한 옵션 및 UTF-8 문자셋을 활성화하기 위해 부가적인 키를 설정합니다:
[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
데이터베이스 서비스를 시작하고 시스템 부팅시 시작하도록 설정합니다:
# systemctl enable mysql.service
# systemctl start mysql.service
mysql_secure_installation
스크립트를 실행하여 데이터베이스 서비스 보안을 강화합니다. 특히, 데이터베이스 root
계정에 대하여 알맞은 암호를 선택합니다.
# mysql_secure_installation
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.