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

Add Support for Per Actor Type Configuration

Open halspang opened this issue 3 years ago • 1 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

/assign

skyao avatar Apr 20 '22 03:04 skyao

/assign

MregXN avatar Aug 22 '23 15:08 MregXN

Fixed in https://github.com/dapr/java-sdk/pull/914

artursouza avatar Oct 03 '23 16:10 artursouza

/assign

cicoyle avatar Oct 06 '23 17:10 cicoyle