Graphic: Chapter Call Distribution Based on CPU Load with Load Reporting for anynode TechNote Request Router

Add Module Based Condition

For Load Reporting, you must first create two conditions that will be set to "true" when the CPU on the anynode target system exceeds a predefined threshold.

On the anynode target system, navigate to Conditions in the left menu.

Click Add Condition.

Screenshot: anynode – The Software SBC frontend showing main menu with add condition function. Screenshot: anynode – The Software SBC frontend showing main menu with add condition function.
anynode – The Software SBC frontend showing main menu with add condition function.

In this case, you do not need to change the settings for the top operator, as you are only adding a single rule. The default value is AND, which means that all individual condition rules must be met.

Click Add to include a new rule within the condition.

Screenshot: anynode – The Software SBC frontend showing condition assistant. Screenshot: anynode – The Software SBC frontend showing condition assistant.
Screenshot: anynode – The Software SBC frontend showing condition assistant.

Next, we add the first operand.The default value is Object-Based Status Value, which describes the status of currently configured objects, such as the number of node sessions. In our example, however, we want to use a global system value, specifically CPU load. Therefore, select the second option, Module-Based Status Value.

Click Next.

Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and first operand type. Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and first operand type.
anynode – The Software SBC frontend showing condition assistant with add rule function and first operand type.

For Module, select Resource Access, File Upload and Download. Since we want to monitor the CPU load, choose CPU Load for Status Value.

The Fallback Value is used when the system cannot determine the value. You need to provide a fallback value in this case. For the Resource Access, File Upload and Download module, let’s use an example: To create a condition for CPU load greater than or equal to 70%, you would set the fallback value to 80% to ensure that the condition is met even if the system cannot determine the actual value.

The condition rule is always a mathematical inequality or equation, depending on the operator set in the middle, with module, status value, and fallback value on one side and a constant value on the other.

Click Next.

Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and first operand type. Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and first operand type.
anynode – The Software SBC frontend showing condition assistant with add rule function and first operand.

For Comparison Operators for Integer Values, select the ≥ symbol.

Click Next.

Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and comparison operator. Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and comparison operator.
anynode – The Software SBC frontend showing condition assistant with add rule function and comparison operator.

On the other side, set the operand type to Constant Value.

For the second operand type, select Constant Value.

Click Next.

Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and second operand type. Screenshot: anynode – The Software SBC frontend showing condition assistant with add rule function and second operand type.
anynode – The Software SBC frontend showing condition assistant with add rule function and second operand type.

Enter 70 for the Constant Value.

Click Finish to complete the assistant.

Screenshot: anynode – The Software SBC frontend showing condition assistant with second operand. Screenshot: anynode – The Software SBC frontend showing condition assistant with second operand.
anynode – The Software SBC frontend showing condition assistant with second operand.

You will now see an overview of the entered condition rule.

Click Next.

Screenshot: anynode – The Software SBC frontend showing added condition rule set. Screenshot: anynode – The Software SBC frontend showing added condition rule set.
anynode – The Software SBC frontend showing added condition rule set.

Enter CPU High as the Name for the newly created condition to easily identify it later.

Click Finish to complete the assistant.

Screenshot: anynode – The Software SBC frontend showing added condition rule set and name setting. Screenshot: anynode – The Software SBC frontend showing added condition rule set and name setting.
anynode – The Software SBC frontend showing added condition rule set and name setting.

You will now see an overview of your rules entered. Here is a summary: The condition is met if the CPU load is greater than or equal to 70%. If the value cannot be determined, a load of 80% is assumed, and the condition will still be considered met.

Screenshot: anynode – The Software SBC frontend showing added condition rule set and condition rule set overview. Screenshot: anynode – The Software SBC frontend showing added condition rule set and condition rule set overview.
anynode – The Software SBC frontend showing added condition rule set and condition rule set overview.

As described earlier, click Add Condition in the top menu to add a condition for medium CPU load.

Repeat all the previous steps.

Name the condition CPU Medium and entering 40% for Constant Value and 50% for Fallback Value.

anynode – The Software SBC frontend showing main menu with add condition function. (Previous Steps)

Screenshot: anynode – The Software SBC frontend showing added condition rule set and condition rule set overview. Screenshot: anynode – The Software SBC frontend showing added condition rule set and condition rule set overview.
anynode – The Software SBC frontend showing added condition rule set and condition rule set overview.

Don't forget to finalize your entries by clicking Commit.