Kernel Load Balancer

Related tags

Miscellaneous klb
Overview

klb

klb means "Kernel Load Balancer". It is a (user-space) daemon which acts as a bridge between Linux IPVS and Zeroconf. IPVS services are populated with destinations discovered using Zeroconf / DNS-SD. This allows implementing high-performance load balancers with a dynamic set of servers.

Building klb

You need:

First make sure that the libcommon submodule is available:

git submodule update --init

Run meson:

meson . output

Compile and install:

ninja -C output
ninja -C output install

Configuring klb

The file /etc/cm4all/klb/klb.conf contains the configuration. Example:

service {
  bind "1.2.3.4:80"
  zeroconf_service "foo"
  zeroconf_interface "service"
}

This load-balances all incoming TCP connections on 1.2.3.4:80 to all workers which announce a service called _foo._tcp via Zeroconf.

There can be any number of service sections, each of which can contain the following options:

  • bind: an IP address with port where TCP connections arrive (IPv4 only currently)
  • scheduler: the name of the IPVS scheduler; defaults to rr (round-robin)
  • zeroconf_service: the name of the Zeroconf service where connections will be routed to
  • zeroconf_domain: an optional Zeroconf domain
  • zeroconf_interface: an optional network interface name where Zeroconf services will be discovered

To publish Zeroconf services to be discovered by this software, you can either use static service files in /etc/avahi/services/*.service, the command-line tool /usr/bin/avahi-publish-service (launched as daemon along with the daemon which actually listens on the port) or a daemon which has a built-in Zeroconf publisher (e.g. beng-proxy.

On workers (where connections will be routed to), routing needs to be set up so that reply IP packets are routed through the machine running this software.

Building the Debian package

After installing the build dependencies, run:

dpkg-buildpackage -rfakeroot -b -uc -us
Owner
CM4all GmbH
CM4all GmbH
Control Heidelberg Wallbox Energy Control over WiFi using ESP8266 and configure your own local load management

< scroll down for English version and additional information > wbec WLAN-Anbindung der Heidelberg WallBox Energy Control über ESP8266 Die Heidelberg W

null 45 Nov 30, 2021
An implementation of a Windows loader that can load dynamic-linked libraries (DLLs) directly from memory

memory-module-loader memory-module-loader is an implementation of a Windows loader that can load dynamic-link libraries (DLLs) directly from memory. T

SCYTHE 103 Nov 24, 2021
Automatically load dlls into any executables without replacing any files!

Automatically loaded dll using xinput9_1_0 proxy. Please put the modified xinput9_1_0.dll in the executable's directory.

null 6 Nov 14, 2021
Remap ELF LOAD segments to huge pages

Quick start Not recommended as a production solution, but it's a very fast way to benchmark if your application benefits from remapping your text and

null 8 Nov 15, 2021
Living off the Land Attack in Linux, load an anonymous file in memory.

ELFMemoryLoader Living off the Land Attack in Linux。 Linux场景下的核心载荷不落地攻击。 Loader get elf data from remote server, then use file descriptor to run elf i

null 2 Sep 20, 2021
Generate huge load-avg

Loadavg-generator Will create a lot of threads, limited to 2 CPUs to avoid hanging the system. Code is avoiding pthread to avoid eating too much memor

Adrien Mahieux 5 Nov 21, 2021
Stock exchange simulator made in Swing using Java with logic backend in C++ giving it faster load time and better data control

StockSimulator Stock exchange simulator made in Swing using Java with logic backend in C++ giving it faster load time and better data control Features

Dušan Todorović 1 Nov 4, 2021
Arduino Based Electronic DC Load.

ArduDCLoad A configurable multipurpose DC Load board developed directly on Twitch The values of the resistors can be calculated to adapt the PCB to yo

Laboratorio Gluon 2 Nov 19, 2021
Load bitstream to AG1K series FPGA using CH552

ch552-ag1k-msd Load bitstream to AG1K series FPGA using CH552 AG1K does not have a built-in data flash; This design only simulate a USB mass storage d

libc0607 1 Nov 19, 2021
Loads a signed kernel driver which allows you to map any driver to kernel mode without any traces of the signed / mapped driver.

CosMapper Loads a signed kernel driver (signed with leaked cert) which allows you to map any driver to kernel mode without any traces of the signed /

null 57 Nov 28, 2021
A kernel module to provide /system/xbin/su to Android Kernel (especially to WSA)

WSA-Kernel-SU Intro This is a kernel module to provide /system/xbin/su to Android Kernel (especially to WSA). Only works on 4.17+ kernel. For older ke

LSPosed 78 Nov 28, 2021
NetHunter Kernel for the OnePlus 7 Series based on DragonHeart Kernel

Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Please notice that there are several guides for kernel develop

cyberknight777 2 Nov 29, 2021
a unix inspired, non posix compliant micro kernel (more of a monolithic kernel for now though) that i am working on in my spare time

toy-kernel a unix inspired, non posix compliant micro kernel (more of a monolithic kernel for now though) that i am working on in my spare time prereq

czapek 7 Nov 22, 2021
Pixel 4/XL kernel.

Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Please notice that there are several guides for kernel develop

Sultan Alsawaf 69 Nov 21, 2021
PS4 kernel hooking library / payload.

PS4 KHook PS4 KHook is a minimalist kernel hooking payload. It targets 5.05 but it can be used with any firmware (or even non-PS4 systems) with modifi

Specter 41 Sep 1, 2021
A CAF rebased kernel for Mi 9 & RedMi K20 Pro MIUI 12.5

Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Please notice that there are several guides for kernel develop

Stephen Sin 34 Dec 5, 2021
Quick fix to iphone usb tethering with ios14 or higher for Linux kernel lower than 5.10.4

Quick fix to Linux Iphone USB tethering with IOS 14 or higher (Tested with ubuntu 18.04, kernel 5.4.0-65, if you fail in the build, please download yo

null 19 Oct 30, 2021
Kernel file/process/object tool

kt Kernel file/process/object tool killav bypass av dump lsass basic vs2019 + cpp + wdk usage(64-bit only) kdu -map sys.sys kt -F -d c:\windows\notepa

null 58 Nov 24, 2021
Cool kernel communication method.

Shared-FlushFileBuffers-Communication Cool kernel communication method. unknowncheats post: https://www.unknowncheats.me/forum/anti-cheat-bypass/44847

null 25 Dec 2, 2021