Create new scripts – Allied Telesis Routers and Switches User Manual

Page 12

Advertising
background image

Configure Load Balancer Redundancy on Allied Telesis Routers and Switches

12

Create New Scripts

This section describes the scripts that the trigger facility runs when the preferred SFTP
server goes down or comes back up again. The scripts enable and disable the second
resource. Load the same scripts onto both load balancer 1 and load balancer 2.

The load balancers send pings every 60 seconds to check the health of each resource.
Therefore, the load balancer can take up to 60 seconds to detect that the server has gone
down or come up again.

# Enable resource 2 because resource 1 is Closing.

enable lb resource=sftp2

# Disable resource 2 because resource 1 is Up.

disable lb resource=sftp2 immediately

!

Script for when the preferred server goes down: sftp1down.scp

!

Script for when the preferred server comes back up: sftp1up.scp

Advertising