Scheduler Policies

A scheduler policies is a setting that will select or exclude the creation of servers on hosts bound to a certain type of scheduler tag based on preference when the specified conditions are met.

A scheduler policies is a policy that sets the preference to select or exclude the creation of servers on hosts bound to a certain type of scheduler tag when the specified conditions are met. The preferences in the scheduler policies will override the default preferences in the scheduler tag. The scheduler policies will affect the final scheduling result.

There are four types of preferences in the scheduler policies.

  • Prefer: Scheduling prefers to use hosts with this scheduler tag. If there is no host with this scheduler tag, it is also acceptable.
  • Avoid: Avoid hosts with this scheduler tag when scheduling, but accept hosts with this scheduler tag if they are available.
  • Exclude: Hosts with this scheduler tag must be excluded from scheduling.
  • Require: Hosts with this scheduler tag must be used for scheduling.

Entry: In the cloud management platform click on the top left corner of navigation menu, and in the left menu bar that pops up, click “Compute/Scheduling/Scheduler Policies” menu item to enter the Scheduler Policies page.

Create scheduler policy

This function is used to create a scheduler policies. When a server is created and the conditions in the scheduler policies are met, the server will be created on the host with the scheduler tag according to the preferences selected or excluded in the scheduler policies.

  1. On the Scheduler Policies page, click the “Create” button at the top of the list to bring up the Create Scheduler Policies dialog box.
    • Name: Set the name of the scheduler policies.
    • Preferences: Prefer, avoid, exclude, and require.
      • Prefer: Prefer hosts with this scheduler tag when scheduling. If there is no host with this dispatch tag, it is also acceptable.
      • Avoid: Avoid hosts with this scheduler tag when scheduling, but accept hosts with this scheduler tag if available.
      • Exclude: Hosts with this scheduler tag must be excluded from scheduling.
      • Require: Hosts with this scheduler tag must be used for scheduling.
    • Conditions: Currently, only set items are supported. That is, when a server is created in an item in the condition, the hosts that meet the condition are filtered according to the scheduler policies.
  2. Click the “OK” button.

Enable Scheduler Policies

This function is used to enable the scheduler policies in the “disabled” state.

On the Scheduler Policies page, click the “Enable” button in the Scheduler Policies column of the “Disabled” status to disable the scheduler policies.

Disable the scheduler policies

This function is used to disable the scheduler policies in the “Enabled” state.

On the Scheduler Policies page, click the “Disable” button in the Scheduler Policies action column of the “Enable” status to enable the scheduler policies.

Adjust Policy

This function is used to modify the scheduler policies.

  1. On the Scheduler Policies page, click the “More” button in the Scheduler Policies column, and select the “Modify” menu item to bring up the Modify dialog box.
  2. Set preferences, select the scheduling tab, set conditions, and click the “OK” button.

Delete scheduler policies

This function is used to delete a scheduler policies, and supports individual deletion or batch deletion.

Delete

  1. On the scheduler policies page, click the “More” button in the scheduler policies operation column, and select the “Delete” menu item in the drop-down menu to bring up the operation confirmation dialog box.
  2. Click the “OK” button to complete the operation.

Batch Delete

  1. Select one or more scheduler policies in the scheduler policies list, click the “Delete” button at the top of the page, and the operation confirmation dialog box pops up.
  2. Click the “OK” button to complete the operation.

View scheduler policies details

This function is used to view the scheduling tab details.

  1. On the scheduler policies page, click the scheduler policies name item to enter the scheduler policies details page.
  2. View the Cloud ID, ID, name, status, domain, item, enabled status, resource type, tag (scheduler tag), preference, condition, created at, updated at, and comment of the scheduler policies.

View operation log

This function is used to view the log information of the operations related to the scheduler policies.

  1. On the Scheduler Policies page, click the Scheduler Policies Name item to enter the Scheduler Policies Details page.
  2. Click the Operation log tab to enter the Operation log page.
    • Load more logs: In the operation log page, the list shows 20 operation logs by default. To view more operation logs, click the “Load more” button to get more logs.
    • View Log Details: Click the “View” button on the right column of the operation log to view the log details. Copy details are supported.
    • View logs of specified time period: If you want to view the operation logs of a certain time period, set the specific date in the start date and end date at the top right of the list to query the log information of the specified time period.
    • Export logs: Currently, only the logs displayed on this page are supported to be exported. Click the upper-right corner of icon, set the export data column in the pop-up export data dialog, and click the “OK” button to export the logs.