Skip to content

img0

HyperBalance Setup

Navigate the Primary url provided for your HyperBalance from your Student Assignments Sheets.

Instructions

Login to your Primary HyperBalance using User: loadbalancer and the password provided by your trainer


You should be presented with a dashboard as above.


Create New Virtual Service

Instructions

  1. Click on Cluster Configuration then Layer7 – Virtual Services
  2. Click Add a new Virtual Service on the right handside.

Warning

There are both Layer 4 and Layer 7 options under cluster configuration.
Make sure you are working with Layer 7 not Layer 4.


Set Service Details

Instructions

Enter something meaningful for the service label.

  1. Enter your VIP address under the IP Address

  2. Enter 8443 for the Port.

  3. Change layer7 Protocol to TCPMode.

  4. Click Update to save._


Create Real Server List

Instructions

  1. Click Layer 7 – Real Servers on the left handside

  2. Click Add a new Real Server on the right.


Instructions

  1. Enter the hostname of your node1 server in the label

  2. Enter the IP address of your node1

  3. Leave everything else as-is and Click Update

Warning

Do not enter anything in the Real Server Port
We will be duplicating this service for our other services
If you leave this blank, the Real Server Port will default to the Port of the Virtual Service


Instructions

  1. Continue to add 4 more nodes by clicking on 'Add a new Real Server'

  2. Ensure you have 5 total nodes with desired hostname / IP address as shown above


Create Service (HTTP)

To create additional Services, we can duplicate the service we just created and modify instead of creating from scratch.

Instruction

Click on Modify


Instructions

  1. Click on Duplicate Service
  2. Click OK on the popup window

A new service will be created with a new label (cmc-1)

Instructions

  1. Change the label to the new service name http

  2. Change all the remaining fields as per the image above

  3. Ensure you click the Update button when finished

Warning

Pay attention to the Health Checks and Request to send
it is HTTP not HTTPS
it is also /. not ./ , also notice the uppercase C in healthCheck


Create Service (HTTPS)

We will now do the same for the HTTPS service, this time we will duplicate the HTTP service.

Instruction

Click on Modify next to HTTP service


Instructions

  1. Click on the Duplicate Service button
  2. Click OK on the popup that appears
  3. Change the label to https
  4. Change the highlighted fields on the image above
  5. Click Update to save

Warning

Pay attention to Health Checks dropdown
it is HTTPS not HTTP


Create Service (ADMIN)

We will now do the same for ADMIN service, this time we will duplicate the HTTPS service.

Instructions

click on Modify next to HTTPS service


Instructions

  1. Click on the Duplicate Service button
  2. Click OK on the popup that appears.
  3. Change the label to admin and change the highlighted fields indicated by the image above.
  4. Click Update to Save

Create Service (IAM-HTTP)

We will now do the same for IAM-HTTP service, this time we will duplicate the HTTP service.

Instructions

Click on Modify next to HTTP service


Instructions

  1. Click on the Duplicate Service button
  2. Click OK on the popup that appears.
  3. Change the label to iam-http and then the highlighted fields on the image above.
  4. Click Update to Save

Create Service (IAM-HTTPS)

We will now do the same for IAM-HTTPS service, this time we will duplicate the HTTPS service.

Instructions

Click on Modify next to HTTPS service


Instructions

  1. Click on the Duplicate Service button
  2. Click OK on the popup that appears.
  3. Change the label to iam-https and then the highlighted fields on the image above.
  4. Click Update to Save

Modify CMC Service

This time we need to actually modify the CMC service rather than use it as a template.

Instructions

Click Modify next to the CMC service


Instructions

  1. Change Health Checks to HTTPS(OPTIONS)
  2. Set Request to send to /Cloudian/login.htm

Scrolling down the screen gives us a view of all settings. we need to modify the client timeout and the real server timeout values to match best practice. These valuse prevent errors occuring during Hyperstore process with an extended duration.

Instructions

  1. Click "Advanced+" on the "Other" Column to expand the options
  2. Tick Timeout to enable timeout fields
  3. Set Client Timeout to 180000
  4. Set Real Server Timeout to 181000
  5. Click on Update

Reload HAPROXY

Instructions

  1. Click Reload HAProxy

Check Service Status

Instructions

  1. Click on System Overview
  2. Now click the port number in each of the bars displayed

Info

  1. Check your Services
  2. Each service should have node 1 to 4 as 'green' status with node 5 remaining as red

Create HA Pair

We will now create an HA pair. Please ensure you are on the primary Hyperbalance as creating a cluster from the secondary will overwrite the primary configuration.

Instructions

  1. Click on Cluster Configuration then High Availability Configuration
  2. In the IP address of new peer field, enter the IP address of your Secondary Hyperbalance as detailed in your Student Assignment Sheet.
  3. In the Password for loadbalancer user on peer field, enter the password provided by your instructor
  4. Click the Add new node button

Instructions

Reload HAProxy to commit the changes to the Primary HyperBalance


Instructions

Restart Heartbeat on both the Primary and Secondary HyperBalance to complete the cluster configuration


Info

If desired, you can change the passive HyperBalance node to be active. You can also swap the primary and secondary roles between the two HyperBalance nodes