NetScaler ADC lab 4 of 13
Monitors and the sorry page
Watch the default TCP monitor miss a crashed application, replace it with an HTTP health check, stop a server outright, and add a backup virtual server with a sorry page for a total outage.
Run this lab
It needs Lite: its 4 nodes are set to 5 vCPU and 5,120 MB in total. It is ready about 5 minutes after you start it. It starts already set up, with nothing to paste before the first task. It fits the free demo too.
In your workspace: Shared, then Load balancing and ADC on NetScaler guided labs, then 04 - Monitors and the sorry page
Try it free for 30 minutesRun it on Lite from £3 a day
- About 5 min to be ready
- About 45 min of tasks
- The free demo’s 30 min cover the start and about 25 min of the tasks
- Level
- Beginner
- How you work
- GUI-led
- Nodes need
- 5 vCPU, 5,120 MB
- Smallest plan
- Lite
The scenario
Last Friday WEB2's shop application crashed while its web server kept running. NS1 went on sending every other customer to a page that said 500 Application error for an hour, because it only checked that port 80 answered. Make NS1 check the application itself, see exactly what happens when a server dies, and give customers a friendly page if both servers are ever down.
| Device | Interface | Address | Role |
|---|---|---|---|
| NS1 (NetScaler VPX 14.1) | 0/1 (CLIENT) | 10.10.10.10/24 (NSIP) | management address: GUI, SSH, NITRO API |
| NS1 | 1/1 (SERVERS) | 10.10.20.10/24 (SNIP) | the address NS1 uses to talk to the servers |
| NS1 | (virtual) | 10.10.10.100 | virtual server (VIP) the users connect to |
| DESKTOP | eth0 | 10.10.10.50/24 | your workstation: Firefox, terminal, ssh, curl |
| WEB1 | eth0 | 10.10.20.21/24 | web server; also the "sorry" site on port 8081 |
| WEB2 | eth0 | 10.10.20.22/24 | web server |
NS1 starts with the shop on vs-shop (10.10.10.100:80) using the service group sg-shop (web1:80, web2:80), round robin, and no monitor of its own.
Each web server has a health page, /health, that says OK WEB1 (or WEB2). To break a server's application, open that server's console (a Linux desktop) and in a terminal run touch /tmp/down-WEB2 (or -WEB1). From then on its health page answers 503 and every shop page answers 500 Application error. rm /tmp/down-WEB2 mends it. Restarting a web server node also mends it.
Skills: default monitors, HTTP monitors, monitor timing, service states and their reasons, backup virtual servers.
What you’ll practise
- Explain what tcp-default proves and what it misses
- Build and bind an HTTP monitor and read a member's failure reason
- Tune interval, timeout and retries to how fast a failure must be seen
- Add a non-addressable backup virtual server as a sorry page
The tasks
- Start the lab
- Task 1: See what the default monitor misses
- Task 2: An HTTP monitor that asks the application
- Task 3: A server that disappears
- Task 4: A sorry page for when everything is down
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- NS1
0/1to CLIENT (network) - DESKTOP
eth0to CLIENT (network) - NS1
1/1to SERVERS (network) - WEB1
eth0to SERVERS (network) - WEB2
eth0to SERVERS (network)
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| NS1 | Citrix NetScaler ADC VPX | nsvpx-14.1-38.53 | 2 vCPU, 2,048 MB |
| DESKTOP | CloudLabBox desktop (Docker) | CloudLabBox’s own desktop image | 1 vCPU, 1,024 MB |
| WEB1 | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
| WEB2 | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Load balancing and ADC on NetScaler guided labs.Open
04 - Monitors and the sorry pageand start its nodes, then open Lab Tasks for the scenario and the steps.For a device’s web interface, work from the lab’s desktop,
DESKTOP: open its console and maximise the window.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More NetScaler ADC labs
CloudLabBox is independent of NetScaler, Cloud Software Group, Citrix and F5. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.