# Configuration Deka SLB

After creating Deka SLB, for the next steps, add backend configuration and frontend configuration. On the Load Balancer page, press the Configuration button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.5%20Load%20Balancer%20Page.png" alt=""><figcaption><p>Config Deka SLB</p></figcaption></figure>

The Load Balancer Configuration page will appear, displaying three tabs.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.6%20Backend%20LB.PNG" alt=""><figcaption><p>Config Deka SLB</p></figcaption></figure>

There are three tabs available on the Load Balancer Configuration page, namely the General tab, Backend tab, and Frontend tab. This section explains some configurations that can be performed.

1. **Add Configuration**, for further details, you can follow the steps in subsections [Add Backend Configuration](#add-backend-configuration) and [Add Frontend Configuration](#add-frontend-configuration).
2. **Edit Configuration**, for further details, you can follow the steps in subsections [Edit Configuration Backend](#edit-backend-configuration) and [Edit Configuration Frontend.](#edit-frontend-configuration)
3. **Delete** **Configuration**, for further details, you can follow the steps in subsections [Delete Configuration](#delete-configuration-backend-frontend).

## **Add Backend Configuration**

Here are the steps to add Backend configuration in Deka SLB on the Cloudeka portal service:

* Navigate to the Configuration Load Balancer page and click on the Backend tab, then click Create Backend.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.7%20Backend%20LB.PNG" alt=""><figcaption><p>Config Backend</p></figcaption></figure>

* On the Create Backend page, fill in the available form.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.8%20create-be-a.png" alt=""><figcaption><p>Config Backend</p></figcaption></figure>

<table><thead><tr><th width="242">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Configure the backend with a name adhering to the character restrictions of using only A-Z, a-z, and "_" underscore.</td></tr><tr><td><strong>Load Balancer Method</strong></td><td>In this column, there are three options available Roundrobin, Least Connection, and Source.</td></tr><tr><td><strong>Mode</strong></td><td><p>There are two modes to choose from:</p><ol><li>HTTP</li><li>TCP</li></ol></td></tr></tbody></table>

If you select the HTTP protocol in the Mode column, the following columns will appear:

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.9%20create-be-http-b.png" alt=""><figcaption><p>Config Backend</p></figcaption></figure>

<table><thead><tr><th width="209">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Advanced Check</strong></td><td>If you choose HTTP in column Mode, click httpchk.</td></tr><tr><td><strong>Http Check Method</strong></td><td><p>You will have 2 options:</p><ol><li><strong>GET</strong>, used to request data to retrieve information..</li><li><strong>POST</strong>, used to request the creation of new data.</li></ol></td></tr><tr><td><strong>Http Check URI</strong></td><td>This column is used to determine whether the server is active or inactive. In this section, type /_health.php</td></tr></tbody></table>

If you choose the TCP protocol in the Mode column, the following columns will appear.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.10%20create-be-tcp-c.png" alt=""><figcaption><p>Config Backend</p></figcaption></figure>

<table><thead><tr><th width="231">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Advanced Check</strong></td><td><p>There are 2 options available:</p><ol><li><strong>SSL Hello Check</strong> used to ensure that an SSL connection to the backend server can be successfully established.</li><li><strong>TCP Check</strong> used for checking the availability or health of a TCP connection between two devices or nodes in the network.</li></ol></td></tr></tbody></table>

After determining the protocol to be used, in the Server section, you can add more than one server if your backend configuration involves multiple VMs or instances. This allows you to configure load balancing for multiple servers, distributing traffic among them based on the chosen algorithm and health check settings.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.11%20create-be-d.png" alt=""><figcaption><p>Config Backend</p></figcaption></figure>

<table><thead><tr><th width="245">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Servers - Server Name</strong></td><td>VM instances that have been deployed to the VPC connected to Deka SLB.</td></tr><tr><td><strong>Servers - Server Port</strong></td><td>The port that the server will use.</td></tr><tr><td><strong>Servers - Max Connection</strong></td><td>The maximum number of connections accepted by the server.</td></tr><tr><td><strong>Servers - Weight</strong></td><td>The load that will be received by the server.</td></tr></tbody></table>

* After filling out all the forms on the Create Backend page, click the Create Backend button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.12%20create-be-e.png" alt=""><figcaption><p>Config Backend</p></figcaption></figure>

* A notification will appear "Backend Configuration has successfully created!"

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.13%20success.png" alt=""><figcaption><p>Config Backend</p></figcaption></figure>

## **Add Frontend Configuration**

After you have configured the backend, the next step is to configure the frontend by following these steps:

* On the Configuration Load Balancer page click on the Frontend tab, and then click Create Frontend.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.14%20create-fe.PNG" alt=""><figcaption><p>Config Frontend</p></figcaption></figure>

* On the Create Frontend page, fill in the available form.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.15%20create-fe-b.png" alt=""><figcaption><p>Config Frontend</p></figcaption></figure>

<table><thead><tr><th width="183">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>The name of the frontend configuration, and the allowed characters for frontend naming are only A-Z, a-z, and "_" underscore.</td></tr><tr><td><strong>Default Backend</strong></td><td>Select the previously created backend.</td></tr></tbody></table>

If you want to add a Backend configuration press the Add Backend button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.16%20create-fe-c.png" alt=""><figcaption><p>Config Frontend</p></figcaption></figure>

<table><thead><tr><th width="197">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Backend Name</strong></td><td>Backend configuration name.</td></tr><tr><td><strong>ACL Name</strong></td><td>To define rules that control access or behavior for specific traffic.</td></tr><tr><td><strong>Criteria</strong></td><td><p>To determine whether a request should be directed to a specific backend or not. There are 3 options, namely:</p><ol><li><strong>req.hdr(Host)</strong> this criterion checks the value of the Host header in the HTTP request.</li><li><strong>path_beg</strong> this criterion checks whether the URL path of the request starts with a specific value.</li><li><strong>path_end</strong> this criterion checks whether the URL path of the request ends with a specific value.</li></ol></td></tr><tr><td><strong>Value</strong></td><td><p>These criteria are adjusted based on your selection in the Criteria column.</p><ol><li><strong>req.hdr(Host)</strong> as an example www.example.com</li><li><strong>path_beg</strong> for paths starting with “/”. Example: “/example.php”</li><li><strong>path_end</strong> for paths ending with a specific file extension. Example: “.php”</li></ol></td></tr><tr><td><strong>Condition</strong></td><td><p>There are two options:</p><ol><li><strong>Equal</strong> used to check if a value is equal to the value entered in the ACL Column.</li><li><strong>Not Equal</strong> used to check if a value is not equal to the value entered in the ACL column.</li></ol></td></tr><tr><td><strong>Action</strong></td><td>There is a Delete button to remove added Backend configurations.</td></tr></tbody></table>

After determining the Backend configuration to be used, there are other columns that need to be filled.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.17%20create-fe-d.png" alt=""><figcaption><p>Config Frontend</p></figcaption></figure>

<table><thead><tr><th width="147">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Bind Address</strong></td><td><p>There are 2 options:</p><ol><li>Internet</li><li>Internal</li></ol></td></tr><tr><td><strong>Mode</strong></td><td><p>There are 3 options:</p><ol><li>HTTPS</li><li>HTTP</li><li>TCP</li></ol></td></tr></tbody></table>

If you choose HTTPS in the Mode column, the following columns will appear:

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.18%20create-fe-e.png" alt=""><figcaption><p>Config Frontend</p></figcaption></figure>

<table><thead><tr><th width="167">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Bind Port</strong></td><td>By default, it uses port 443.</td></tr><tr><td><strong>Certificate File</strong></td><td>You can upload the certificate file you possess. If you are usign the Cloudeka Portal Service, namely Deka SSL, you can download the file in the SSL menu under the Manage Module.</td></tr><tr><td><strong>Key File</strong></td><td>You can upload the key file you possess. If you are using the Cloudeka Portal Service, namely Deka SSL, you can download the file in the SSL menu under the Manage Module.</td></tr></tbody></table>

If the Mode column selects the **HTTP** or **TCP** protocol, the following columns will appear.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.19%20create-fe-f.png" alt=""><figcaption><p>Config friontend - HTTP - TCP</p></figcaption></figure>

<table><thead><tr><th width="149">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Bind Port</strong></td><td><p>Adjusting to the protocol used:</p><ol><li>If the <strong>HTTP</strong> Protocol is selected, it will be automatically filled with <strong>port 80</strong>.</li><li>If the <strong>TCP</strong> Protocol is selected, <strong>specify the port to be used</strong>.</li></ol></td></tr></tbody></table>

* After filling out all the forms on the Create Backend page, click the Create Backend button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.20%20create-fe-g.png" alt=""><figcaption><p>Config Frontend</p></figcaption></figure>

* If the HTTPS load balancer frontend is successfully created, a notification will appear “Frontend Configuration has successfully created!”.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.21%20success-create-fe.png" alt=""><figcaption><p>Config Frontend</p></figcaption></figure>

## **Edit Backend Configuration**

You can modify the backend configuration you've created by following these steps:

* On the Backend tab of the Configuration Load Balancer, select Backend configuration you want to update by clicking the Edit button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.22%20edit%20backend.PNG" alt=""><figcaption><p>Edit Configuration Backend</p></figcaption></figure>

* The Edit Backend page, you can modify the Load Balance Method, Advanced Check, Http Check Method, Http Check URI, and add Servers by click Add Servers. Then click Update Backend.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.23%20edit%20form%20backend.PNG" alt=""><figcaption><p>Edit Configuration Backend (a)</p></figcaption></figure>

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.24%20edit%20form%20backend.PNG" alt=""><figcaption><p>Edit Configuration Backend (b)</p></figcaption></figure>

* A notification will appear Backend Configuration has successfully updated!

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.25%20backend%20update.PNG" alt=""><figcaption><p>Edit Configuration Backend Success</p></figcaption></figure>

## **Edit Frontend Configuration**

Here are steps to modify the existing Frontend configuration:

* On the Configuration Load Balancer, click on the tab Frontend. Select the frontend configuration you want to update by click the Edit button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.26%20edit%20frontend.PNG" alt=""><figcaption><p>Edit Configuration</p></figcaption></figure>

* The Edit Frontend page will appear, you can modify Default Backend, Additional Backend if you want to add another backend, click the Add Backend button, Bind Address, and Bind Port. Then click Update Frontend.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.27%20form%20frontend.PNG" alt=""><figcaption><p>Edit Configuration Frontend (a)</p></figcaption></figure>

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.28%20form%20frontend.PNG" alt=""><figcaption><p>Edit Configuration Frontend (b)</p></figcaption></figure>

* A notification will appear Frontend Configuration has successfully updated! indicating that the frontend Load Balancer configuration has been successfully modified.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.29%20update%20frontend.PNG" alt=""><figcaption><p>Edit Configuration Frontend Success</p></figcaption></figure>

## **Delete Configuration Backend/Frontend**

To delete the backend and frontend configuration in the Deka SLB configuration. The initial step is to delete the frontend configuration and then delete the backend configuration. On the **Configuration Load Balancer page**, on the **Frontend** tab, select the **Delete** button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.30%20del-conf-befe-a.png" alt=""><figcaption><p>Delete Configuration FE</p></figcaption></figure>

The **Delete Frontend window** appears, **enter the frontend configuration name** and click the **Confirm** button to continue the configuration deletion process.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.31%20del-conf-befe-b.png" alt=""><figcaption><p>Delete Configuration FE</p></figcaption></figure>

Wait until the process is complete and the notification "**Frontend configuration has been successfully deleted**!" appears.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.32%20del-conf-befe-c.png" alt=""><figcaption><p>Success Delete Configuration FE</p></figcaption></figure>

After successfully deleting the frontend configuration, the **next step** is to **delete the backend configuration**. **If you haven't deleted the frontend configuration, a notification will appear "Please detach default backend from frontend configuration!"** On the **Backend** tab, select the **Delete button**.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.33%20del-conf-befe-d.png" alt=""><figcaption><p>Delete Configuration BE</p></figcaption></figure>

The **Delete Backend** window appears, **enter the frontend configuration name** and press the **Confirm** button to continue the configuration deletion process.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.34%20del-conf-befe-e.png" alt=""><figcaption><p>Delete Configuration BE</p></figcaption></figure>

Wait until the process is complete, and a notification will appear “**Frontend configuration has successfully deleted!**”

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/13slb/13.35%20del-conf-befe-f.png" alt=""><figcaption><p>Success Delete Configuration BE</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.id/deka_flexi/deka-slb/configuration-deka-slb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
