Automate Cloud Scaling for Accelerator
Create rules to automatically scale-up and scale-down deployment of nodes on the cloud.
- Login to NavOps.
- Click Automations.
- Click Add Automation .
- Provide a name for the automation.
- Enter a description for the automation.
- Select an Accelerator cluster.
-
In the IF condition menu :
- select jq to filter job workoad.
- select node-filter to filter on the state of the node in the inventory.
- select none to trigger actions without conditions.
-
For Rapid scaling, in the If form field, enter a jq
statement to filter a set of Accelerator jobs.
Tip: Click (?) get more information about the supported schema. The Jq editor supports a powerful and extensible schema to create complex rules. Use autocompletion for quick and precise editing. Here is an example of a serial rule where all conditions must be passed for a job to be processed by the rule:
select(.memory > 512) | select(.cpus = 1) | select(.memory <= 1024)
- The Trigger type is defined as receive.
-
In the Then menu, select Rapid scaling and define the
Rapid Scaling parameters:
-
Click Save.
The new automation is displayed in the automations table.
- Enable the Automation Engine and enable the automation.
Create Scale Down Automations
- Login to NavOps.
- Click Automation.
- Click Add Automation.
- Provide a name for the automation.
- Enter a description for the automation.
- Select an Accelerator cluster.
- In the IF condition menu select node-filter.
-
In the Query field, click (
) to open the advanced condition editor.
-
Select a template to configure a condition. For example, Remove nodes when
tasker service is stopped.
The configuration fields are populated based on the template. You can modify them as per your requirements. The generated query is displayed.
- Click Save.
- Trigger type is defined as calender.
- In the When section, select the values from the drop down menus to build the required cron expression displayed in the textbox form field below the menus. You can also enter valid chron expression directly in the textbox form field.
- In the Then menu, select simple-scale-down.
-
Click Save.
The new automation is displayed in the automations table.
- Enable the Automation Engine and enable the automation.