L7 monitor
The L7 Monitor template sets up a frontend monitor - a lightweight frontend whose only job is to report on an existing Layer 7 service rather than to load balance traffic of its own.
The template has a prerequisite: at least one Layer 7 service in HTTP mode must already exist. Until one does, L7 Monitor is greyed out on the Add service page and cannot be selected. Once a suitable service exists the template becomes available and the panel on the right describes it as "This sets up a frontend monitor. In order to use this template you need to have a service in HTTP mode", with a Mode badge of HTTP.
To add a frontend monitor:
-
Using the WebUI, navigate to Services and click Add service.
-
Select the L7 Monitor template, then click Add L7 Monitor Service.
-
Complete the General sub-step:
Field Description Name
A name for the monitor, e.g. Web-Cluster-Monitor. This field is required.
Port
The port the monitor listens on. The field is pre-filled with 80 - change it if the monitor should listen elsewhere, for example where the Floating IP is already serving a Layer 7 service on port 80. This field is required.
Rule(s)
The condition the monitor reports on. Each rule selects a Backend, a comparison under has - Less than, Less than or equals, Greater than or equals or Greater than - and a Min real servers value, so that the rule compares the number of Real Servers currently available in that backend against the value given. Click Add another to add a further rule, or Delete to remove one.
Monitor URI
The URI the monitor responds on, e.g.
/monitor. This field is required. -
Complete the Floating IP sub-step, then submit the monitor.
The Floating IP sub-step behaves exactly as the Layer 7 frontend’s Floating IP step: select an existing Floating IP, or create one with Add floating IP.