package routing
- Source
- package.scala
- Alphabetic
- By Inheritance
- routing
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
DiscoveryTable = SortedMap[NamedService, NonEmptyList[RoutePath]]
A table used to discover deployments offering a particular named port in a particular namespace
-
type
DiscoveryTables = SortedMap[NamespaceName, DiscoveryTable]
A Discovery Table for each known namespace
- type GraphBuild[A] = IndexedReaderWriterStateT[StoreOpF, RoutingTables, List[String], RoutingGraph, RoutingGraph, A]
- type GraphBuildT[F[_], A] = IndexedReaderWriterStateT[F, RoutingTables, List[String], RoutingGraph, RoutingGraph, A]
-
final
case class
RoutePath(stack: Deployment, portName: String, protocol: String, port: Int, weight: Int) extends Product with Serializable
A path to a particular port on a particular deployment, which is weighted, so that we split traffic between two deployments both offering the same named port on a named service.
A path to a particular port on a particular deployment, which is weighted, so that we split traffic between two deployments both offering the same named port on a named service.
Weights are stored as a percentage of traffic, so 100 means all traffic, 50 means half of the traffic.
-
type
RoutingGraph = Graph[RoutingNode, Unit, RoutePath]
the quiver graph which we will build that contains the current running deployments for a particular namespace, from this we build both routing tables and discovery tables
- final case class RoutingNode(node: Either[LoadbalancerDeployment, Deployment]) extends Product with Serializable
-
type
RoutingTable = SortedMap[ServiceTarget, Target]
A table built for a particular namespace, it says "if you are in this namespace, and looking for this service type, here is the current target
-
type
RoutingTables = SortedMap[NamespaceName, RoutingTable]
A routing table for each known namesapce
- type ServiceTarget = (UnitName, MajorVersion)
Value Members
- object Discovery
- object RoutePath extends Serializable
- object RoutingNode extends Serializable
- object RoutingTable
- object cron
- object deprecated
- object graphBuild