Coordinator ddata state store with persistent remember entities (#29043)
* WIP * Test and config update * Multi-jvm tests updated to cover ddata state + persistent remember entities
This commit is contained in:
parent
bc2671757f
commit
6f8f44b3df
17 changed files with 158 additions and 49 deletions
|
|
@ -20,7 +20,24 @@ object ClusterShardingSettings {
|
|||
|
||||
val StateStoreModePersistence = "persistence"
|
||||
val StateStoreModeDData = "ddata"
|
||||
val StateStoreModeCustom = "custom"
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
@InternalApi
|
||||
private[akka] val RememberEntitiesStoreCustom = "custom"
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
@InternalApi
|
||||
private[akka] val RememberEntitiesStoreDData = "ddata"
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
@InternalApi
|
||||
private[akka] val RememberEntitiesStoreEventsourced = "eventsourced"
|
||||
|
||||
/**
|
||||
* Create settings from the default configuration
|
||||
|
|
@ -301,9 +318,9 @@ final class ClusterShardingSettings(
|
|||
tuningParameters,
|
||||
coordinatorSingletonSettings)
|
||||
|
||||
import ClusterShardingSettings.{ StateStoreModeCustom, StateStoreModeDData, StateStoreModePersistence }
|
||||
import ClusterShardingSettings.{ RememberEntitiesStoreCustom, StateStoreModeDData, StateStoreModePersistence }
|
||||
require(
|
||||
stateStoreMode == StateStoreModePersistence || stateStoreMode == StateStoreModeDData || stateStoreMode == StateStoreModeCustom,
|
||||
stateStoreMode == StateStoreModePersistence || stateStoreMode == StateStoreModeDData || stateStoreMode == RememberEntitiesStoreCustom,
|
||||
s"Unknown 'state-store-mode' [$stateStoreMode], valid values are '$StateStoreModeDData' or '$StateStoreModePersistence'")
|
||||
|
||||
/** If true, this node should run the shard region, otherwise just a shard proxy should started on this node. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue