Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/isala404/scale-to-zero-ebpf

Proof of concept for Implementing a scale to zero architecture with ebpf
https://github.com/isala404/scale-to-zero-ebpf

ebpf kubernetes rust serverless

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# scale-to-zero

## Prerequisites

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

## Build eBPF

```bash
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

```bash
cargo build
```

## Run

```bash
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