Example Use Case
Last updated
Last updated
This section explains an example case of Deka SLB configuration using the Roundrobin method type with two VM Instances in the Cloudeka portal service. There are several stages that will be carried out in the case of using the Deka SLB configuration on the Cloudeka portal service.
The first step is to add VPC configuration on the project that will be created by Deka SLB, you can click for further explanation on how to create a VPC this link to go to the Create VPC module.
The next step is to Add two VM in the Instance using the same VPC, which is vpc-demo-slb. For further explanation on how to create a VM, you can press this link to go to the Create VM module.
The VM on the instances that have been created are demo-slb1 and demo-slb2, console access on the demo-slb1 and demo-slb2 VMs. Press the More button then select Access Console.
Enter the username and password used to log in to the virtual machine.
Enter the following command to update the package management version that the VM will use.
Enter the following command to install the Apache HTTPServer package on the VM.
Type Y to continue the installation process.
Press Enter to continue the installation process and wait until the process is complete.
After you have finished installing Apache, next, check the status that Apache has been installed, enter the command below.
After Apache is running on each VM, the next step is to add a file to the html directory. Later, the file created in this html directory will be added to the Backend configuration in the Load Balancer under the Http Check URI column. Enter the following syntax to access the html directory.
Enter the following command syntax to create a file in the html directory.
Enter the contents of the file in each VM
To exit the configuration file main.php, on the keyboard press the CTRL key and the X key simultaneously. Press the Y and Enter keys to save the file contents.
The next step is to add a load balancer configuration using the Server Load Balancer type via the Network menu.
It can be seen that after adding the Deka SLB configuration, the IP address is 109.199.214.217 which will later be added to the Security Firewall. In the SLB configuration, add HTTP configuration to the backend and frontend.
On the Security menu, press the Create Security button, in the Inbound Rule section, press the New Rule button to add the IP address obtained after successfully creating the Deka SLB configuration.
For the Apply to Instance section, add it to the previously created VM.
After completing all the configurations above, check whether the web server is running according to the configuration. Open the browser on your computer, enter the IP address obtained in the load balancer configuration, namely 109.190.214.217 and the name of the file created in the html directory, namely main.php. Enter the following syntax in your browser.