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

ComputeScheduling

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

Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.

interface ComputeScheduling {
minNodeCpus?: number;
nodeAffinities?: SchedulingNodeAffinity[];
onHostMaintenance?: "ON_HOST_MAINTENANCE_UNSPECIFIED" | "TERMINATE" | "MIGRATE";
restartType?: "RESTART_TYPE_UNSPECIFIED" | "AUTOMATIC_RESTART" | "NO_AUTOMATIC_RESTART";
}

§Properties

§
minNodeCpus?: number
[src]

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.

§
nodeAffinities?: SchedulingNodeAffinity[]
[src]

A set of node affinity and anti-affinity configurations for sole tenant nodes.

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

How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.

§
restartType?: "RESTART_TYPE_UNSPECIFIED" | "AUTOMATIC_RESTART" | "NO_AUTOMATIC_RESTART"
[src]

Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to automaticRestart field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.