https://github.com/copyleftdev/kukai
KūKai is a modular, high-performance load-testing framework for TCP-based protocols. Inspired by the Hawaiian god Kūkailimoku (often called Kū), associated with warfare and strategic battles, KūKai aims to help you “wage war” on servers to test their capacity and resilience.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.2%) to scientific vocabulary
Keywords
Repository
KūKai is a modular, high-performance load-testing framework for TCP-based protocols. Inspired by the Hawaiian god Kūkailimoku (often called Kū), associated with warfare and strategic battles, KūKai aims to help you “wage war” on servers to test their capacity and resilience.
Basic Info
- Host: GitHub
- Owner: copyleftdev
- License: bsd-3-clause
- Language: Rust
- Default Branch: master
- Homepage: https://kukai-load.vercel.app/
- Size: 1.65 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
readme.md
KūKai
KūKai is a modular, high-performance load-testing framework for TCP-based protocols.
Inspired by the Hawaiian god Kūkailimoku (often called Kū), associated with warfare and strategic battles, KūKai aims to help you “wage war” on servers to test their capacity and resilience.
Why "KūKai"?
- Kū (the Hawaiian war god) symbolizes power and relentless force, reflecting the nature of load testing.
- Kai (“ocean”) conveys unbounded scale and flood-like traffic.
Hence, KūKai suggests unstoppable traffic generation and powerful testing.
Key Features
Three Operation Modes
- Commander: Orchestrates load tests, hosts a gRPC Apache Arrow Flight server to gather real-time telemetry.
- Edge: Runs local load tests on worker nodes; connects to the Commander, streams metrics back for analysis.
- Standalone: Simplest mode—runs a local load test, writes metrics to disk in Arrow format (no remote orchestration needed).
- Commander: Orchestrates load tests, hosts a gRPC Apache Arrow Flight server to gather real-time telemetry.
Real-Time Telemetry
- Edge → Commander via Arrow Flight (gRPC).
- Standalone writes all metrics to an
.arrowfile for offline analysis.
- Edge → Commander via Arrow Flight (gRPC).
Flexible TCP
- Sends arbitrary payloads (e.g., HTTP, raw TCP).
- Tracks success/failure and latency per request.
- Sends arbitrary payloads (e.g., HTTP, raw TCP).
Analytics-Ready
- Arrow-based data for fast queries with Python’s pyarrow, Rust’s DataFusion, etc.
Architecture Diagram
```mermaid flowchart LR subgraph Commander Mode A[Commander + gRPC Arrow Flight Server] --> B[Edge Nodes] A -- "Orchestrates Tests" --> B B -- "Telemetry" --> A end
subgraph Edge Mode
B -- "Local Load" --> T((Servers / Targets))
end
subgraph Standalone Mode
C[Standalone Local Load Test]
C -- "Writes Metrics" --> F[kukai_metrics.arrow]
end
style A fill:#ffdddd,stroke:#ffaaaa,stroke-width:2px
style B fill:#ddffdd,stroke:#aaffaa,stroke-width:2px
style C fill:#dddfff,stroke:#aaaaff,stroke-width:2px
style T fill:#fff2cc,stroke:#ffe599,stroke-width:2px
style F fill:#ffe6cc,stroke:#ffd18e,stroke-width:2px
```
Use Cases
- Multi-Region Load
- Deploy edges across multiple data centers. A single commander collects metrics.
- Deploy edges across multiple data centers. A single commander collects metrics.
- Microservices Stress
- Evaluate how each service endpoint behaves under concurrency spikes.
- Evaluate how each service endpoint behaves under concurrency spikes.
- Resilience Drills
- Verify success rates, latencies, or error patterns under heavy load.
- Verify success rates, latencies, or error patterns under heavy load.
- Simple Local Tests
- Standalone mode is ideal for quick tests on a single machine.
Configuration & Usage
All modes share a TOML config file. Key sections:
kukai_config.toml
```toml
"commander", "edge", or "standalone"
mode = "standalone"
[commander] edges = ["127.0.0.1:50051"]
[edge] commander_address = "127.0.0.1:50051"
[load] rps = 50 durationseconds = 10 concurrency = 2 payload = "GET / HTTP/1.1\r\nHost: example\r\n\r\n" arrowoutput = "kukai_metrics.arrow"
[[load.targets]] addr = "127.0.0.1" port = 8080 weight = 1.0
[[load.targets]] addr = "127.0.0.1" port = 9090 weight = 2.0 ```
Fields:
mode:
commander: Runs Arrow Flight server for telemetry.edge: Connects to the commander, runs the load test.standalone: Local testing, writes Arrow file to disk.
commander.edges: List of edge node addresses (e.g.
["edge1:50051", "edge2:50051"])—used only ifmode=commander.edge.commander_address: IP/Port for commander—only if
mode=edge.load:
- rps: Target requests per second.
- duration_seconds: How long to run the test.
- concurrency: Number of parallel worker tasks.
- payload: The data to send over TCP.
- arrow_output: Path to
.arrowfile (used in standalone mode). - targets: One or more
{addr, port, weight}blocks, for random/weighted selection.
- rps: Target requests per second.
Running KūKai
- Build/Install
bash
git clone https://github.com/copyleftdev/kukai.git
cd kukai
cargo build --release
- Choose a Mode
Standalone (simple local test):
bash # In kukai_config.toml: mode = "standalone" cargo run --release -- --config kukai_config.toml- Generates
kukai_metrics.arrowlocally.
- Generates
Commander:
bash # Terminal A # In kukai_config.toml: mode = "commander" cargo run --release -- --config kukai_config.toml- Waits on
0.0.0.0:50051for edges to connect.
- Waits on
Edge:
bash # Terminal B # In kukai_config.toml: mode = "edge" # (pointing commander_address to the Commander) cargo run --release -- --config kukai_config.toml- Spawns local workers, sends metrics via Arrow Flight.
Analyzing Results
Standalone
- After the test, an Arrow file (
.arrow) is created. - Inspect with Python: ```python import pyarrow as pa import pyarrow.ipc as ipc
with pa.memorymap('kukaimetrics.arrow', 'r') as f: reader = ipc.RecordBatchFileReader(f) table = reader.readall() df = table.topandas() print(df.head()) ```
- After the test, an Arrow file (
Commander
- By default, the commander accumulates raw Arrow Flight chunks in memory (in the reference skeleton).
- Extend it to decode or write them to disk as
.arrow.
- By default, the commander accumulates raw Arrow Flight chunks in memory (in the reference skeleton).
Future Plans
- Stricter RPS Enforcement – Integrate a token-bucket or governor for precise rate limiting.
- Live Orchestration – Commander can dynamically adjust concurrency or payload on edges.
- Authentication / TLS – Secure gRPC channels for production.
- Persistent Storage – Automatic writing of commander-collected data to
.arrowor a big-data pipeline.
Contributing
- Fork & clone: KūKai on GitHub.
- Create a feature branch, commit your changes, then open a Pull Request.
- Submit bug reports or enhancements via GitHub issues.
License
BSD 3-Clause © 2025 CopyleftDev
Mahalo nui!
KūKai is built for the community—happy load testing!
Owner
- Name: Donald Johnson
- Login: copyleftdev
- Kind: user
- Location: Los Angeles
- Repositories: 39
- Profile: https://github.com/copyleftdev
GitHub Events
Total
- Watch event: 1
- Push event: 10
- Create event: 1
Last Year
- Watch event: 1
- Push event: 10
- Create event: 1
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Don Johnson | d****j@z****m | 9 |
| L337[66274b28]SIGMA | d****n@c****o | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 180 dependencies
