UNPKG

@pulumi/nomad

Version:

A Pulumi package for creating and managing nomad cloud resources.

51 lines (50 loc) 1.6 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieve the cluster's [scheduler configuration](https://www.nomadproject.io/api-docs/operator#sample-response-3). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const global = nomad.getSchedulerPolicy({}); * ``` */ export declare function getSchedulerPolicy(opts?: pulumi.InvokeOptions): Promise<GetSchedulerPolicyResult>; /** * A collection of values returned by getSchedulerPolicy. */ export interface GetSchedulerPolicyResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * `(bool: false)` - When `true`, tasks may exceed their reserved memory limit. */ readonly memoryOversubscriptionEnabled: boolean; /** * `(map[string]bool)` - Options to enable preemption for various schedulers. */ readonly preemptionConfig: { [key: string]: boolean; }; /** * `(string)` - Specifies whether scheduler binpacks or spreads allocations on available nodes. */ readonly schedulerAlgorithm: string; } /** * Retrieve the cluster's [scheduler configuration](https://www.nomadproject.io/api-docs/operator#sample-response-3). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const global = nomad.getSchedulerPolicy({}); * ``` */ export declare function getSchedulerPolicyOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSchedulerPolicyResult>;