All Products
Search
Document Center

Alibaba Cloud Service Mesh:Description of ConcurrencySchedulingPolicy fields

Last Updated:Sep 04, 2024

The ConcurrencySchedulingPolicy CustomResourceDefinition (CRD) provided by the Service Mesh (ASM) traffic scheduling suite defines a policy that implements priority-based request scheduling while limiting concurrent requests. This topic describes the fields of ConcurrencySchedulingPolicy.

Overview

ConcurrencySchedulingPolicy defines a policy that implements priority-based request scheduling while limiting concurrent requests. It specifies the services on which the policy takes effect, the runtime fields of the concurrency limiter, and fields related to priority-based request scheduling.

ConcurrencySchedulingPolicySpec

ConcurrencySchedulingPolicySpec is the core configuration of ConcurrencySchedulingPolicy and corresponds to the spec field.

Field

Type

Required

Description

concurrency_scheduler

ConcurrencyScheduler

Yes

Specifies the configuration of limits on concurrent requests and priority-based request scheduling.

ConcurrencyScheduler

ConcurrencyScheduler specifies the configurations of fields related to the concurrency limiter and priority-based request scheduling.

Field

Type

Required

Description

max_concurrency

int64

Yes

The maximum number of concurrent requests.

concurrency_limiter

ConcurrencyLimiterParameters

Yes

The configuration of the currency limiter.

scheduler

Scheduler

Yes

The configuration of the scheduler that schedules requests based on their priorities when the number of concurrent requests exceeds the currency limits.

selectors

[]Selector

Yes

The selector used to select the specific requests on which the policy defined by ConcurrencySchedulingPolicy takes effect.