package balancer

  1. Overview
  2. Docs
include Distributor.S
type param
type state
type peer
val pick : state -> param -> peer Lwt.t
val use : state -> param -> (Node.t -> 'a Lwt.t) -> 'a Lwt.t
include Serverset.S
type elt
type t
val update : t -> Serverset.NodeSet.t -> elt Lwt.t

A function to maintain server set retrieved from an external source

val from_src : t -> Serverset.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
OCaml

Innovation. Community. Security.