Mariadb Install (2) - 설치 & 환경설정 installation
1. Configure System Environment
2. MariaDB Galera Cluster installation
3. Install MariaDB Galera Cluster
4. POST Installation Configuration
5. DataBase System Configuration
6. configure DataBase Server
7. configure Swap space
8. REPLICATION CONFIGURATION
9. wsrep CLUSTER ADDRESS
10. Starting The First Cluster Node
11. Adding Second and additional nodes to the Cluster
1. Configure System Environment
1. Configure System Environment
1.1. Disabling SELinux for mysqld
1.2. Firewall Configuration
1.3. Check Firewall Configuration
* 설정된 Iptables의 정책은 아래 파일에 적용 됩니다.
# Check for update iptables configuration
/etc/sysconfig/iptables
/etc/iptables/iptables.rules
2. MariaDB Galera installation
2. MariaDB Galera Cluster installation
2.1. Enabling the apt
Repository
2.2.Add the GnuPG key for the MariaDB repository.
2.3. Add the MariaDB repository to your sources list.
2.4. Update the local cache.
2.5. Enabling the yum
Repository
3. INSTALLING MARIADB GALERA CLUSTER
3. Install MariaDB Galera Cluster
3.1 Install mariadb packages
3.2 Update mariadb packages with yum
- package update by Yum update
4. POST-INSTALLATION CONFIGURATION¶
4. POST Installation Configuration
4.1. Create the user and group for the database server.
4.2. Install the database.
4.3. Change the user and group permissions for the base directory.
4.4. Create a system unit for the database server.
5. Database System CONFIGURATION¶
5. DataBase System Configuration
5.1. Edit Dataconfigureation file "my.cnf ".
/etc/my.cnf
file.
6. CONFIGURING DATABASE SERVER
6. configure DataBase Server
Ensure that mysqld
is not bound to 127.0.0.1. This is IP address for localhost. comment it out:
configuration file includes the conf.d/
set to use row-level replication, as opposed to statement-level replication.
Ensure that the default storage engine is InnoDB
InnoDB locking mode for generating auto-increment values is set to interleaved lock mode
[Note]
Warning: When innodb_autoinc_lock_mode is set to traditional lock mode, indicated by 0
, or to consecutive lock mode, indicated by 1
, in Galera Cluster it can cause unresolved deadlocks and make the system unresponsive.
InnoDB log buffer is written to file once per second, rather than on each commit, to improve performance.
[Note]
Warning: While setting innodb_flush_log_at_trx_commit to a value of 0
or 2
improves performance, it also introduces certain dangers.
Configuring the InnoDB Buffer Pool¶
7.CONFIGURING SWAP SPACE¶
7. configure Swap space
you can fix this by creating swap files.
- Create an empty file on your disk, set the file size to whatever size you require.Alternatively, you can manage the same using
dd
. -
-
- Secure the swap file.This sets the file permissions so that only the root user can read and write to the file. No other user or group member can access it. You can view the results with
ls
: -
-
- Format the swap file.
-
- Activate the swap file.
-
- Using your preferred text editor, update the
/etc/fstab
file to include the swap file by adding the following line to the bottom: -
After you save the /etc/fstab
file, you can see the results with swapon
.
8. REPLICATION COnfigureation¶
8. REPLICATION CONFIGURATION
- wsrep_node_name Use this parameter to define the logical name for the individual node—for convenience.
- wsrep_node_address Use this parameter to explicitly set the IP address for the individual node. It gets used in the event that the auto-guessing does not produce desirable results.
9. UNDERSTANDING CLUSTER ADDRESSES¶
9. wsrep CLUSTER ADDRESS
Backend Schem
dummy
Which provides a pass-through back-end for testing and profiling purposes. It does not connect to any other nodes. It ignores any values given to it.gcomm
Which provides the group communications back-end for use in production. It takes an address and has several settings that you can enable through the option list, or by using the wsrep_provider_options parameter.
Cluster Addresses
- The IP addresses of any current members, in the event that you want to connect to an existing cluster; or,
- The IP addresses of any possible cluster members, assuming that the list members can belong to no more than one Primary Component;
If you start the node without an IP address for this parameter, the node assumes that it is the first node of a new cluster. It initializes a cluster as though you launched mysqld
with the --wsrep-new-cluster
option.
10. STARTING THE FIRST CLUSTER NODE
10. Starting The First Cluster Node
There is no Primary Component when the cluster starts. In order to initialize it, you need to explicitly tell one node to do so with the --wsrep-new-cluster
argument
11. ADDING ADDITIONAL NODES TO THE CLUSTER
11. Adding Second and additional nodes to the Cluster
'BigData' 카테고리의 다른 글
hadoop 3.0에 설치되는 시스템 정리 (0) | 2018.10.21 |
---|---|
Apache Flink 버전 1.6.0이 출시 (0) | 2018.09.13 |
빅 데이터 애플리케이션을위한 NoSQL 데이터베이스의 효과적인 크기 조정 (0) | 2018.07.24 |
Mariadb Install (1) - 패키지 다운로드 download Script for packages (0) | 2017.11.13 |
Oracle 11g 라이선스 정책 (0) | 2017.07.18 |
VoltDB 및 ChartIO 를 활용한 실시간 데이터 스트리밍 기술 (0) | 2017.07.12 |
Power BI에 대해 알아야 할 사항 (0) | 2017.06.20 |