package balancer

  1. Overview
  2. Docs

Maintains information to perform balancing decisions and membership

type elt
type t
val update : t -> NodeSet.t -> elt Lwt.t

A function to maintain server set retrieved from an external source

val from_src : t -> NodeSet.t React.S.t -> t

Use a reference cell to maintain the ServerSet using update when an event is triggered

val of_nodes : Node.t list -> t
val add_node : t -> Node.t -> elt Lwt.t
val rm_node : t -> Node.t -> elt Lwt.t
val nodes : t -> Node.t list Lwt.t