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.
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.
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1957 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.
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1957 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.
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1957 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.
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1957 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 |