Automate Cloud Scaling for Grid Engine
Create rules to automatically scale-up and scale-down deployment of nodes on the cloud. Use node configuration to customize a node associated with a Grid Engine cluster.
- Login to NavOps.
- Click Automations.
- Click Add Automation.
- Provide a name for the automation.
- Enter a description for the automation.
- Select a Grid Engine cluster.
-
In the IF condition menu :
- select graphql to filter job for dynamic scale-up automations..
- select none to trigger actions without conditions. For example, if you want to set a rule to scale-up instances at 8 AM.
- select node-filter to filter on the state of the node in the inventory. For example, used to scale-down instances once they are idle.
-
For Jobs data driven scaling, in the If form field,
enter a GraphQL statement to filter a set of PBS Pro jobs.
Tip: Click (?) get more information about the supported schema. Here is an example to filter Queued Jobs Filter:
orderBy: J_PRIORITY_DESC, filter: {states: [ 0 ], withSubJobs: true}
- The 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. For example, * * * * * will run the automation every minute and is the recommended default.
-
In the Then select Job Data Driven
Scaling and define the 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 a Grid Engine 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 with
age-exec service idle.
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 Scale down (AGE).
-
Click Save.
The new automation is displayed in the automations table.
- Enable the Automation Engine and enable the automation.