Skip to content

Commit

Permalink
replace deprecated Akka config "passivate-idle-entity-after" with "pa…
Browse files Browse the repository at this point in the history
…ssivation.strategy"

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Jan 25, 2022
1 parent b9b609b commit 1cce460
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions connectivity/service/src/main/resources/connectivity.conf
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,11 @@ akka {
# could not load initial entity ids from the "remember entities store" within this timeout. This is required
# since remember-entities is set to "on".
waiting-for-state-timeout = 10s
# don't passivate shards by default as Ditto AbstractShardedPersistenceActor decides that on its own - default is 120s:
passivate-idle-entity-after = "off"
passivation {
# don't passivate shards by default as Ditto AbstractShardedPersistenceActor decides that on its own -
# default is "default-idle-strategy" with "idle-entity.timeout = 120s":
strategy = "off"
}

# Timeout of waiting for update the distributed state (update will be retried if the timeout happened)
# Also used as timeout for writes of remember entities when that is enabled
Expand Down
7 changes: 5 additions & 2 deletions policies/service/src/main/resources/policies.conf
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ akka {
sharding {
role = ${ditto.service-name}

# don't passivate shards by default as Ditto AbstractShardedPersistenceActor decides that on its own - default is 120s:
passivate-idle-entity-after = "off"
passivation {
# don't passivate shards by default as Ditto AbstractShardedPersistenceActor decides that on its own -
# default is "default-idle-strategy" with "idle-entity.timeout = 120s":
strategy = "off"
}
}

roles = [
Expand Down
7 changes: 5 additions & 2 deletions things/service/src/main/resources/things.conf
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ akka {
sharding {
role = ${ditto.service-name}

# don't passivate shards by default as Ditto AbstractShardedPersistenceActor decides that on its own - default is 120s:
passivate-idle-entity-after = "off"
passivation {
# don't passivate shards by default as Ditto AbstractShardedPersistenceActor decides that on its own -
# default is "default-idle-strategy" with "idle-entity.timeout = 120s":
strategy = "off"
}
}

roles = [
Expand Down

0 comments on commit 1cce460

Please sign in to comment.