Prerequisites
This procedure documents the steps for installing the MySQL Cluster on VM's. Here VM's will be created manually using the virt-install CLI tool; MySQL Cluster will be installed using the db-install docker container.
For Installing the MySQL Cluster on these VM's requires an use of the an inventory file (hosts.ini) where all the MySQL node IP Address are configured. This Inventory file provides the db-install docker container with all the necessary information about the MySQL cluster.
MySQL Cluster will be installed using the MySQL Cluster Manager binary release which includes MySQL NDB Cluster version. Download MySQL Cluster Manager version as specified in the OCCNE 1.0 Installation PreFlight Checklist.
In OCCNE platform, all the NF's will need a database to store application data, so MySQL Cluster is installed for storing all the application and config data for NF's. For installing MySQL Cluster, VM's will be created in kubernetes master nodes and Database Servers as configured in the OCCNE Inventory File Template file.
Below are list of prerequisites required for creating the VM's and installing the MySQL Cluster.
/var/occne/<cluster_name>
directory, these SSH keys will be configured in these VM's as part of the
OCCNE Install VMs for MySQL Nodes and Management Server, so that
db-install container can install these VM's with the MySQL Cluster software.
/var/occne
directory in
bastion host(Management VM).
Limitations and Expectations
References
Steps to perform OCCNE Database Tier Installer
Table 3-13 OCCNE Database Tier Installer
Step # | Procedure | Description | |||
---|---|---|---|---|---|
1 ![]() |
Login in to the Management Node |
Login in to the Management Node using the IP address noted in the OCCNE 1.0 Installation PreFlight Checklist |
|||
2 ![]() |
Configure
occne_mysqlndb_DataMemory
variable in the hosts.ini file
|
Check the
Configure
|
|||
3 ![]() |
Note down the db install container name | Note down the db install container name as
specified in the manifest.
|
|||
4 ![]() |
Run db-install container |
The
db-install container will install MySQL Cluster on VM's configured in
the host.ini inventory file. All the above steps should be performed before
running the db-install container. Replace
<customer_repo_location>
and
<db_install_container_name>
in below docker command and docker-compose.yaml file.
|
|||
5 ![]() |
Test the MySQL Cluster | Test the MySQL Cluster by executing the
following command:
$ docker run -it --network host --cap-add=NET_ADMIN \ -v /var/occne/<cluster_name>:/host \ -v /var/occne:/var/occne:rw \ <customer_repo_location>/<db_install_container_name> \ /test/cluster_test 0 For Example:
$ docker run -it --network host --cap-add=NET_ADMIN \ -v /var/occne/rainbow:/host \ -v /var/occne:/var/occne:rw \ reg-1:5000/db_install:1.0.1 \ /test/cluster_test |
|||
6 ![]() |
Login to the each of the MySQL SQL nodes and change the MySQL root user password |
As part of the installation of the MySQL Cluster,
db_install container
will generate the random password and marked as expired in the MySQL SQL nodes.
This password is stored in
/var/occnedb/mysqld_expired.log
file. so we need to login to the each of the MySQL SQL nodes and change the
MySQL root user password.
Perform this step for all the remaining SQL nodes. Note:
Here
|