Class: Google::Cloud::VMMigration::V1::ComputeScheduling
- Inherits:
-
Object
- Object
- Google::Cloud::VMMigration::V1::ComputeScheduling
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/vmmigration/v1/vmmigration.rb
Overview
Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. Options for instance behavior when the host machine undergoes maintenance that may temporarily impact instance performance.
Defined Under Namespace
Modules: OnHostMaintenance, RestartType
Instance Attribute Summary collapse
-
#min_node_cpus ⇒ ::Integer
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
-
#node_affinities ⇒ ::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>
A set of node affinity and anti-affinity configurations for sole tenant nodes.
-
#on_host_maintenance ⇒ ::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
-
#restart_type ⇒ ::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType
Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user).
Instance Attribute Details
#min_node_cpus ⇒ ::Integer
Returns The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 2496 class ComputeScheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module OnHostMaintenance # An unknown, unexpected behavior. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Terminate the instance when the host machine undergoes maintenance. TERMINATE = 1 # Migrate the instance when the host machine undergoes maintenance. MIGRATE = 2 end # Defines whether the Instance should be automatically restarted whenever # it is terminated by Compute Engine (not terminated by user). module RestartType # Unspecified behavior. This will use the default. RESTART_TYPE_UNSPECIFIED = 0 # The Instance should be automatically restarted whenever it is # terminated by Compute Engine. AUTOMATIC_RESTART = 1 # The Instance isn't automatically restarted whenever it is # terminated by Compute Engine. NO_AUTOMATIC_RESTART = 2 end end |
#node_affinities ⇒ ::Array<::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity>
Returns A set of node affinity and anti-affinity configurations for sole tenant nodes.
2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 2496 class ComputeScheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module OnHostMaintenance # An unknown, unexpected behavior. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Terminate the instance when the host machine undergoes maintenance. TERMINATE = 1 # Migrate the instance when the host machine undergoes maintenance. MIGRATE = 2 end # Defines whether the Instance should be automatically restarted whenever # it is terminated by Compute Engine (not terminated by user). module RestartType # Unspecified behavior. This will use the default. RESTART_TYPE_UNSPECIFIED = 0 # The Instance should be automatically restarted whenever it is # terminated by Compute Engine. AUTOMATIC_RESTART = 1 # The Instance isn't automatically restarted whenever it is # terminated by Compute Engine. NO_AUTOMATIC_RESTART = 2 end end |
#on_host_maintenance ⇒ ::Google::Cloud::VMMigration::V1::ComputeScheduling::OnHostMaintenance
Returns How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 2496 class ComputeScheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module OnHostMaintenance # An unknown, unexpected behavior. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Terminate the instance when the host machine undergoes maintenance. TERMINATE = 1 # Migrate the instance when the host machine undergoes maintenance. MIGRATE = 2 end # Defines whether the Instance should be automatically restarted whenever # it is terminated by Compute Engine (not terminated by user). module RestartType # Unspecified behavior. This will use the default. RESTART_TYPE_UNSPECIFIED = 0 # The Instance should be automatically restarted whenever it is # terminated by Compute Engine. AUTOMATIC_RESTART = 1 # The Instance isn't automatically restarted whenever it is # terminated by Compute Engine. NO_AUTOMATIC_RESTART = 2 end end |
#restart_type ⇒ ::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType
Returns 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.
2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 2496 class ComputeScheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods module OnHostMaintenance # An unknown, unexpected behavior. ON_HOST_MAINTENANCE_UNSPECIFIED = 0 # Terminate the instance when the host machine undergoes maintenance. TERMINATE = 1 # Migrate the instance when the host machine undergoes maintenance. MIGRATE = 2 end # Defines whether the Instance should be automatically restarted whenever # it is terminated by Compute Engine (not terminated by user). module RestartType # Unspecified behavior. This will use the default. RESTART_TYPE_UNSPECIFIED = 0 # The Instance should be automatically restarted whenever it is # terminated by Compute Engine. AUTOMATIC_RESTART = 1 # The Instance isn't automatically restarted whenever it is # terminated by Compute Engine. NO_AUTOMATIC_RESTART = 2 end end |