com.devsisters.shardcake
package com.devsisters.shardcake
Members list
Type members
Classlikes
object GraphQLApi extends GenericSchema[ShardManager]
Attributes
- Supertypes
-
trait GenericSchema[ShardManager]trait TemporalSchematrait SchemaDerivation[ShardManager]trait CommonSchemaDerivationclass Objecttrait Matchableclass AnyShow all
- Self type
-
GraphQLApi.type
case class ManagerConfig(numberOfShards: Int, apiPort: Int, rebalanceInterval: Duration, rebalanceRetryInterval: Duration, pingTimeout: Duration, persistRetryInterval: Duration, persistRetryCount: Int, rebalanceRate: Double)
Shard Manager configuration
Shard Manager configuration
Value parameters
- apiPort
-
port to expose the GraphQL API
- numberOfShards
-
number of shards (see documentation on how to choose this), should be same on all nodes
- persistRetryCount
-
max retry count for persistence of pods and shard assignments
- persistRetryInterval
-
retry interval for persistence of pods and shard assignments
- pingTimeout
-
time to wait for a pod to respond to a ping request
- rebalanceInterval
-
interval for regular rebalancing of shards
- rebalanceRate
-
max ratio of shards to rebalance at once
- rebalanceRetryInterval
-
retry interval for rebalancing when some shards failed to be rebalanced
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object ManagerConfig
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ManagerConfig.type
class ShardManager(stateRef: Synchronized[ShardManagerState], rebalanceSemaphore: Semaphore, eventsHub: Hub[ShardingEvent], healthApi: PodsHealth, podApi: Pods, stateRepository: Storage, config: ManagerConfig)
A component in charge of assigning and unassigning shards to/from pods
A component in charge of assigning and unassigning shards to/from pods
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
object ShardManager
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ShardManager.type
In this article