Over the following steps, we'll show you how to set up and deploy Oxla multi-node database. Let’s get started!
Note: In this tutorial, we will show you how to deploy Oxla with three nodes. If you want to deploy more than that, simply update and adjust the yaml configuration per tutorial below.
⚠️ Install Docker. Please refer to this page for further details.
⚠️ We recommend you to use Linux OS computer to deploy Oxla multi-node database.
⚠️ Install PostgresSQL-client-14 for psql connection. Please refer to this page.
⚠️ Grab N machines with ssh access to them. The N number refers to the number of nodes that you want to deploy.
⚠️ Configure the networking so that all nodes can connect to each other.
- Open your terminal command and execute this command to check if you have installed your docker properly.
Note: If it returns “Bad response from Docker engine”, this means there is an issue with your docker engine. Try re-install your docker.
- Execute the following command to create a file that contains docker compose file:
- Input the following code into the docker compose file for each node:
Note: Don’t forget to replace the following values with appropriate values:
- 192.168.0.1; 192.168.0.2; 192.168.0.3
Warning: Please ensure you the three machines that you are using to deploy Oxla is connected in a same network.
Info: Depending on your computer's RAM capacity, you may need to adjust the environment variable to optimize performance. You can set OXLA_MAX_NON_QUERY_MEM to a custom number.
For example OXLA_MAX_NON_QUERY_MEM=4194304
- Execute the following command to create and start the docker container:
- Execute the following command to run Oxla:
Note: Please replace IP_ADDRESS with one of the IP addresses that you setup in your yaml file. If you encounter an error response “bash: psql: command not found“, this means that you have not installed PostgreSQL.
Warning: Please ensure that you repeat all of the steps above on all of the nodes.