Config

com.devsisters.shardcake.Config
See theConfig companion object
case class Config(numberOfShards: Int, selfHost: String, shardingPort: Int, shardManagerUri: Uri, serverVersion: String, entityMaxIdleTime: Duration, entityTerminationTimeout: Duration, sendTimeout: Duration, refreshAssignmentsRetryInterval: Duration, unhealthyPodReportInterval: Duration, simulateRemotePods: Boolean)

Sharding configuration

Value parameters

entityMaxIdleTime

time of inactivity (without receiving any message) after which an entity will be interrupted

entityTerminationTimeout

time we give to an entity to handle the termination message before interrupting it

numberOfShards

number of shards (see documentation on how to choose this), should be same on all nodes

refreshAssignmentsRetryInterval

retry interval in case of failure getting shard assignments from storage

selfHost

hostname or IP address of the current pod

sendTimeout

timeout when calling sendMessage

serverVersion

version of the current pod

shardManagerUri

url of the Shard Manager GraphQL API

shardingPort

port used for pods to communicate together

simulateRemotePods

disable optimizations when sending a message to an entity hosted on the local shards (this will force serialization of all messages)

unhealthyPodReportInterval

interval to report unhealthy pods to the Shard Manager (this exists to prevent calling the Shard Manager for each failed message)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product