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.

https://github.com/copyleftdev/kukai

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

arrow-flight devops distributed-systems edge grpc high-performance load-testing metrics microservices-architecture observability open-source performance-testing resilience rust tcp telemetry
Last synced: 5 months ago · JSON representation

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
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
arrow-flight devops distributed-systems edge grpc high-performance load-testing metrics microservices-architecture observability open-source performance-testing resilience rust tcp telemetry
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License

readme.md

KūKai

Rust KūKai Mascot

Rust Apache Arrow Tonic License

KūKai is a modular, high-performance load-testing framework for TCP-based protocols.
Inspired by the Hawaiian god Kūkailimoku (often called ), 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"?

  • (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

    1. Commander: Orchestrates load tests, hosts a gRPC Apache Arrow Flight server to gather real-time telemetry.
    2. Edge: Runs local load tests on worker nodes; connects to the Commander, streams metrics back for analysis.
    3. Standalone: Simplest mode—runs a local load test, writes metrics to disk in Arrow format (no remote orchestration needed).
  • Real-Time Telemetry

    • Edge → Commander via Arrow Flight (gRPC).
    • Standalone writes all metrics to an .arrow file for offline analysis.
  • Flexible TCP

    • Sends arbitrary payloads (e.g., HTTP, raw TCP).
    • Tracks success/failure and latency per request.
  • 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

  1. Multi-Region Load
    • Deploy edges across multiple data centers. A single commander collects metrics.
  2. Microservices Stress
    • Evaluate how each service endpoint behaves under concurrency spikes.
  3. Resilience Drills
    • Verify success rates, latencies, or error patterns under heavy load.
  4. 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 if mode=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 .arrow file (used in standalone mode).
    • targets: One or more {addr, port, weight} blocks, for random/weighted selection.

Running KūKai

  1. Build/Install

bash git clone https://github.com/copyleftdev/kukai.git cd kukai cargo build --release

  1. Choose a Mode
  • Standalone (simple local test): bash # In kukai_config.toml: mode = "standalone" cargo run --release -- --config kukai_config.toml

    • Generates kukai_metrics.arrow locally.
  • Commander: bash # Terminal A # In kukai_config.toml: mode = "commander" cargo run --release -- --config kukai_config.toml

    • Waits on 0.0.0.0:50051 for edges to connect.
  • 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()) ```

  • 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.

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 .arrow or a big-data pipeline.

Contributing

  1. Fork & clone: KūKai on GitHub.
  2. Create a feature branch, commit your changes, then open a Pull Request.
  3. 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

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

All Time
  • Total Commits: 11
  • Total Committers: 2
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.182
Past Year
  • Commits: 11
  • Committers: 2
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.182
Top Committers
Name Email 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

Cargo.lock cargo
  • 180 dependencies
Cargo.toml cargo