From 87613e7366a35a3c4e6f15a71a2963158c6db9b0 Mon Sep 17 00:00:00 2001 From: Chris Gillum Date: Mon, 23 Oct 2023 20:03:09 -0700 Subject: [PATCH] Workflow configuration Signed-off-by: Chris Gillum --- .../configuration/configuration-overview.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/daprdocs/content/en/operations/configuration/configuration-overview.md b/daprdocs/content/en/operations/configuration/configuration-overview.md index f900beed05c..a5a71c56513 100644 --- a/daprdocs/content/en/operations/configuration/configuration-overview.md +++ b/daprdocs/content/en/operations/configuration/configuration-overview.md @@ -50,6 +50,7 @@ The following configuration settings can be applied to Dapr application sidecars - [Metrics](#metrics) - [Logging](#logging) - [Middleware](#middleware) +- [Workflow](#workflow) - [Scope secret store access](#scope-secret-store-access) - [Access Control allow lists for building block APIs](#access-control-allow-lists-for-building-block-apis) - [Access Control allow lists for service invocation API](#access-control-allow-lists-for-service-invocation-api) @@ -183,6 +184,29 @@ The following table lists the properties for HTTP handlers: See [Middleware pipelines]({{< ref "middleware.md" >}}) for more information +#### Workflow + +The workflow section can be used to configure how Dapr workflows work in the Dapr Runtime. + +The `workflow` section under the `Configuration` spec contains the following properties: + +```yml +workflow: + maxConcurrentWorkflows: 100 + maxConcurrentActivities: 100 +``` + +The following table lists the properties for workflow: + +| Property | Type | Description | +|--------------|--------|-------------| +| `maxConcurrentWorkflows` | integer | The maximum number of concurrent workflow functions that can be invoked concurrently at any given time per sidecar. Default: `100`. | +| `maxConcurrentActivities` | integer | The maximum number of concurrent activity functions that can be invoked concurrently at any given time per sidecar. Default: `100`. | + +{{% alert title="Note" color="primary" %}} +The `maxConcurrentWorkflows` and `maxConcurrentActivities` properties are used to control concurrent function invocation. They do not control the number of workflow instances that can be created, nor do they limit the number of workflow instances that can be in a running state at any given time. They also cannot be used to limit specific workflow or activity functions. Rather, these settings are primarily intended for controlling overall thread and CPU usage in workflow applications. See [Workflow architecture]({{< ref "workflow-architecture.md" >}}) for more information about workflow execution. +{{% /alert %}} + #### Scope secret store access See the [Scoping secrets]({{< ref "secret-scope.md" >}}) guide for information and examples on how to scope secrets to an application. @@ -267,6 +291,9 @@ spec: - name: /op2/* httpVerb: ["*"] action: allow + workflow: + maxConcurrentWorkflows: 100 + maxConcurrentActivities: 100 ``` ## Control plane configuration