Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Scheduling

import type { Scheduling } from "https://googleapis.deno.dev/v1/compute:v1.ts";

Sets the scheduling options for an Instance.

interface Scheduling {
automaticRestart?: boolean;
availabilityDomain?: number;
hostErrorTimeoutSeconds?: number;
instanceTerminationAction?: "DELETE" | "INSTANCE_TERMINATION_ACTION_UNSPECIFIED" | "STOP";
localSsdRecoveryTimeout?: Duration;
locationHint?: string;
maxRunDuration?: Duration;
minNodeCpus?: number;
nodeAffinities?: SchedulingNodeAffinity[];
onHostMaintenance?: "MIGRATE" | "TERMINATE";
onInstanceStopAction?: SchedulingOnInstanceStopAction;
preemptible?: boolean;
provisioningModel?: "RESERVATION_BOUND" | "SPOT" | "STANDARD";
terminationTime?: string;
}

§Properties

§
automaticRestart?: boolean
[src]

Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.

§
availabilityDomain?: number
[src]

Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.

§
hostErrorTimeoutSeconds?: number
[src]

Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.

§
instanceTerminationAction?: "DELETE" | "INSTANCE_TERMINATION_ACTION_UNSPECIFIED" | "STOP"
[src]

Specifies the termination action for the instance.

§
localSsdRecoveryTimeout?: Duration
[src]

Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.

§
locationHint?: string
[src]

An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.

§
maxRunDuration?: Duration
[src]

Specifies the max run duration for the given instance. If specified, the instance termination action will be performed at the end of the run duration.

§
minNodeCpus?: number
[src]

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

§
nodeAffinities?: SchedulingNodeAffinity[]
[src]

A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.

§
onHostMaintenance?: "MIGRATE" | "TERMINATE"
[src]

Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.

§
preemptible?: boolean
[src]

Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states.

§
provisioningModel?: "RESERVATION_BOUND" | "SPOT" | "STANDARD"
[src]

Specifies the provisioning model of the instance.

§
terminationTime?: string
[src]

Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.