Reference documentation and code samples for the Cloud Composer V1 API class Google::Cloud::Orchestration::Airflow::Service::V1::WorkloadsConfig::WorkerResource.
Configuration for resources used by Airflow workers.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cpu
def cpu() -> ::Float
Returns
- (::Float) — Optional. CPU request and limit for a single Airflow worker replica.
#cpu=
def cpu=(value) -> ::Float
Parameter
- value (::Float) — Optional. CPU request and limit for a single Airflow worker replica.
Returns
- (::Float) — Optional. CPU request and limit for a single Airflow worker replica.
#max_count
def max_count() -> ::Integer
Returns
- (::Integer) — Optional. Maximum number of workers for autoscaling.
#max_count=
def max_count=(value) -> ::Integer
Parameter
- value (::Integer) — Optional. Maximum number of workers for autoscaling.
Returns
- (::Integer) — Optional. Maximum number of workers for autoscaling.
#memory_gb
def memory_gb() -> ::Float
Returns
- (::Float) — Optional. Memory (GB) request and limit for a single Airflow worker replica.
#memory_gb=
def memory_gb=(value) -> ::Float
Parameter
- value (::Float) — Optional. Memory (GB) request and limit for a single Airflow worker replica.
Returns
- (::Float) — Optional. Memory (GB) request and limit for a single Airflow worker replica.
#min_count
def min_count() -> ::Integer
Returns
- (::Integer) — Optional. Minimum number of workers for autoscaling.
#min_count=
def min_count=(value) -> ::Integer
Parameter
- value (::Integer) — Optional. Minimum number of workers for autoscaling.
Returns
- (::Integer) — Optional. Minimum number of workers for autoscaling.
#storage_gb
def storage_gb() -> ::Float
Returns
- (::Float) — Optional. Storage (GB) request and limit for a single Airflow worker replica.
#storage_gb=
def storage_gb=(value) -> ::Float
Parameter
- value (::Float) — Optional. Storage (GB) request and limit for a single Airflow worker replica.
Returns
- (::Float) — Optional. Storage (GB) request and limit for a single Airflow worker replica.