Skip to main content

Overview

UltraBalancer supports 7 algorithms. Choose based on your needs.

Algorithms

round-robin (default)

Even distribution across all backends.
Best for: Similar backends, stateless apps

least-connections

Routes to backend with fewest active connections.
Best for: Variable response times, long connections

ip-hash

Same client IP always goes to same backend.
Best for: Session affinity needed

random

Random backend selection.
Best for: Simple distribution, development

weighted

Higher weight = more requests.
Best for: Backends with different capacities

power-of-two

Picks 2 random backends, uses the one with fewer connections.
Best for: High performance, distributed choice

fastest-response

Routes to backend with fastest recent response.
Best for: Latency-sensitive applications

Quick Comparison