- 1 minute to read
- Print
- DarkLight
- PDF
Docker settings
- 1 minute to read
- Print
- DarkLight
- PDF
Set up Docker containers
- Log in Docker host via SSH
- Go to the opt directory
cd /opt/
- Unzip the manifests file
tar -xzvf /tmp/manifests.tar.gz
- Go to the manifests directory
cd manifests/
Check the README file to know more about files and instructions.
Now, you have two deploy options: docker-compose and docker with startup script. We strongly recommend the use of docker-compose.
Set up Docker variables
Set the kernel parameter needed by the Elasticsearch container
- Setting up Docker variables
sysctl -w vm.max_map_count=262144
echo 'vm.max_map_count=262144' >> /etc/sysctl.conf
Start Docker containers
Docker host with internet access
Docker host needs to have access to registry.senhasegura.io
.
Using docker-compose (recommended)
You need to have docker-compose installed in your Docker host.
The docker-compose.yml
file contains everything necessary to run both the Galera cluster and Elasticsearch containers.
- Go to docker-compose directory
cd /opt/manifests/docker-compose
- Start the containers
docker-compose up -d
You can manage both containers at the same time with the commands docker-compose stop
, docker-compose start
and docker-compose restart
.
You can also see both containers logs simultaneously with the command docker-compose logs -f
.
Using the script
The startup.sh
script contains everything necessary to run both Galera cluster and Elasticsearch containers.
- Go to docker directory
cd /opt/manifests/docker
- Run the startup script
./startup.sh
You can see the containers logs individually with the commands docker logs -f garbd-senhasegura-arbiter
and docker logs -f elasticsearch-senhasegura-arbiter
.
Docker host without internet access
Use this option if the Docker host doesn't have internet access.
- Go to the opt directory
cd /opt/
- Unzip the docker-images file
tar -xzvf docker-images.tar.gz
- Load both images into docker by running the following command:
bash /opt/docker-images/docker-load-images.sh
- Check if the images were successfully imported with the command. Issue the command:
docker images
They should appear at the very top of the list.
- Go to docker-compose directory
cd /opt/manifests/docker-compose
- Start up the containers
docker-compose up -d
Validate the installation
To verify if everything is working properly, execute the following command on both senhasegura instances:
orbit cluster arbiter status
Expected result:
senhasegura cluster arbiter
Status: ENABLED
Arbiter IP address: 192.168.0.5
Galera Cluster arbiter (garbd) status: Connected, OK
Elasticsearch arbiter status: Connected, OK
Troubleshooting guides is available at https://d.senhasegura.io/woam2aet
Troubleshooting
If you encounter any issues, you can try the following articles:
If you still cannot find your issue, you can send your issue to our Community.