Module resty.cassandra.policies.lb.rr

Round robin load balancing policy.

Info:

  • Author: thibaultcha

Functions

new () Create a round robin policy.


Functions

new ()
Create a round robin policy. Instanciates a round robin policy for resty.cassandra.cluster.

Returns:

    table policy: A round robin policy.

Usage:

    local Cluster = require "resty.cassandra.cluster"
    local rr = require "resty.cassandra.policies.lb.rr"
    
    local policy = rr.new()
    local cluster = assert(Cluster.new {
      lb_policy = policy
    })
generated by LDoc 1.4.6 Last updated 2022-05-20 11:10:11