package
0.0.0-20180820112432-d59d7d1c40b2
Repository: https://github.com/iron-io/functions.git
Documentation: pkg.go.dev

# README

IronFunctions LoadBalancer

Loadbalancing several IronFunctions

You can run multiple IronFunctions instances and balance the load amongst them using fnlb as follows:

fnlb --listen <address-for-incoming> --nodes <node1>,<node2>,<node3>

And redirect all traffic to the load balancer.

NOTE: For the load balancer to work all function nodes need to be sharing the same DB.

# Packages

No description provided by the author

# Functions

ConsistentHashReverseProxy returns a new ReverseProxy that routes URLs to the scheme, host, and base path provided in by a consistent hash algorithm.
NewRoundTripper creates a new FallbackRoundTripper and triggers the internal host TCP health checks.

# Variables

ErrNoFallbackNodeFound happens when the fallback routine does not manage to find a TCP reachable node in alternative to the chosen one.

# Structs

FallbackRoundTripper implements http.RoundTripper in a way that when an outgoing request does not manage to succeed with its original target host, it fallsback to a list of alternative hosts.