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
- Click on Cluster Configuration then Layer7 – Virtual Services
- 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.
-
Enter your VIP address under the IP Address
-
Enter 8443 for the Port.
-
Change layer7 Protocol to TCPMode.
-
Click Update to save._
Create Real Server List
Instructions
-
Click Layer 7 – Real Servers on the left handside
-
Click Add a new Real Server on the right.
Instructions
-
Enter the hostname of your node1 server in the label
-
Enter the IP address of your node1
-
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
-
Continue to add 4 more nodes by clicking on 'Add a new Real Server'
-
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
- Click on Duplicate Service
- Click OK on the popup window
A new service will be created with a new label (cmc-1)
Instructions
-
Change the label to the new service name http
-
Change all the remaining fields as per the image above
-
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
- Click on the Duplicate Service button
- Click OK on the popup that appears
- Change the label to https
- Change the highlighted fields on the image above
- 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
- Click on the Duplicate Service button
- Click OK on the popup that appears.
- Change the label to admin and change the highlighted fields indicated by the image above.
- 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
- Click on the Duplicate Service button
- Click OK on the popup that appears.
- Change the label to iam-http and then the highlighted fields on the image above.
- 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
- Click on the Duplicate Service button
- Click OK on the popup that appears.
- Change the label to iam-https and then the highlighted fields on the image above.
- 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
- Change Health Checks to HTTPS(OPTIONS)
- 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
- Click "Advanced+" on the "Other" Column to expand the options
- Tick Timeout to enable timeout fields
- Set Client Timeout to 180000
- Set Real Server Timeout to 181000
- Click on Update
Reload HAPROXY
Instructions
- Click Reload HAProxy
Check Service Status
Instructions
- Click on System Overview
- Now click the port number in each of the bars displayed
Info
- Check your Services
- 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
- Click on Cluster Configuration then High Availability Configuration
- In the IP address of new peer field, enter the IP address of your Secondary Hyperbalance as detailed in your Student Assignment Sheet.
- In the Password for loadbalancer user on peer field, enter the password provided by your instructor
- Click the Add new node button
Instructions
Reload HAProxy to commit the changes to the Primary HyperBalance
Instructions
Restart Heartbeat on the Primary HyperBalance to complete the cluster configuration. You may also wish to log on to your secondary HyperBalance to view the HA status
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