A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.hashicorp.com/nomad/api-docs/operator/scheduler below:

Scheduler - Operator - HTTP API | Nomad

Scheduler Operator HTTP API

The /operator/scheduler endpoints provide tools for management of Nomad server scheduler settings.

This endpoint retrieves the latest Scheduler configuration. More options may be added in the future.

Method Path Produces GET /v1/operator/scheduler/configuration application/json

The table below shows this endpoint's support for blocking queries and required ACLs.

Blocking Queries ACL Required NO operator:read Sample Request
$ curl \
    https://localhost:4646/v1/operator/scheduler/configuration
Sample Response
{
  "Index": 5,
  "KnownLeader": true,
  "LastContact": 0,
  "NextToken": "",
  "SchedulerConfig": {
    "CreateIndex": 5,
    "MemoryOversubscriptionEnabled": false,
    "ModifyIndex": 5,
    "PauseEvalBroker": false,
    "PreemptionConfig": {
      "BatchSchedulerEnabled": false,
      "ServiceSchedulerEnabled": false,
      "SysBatchSchedulerEnabled": false,
      "SystemSchedulerEnabled": true
    },
    "RejectJobRegistration": false,
    "SchedulerAlgorithm": "binpack"
  }
}
Field Reference

This endpoint updates the scheduler configuration of the cluster.

Method Path Produces PUT, POST /v1/operator/scheduler/configuration application/json

The table below shows this endpoint's support for blocking queries and required ACLs.

Blocking Queries ACL Required NO operator:write Bootstrap Configuration Element

The default_scheduler_config attribute of the server block will provide a starting value for this configuration. Once bootstrapped, the value in the server state is authoritative.

Parameters Sample Payload
{
  "SchedulerAlgorithm": "spread",
  "MemoryOversubscriptionEnabled": false,
  "RejectJobRegistration": false,
  "PauseEvalBroker": false,
  "PreemptionConfig": {
    "SystemSchedulerEnabled": true,
    "SysBatchSchedulerEnabled": false,
    "BatchSchedulerEnabled": false,
    "ServiceSchedulerEnabled": true
  }
}
Sample Response
{
  "Updated": false,
  "Index": 15
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4