aboutsummaryrefslogtreecommitdiff
path: root/src/modules/loadbalance.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-24 01:33:49 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-24 01:33:49 +0200
commitecb3378d29a4f53604a9287ef7027a299f3d45d5 (patch)
tree3ac242dac925271ec1e655c9db76e8afb8db9742 /src/modules/loadbalance.rs
parent0faa378e1ff9cf9ce0b5b08dac8520a8db49bf2d (diff)
downloadgnix-ecb3378d29a4f53604a9287ef7027a299f3d45d5.tar
gnix-ecb3378d29a4f53604a9287ef7027a299f3d45d5.tar.bz2
gnix-ecb3378d29a4f53604a9287ef7027a299f3d45d5.tar.zst
a bit of doc, stub cache impl
Diffstat (limited to 'src/modules/loadbalance.rs')
-rw-r--r--src/modules/loadbalance.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/loadbalance.rs b/src/modules/loadbalance.rs
index 168db33..5358b03 100644
--- a/src/modules/loadbalance.rs
+++ b/src/modules/loadbalance.rs
@@ -1,3 +1,7 @@
+//! Load balancing module
+//!
+//! Given a set of handlers, the handler that is the least busy will handle the next request.
+//! Current implementation does not scale well for many handlers.
use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;