대부분의 OpenStack 서비스들을 SQL 데이터베이스를 사용하여 정보를 저장합니다. 해당 데이터베이스는 보통 컨트롤러 노드에서 실행합니다. 본 가이드 내 절차에서는 배포판에 따라 MariaDB 또는 MySQL을 사용합니다. OpenStack 서비스들은 PostgreSQL 를 포함한 다른 SQL 데이터베이스 또한 지원합니다.
패키지를 설치하십시오:
# yum install mariadb mariadb-server MySQL-python
/etc/my.cnf.d/mariadb_openstack.cnf 파일을 생성 및 편집하여 다음 작업을 완료합니다:
[mysqld] 섹션에서 다른 노드들이 관리 네트워크를 통한 액세스를 활성화하기 위해 컨트롤러 노드의 관리 IP 주소를 bind-address 키로 설정합니다:
[mysqld]
...
bind-address = 10.0.0.11
[mysqld] 섹션에서 유용한 옵션과 UTF-8 문자 세트를 활성화하기 위해 다음 키를 설정합니다:
[mysqld]
...
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8
데이터베이스 서비스를 시작하고 시스템 부팅시 시작하도록 설정합니다:
# systemctl enable mariadb.service
# systemctl start mariadb.service
mysql_secure_installation 스크립트를 실행하여 데이터베이스 서비스의 보안을 강화합니다.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.