com.devsisters.shardcake

Members list

Type members

Classlikes

object GraphQLApi extends GenericSchema[ShardManager]

Attributes

Supertypes
trait GenericSchema[ShardManager]
trait TemporalSchema
trait SchemaDerivation[ShardManager]
trait CommonSchemaDerivation
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ManagerConfig

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object Server

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Server.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 Object
trait Matchable
class Any
object ShardManager

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type