From 8f38c4695bd20838fc6036e0c75046856bb0126a Mon Sep 17 00:00:00 2001 From: Bernd Verst Date: Wed, 19 May 2021 17:01:14 -0700 Subject: [PATCH] Adds Actor Runtime Configuration and Defaults Addresses #1470 --- .../building-blocks/actors/howto-actors.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/daprdocs/content/en/developing-applications/building-blocks/actors/howto-actors.md b/daprdocs/content/en/developing-applications/building-blocks/actors/howto-actors.md index fe459cd013e..37d9c1eb44c 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/actors/howto-actors.md +++ b/daprdocs/content/en/developing-applications/building-blocks/actors/howto-actors.md @@ -129,3 +129,16 @@ DELETE http://localhost:3500/v1.0/actors///reminders/ ``` Refer [api spec]({{< ref "actors_api.md#invoke-reminder" >}}) for more details. + +## Actor Runtime Configuration + +You can configure the Dapr Actors runtime configuration to modify the default runtime behavior. + +### Current defaults +- `actorIdleTimeout` The timeout before deactivating an idle actor. Checks for timeouts occur every `actorScanInterval` interval. **Default: 60 minutes** +- `actorScanInterval` The duration which specifies how often to scan for actors to deactivate idle actors. Actors that have been idle longer than actor_idle_timeout will be deactivated. **Default: 30 seconds** +- `drainOngoingCallTimeout` The duration when in the process of draining rebalanced actors. This specifies the timeout for the current active actor method to finish. If there is no current actor method call, this is ignored. **Default: 60 seconds** +- `drainRebalancedActors` If true, Dapr will wait for `drainOngoingCallTimeout` duration to allow a current actor call to complete before trying to deactivate an actor. **Default: true** +- `reentrancy (ActorReentrancyConfig)` Configure the reentrancy behavior for an actor. If not provided, reentrancy is diabled. **Default: disabled** + +Refer to the [Dapr SDKs](../../sdks/#sdk-languages) for more details.