isala404 / scale-to-zero-ebpf

Proof of concept for Implementing a scale to zero architecture with ebpf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scale-to-zero

Prerequisites

  1. Install bpf-linker: cargo install bpf-linker

Build eBPF

cargo xtask build-ebpf

To perform a release build you can use the --release flag. You may also change the target architecture with the --target flag.

Build Userspace

cargo build

Run

RUST_LOG=info cargo xtask run

TODOs

  • Add multi namespace support
    • currently only default namespace is supported
  • Move the scaling logic to a central operator
    • currently will only work in single node clusters
  • Hold the request till the pod is healthy
    • as of now the requests will fail if the pod takes longer to start

About

Proof of concept for Implementing a scale to zero architecture with ebpf


Languages

Language:Rust 98.7%Language:Makefile 1.3%