Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/isala404/scale-to-zero-ebpf
- Owner: isala404
- Created: 2024-01-13T16:23:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-22T08:08:36.000Z (12 months ago)
- Last Synced: 2024-12-06T00:06:31.677Z (2 months ago)
- Topics: ebpf, kubernetes, rust, serverless
- Language: Rust
- Homepage: https://medium.com/@isalapiyarisi/proxyless-scale-to-zero-with-ebpf-61efc6917310
- Size: 22.5 KB
- Stars: 19
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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