go-sdk icon indicating copy to clipboard operation
go-sdk copied to clipboard

Add Support for Per Actor Type Configuration

Open halspang opened this issue 2 years ago • 2 comments

Describe the proposal

The Dapr Runtime added support for per actor type configurations in 1.7. This support needs to be added to the SDKs.

The new configuration looks like:

{
  "entities":["actorType1", "actorType2"],
  "actorIdleTimeout": "1h",
  "actorScanInterval": "30s",
  "drainOngoingCallTimeout": "30s",
  "drainRebalancedActors": true,
  "reentrancy": {
    "enabled": true,
    "maxStackDepth": 32
  },
  "entitiesConfig": [
      {
          "entities": ["actorType1"],
          "actorIdleTimeout": "1m",
          "drainOngoingCallTimeout": "10s",
          "reentrancy": {
              "enabled": false
          }
      }
  ]
}

Implementation can be varied per SDK but should output to the above JSON.

Docs: https://github.com/dapr/docs/pull/2334 Runtime: https://github.com/dapr/dapr/pull/4201

halspang avatar Apr 07 '22 16:04 halspang

@halspang - Is the example missing a RemindersStoragePartition key?

mikeee avatar Aug 23 '23 10:08 mikeee

Yes, the example doesn't have that in it but it is a valid part of the configuration.

halspang avatar Aug 23 '23 16:08 halspang