Class: Google::Cloud::VMMigration::V1::ComputeScheduling

Inherits:
Object
  • Object
show all
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

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.

Returns:

  • (::Integer)

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



1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1927

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.

Returns:



1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1927

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.

Returns:



1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1927

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.

Returns:

  • (::Google::Cloud::VMMigration::V1::ComputeScheduling::RestartType)

    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.



1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1927

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