https://github.com/redpanda-data/client-swarm
Test utility for running large numbers of concurrent client sessions
https://github.com/redpanda-data/client-swarm
Last synced: 5 months ago
JSON representation
Test utility for running large numbers of concurrent client sessions
- Host: GitHub
- URL: https://github.com/redpanda-data/client-swarm
- Owner: redpanda-data
- Created: 2022-03-25T10:28:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-05T14:25:47.000Z (7 months ago)
- Last Synced: 2025-06-22T10:40:23.413Z (7 months ago)
- Language: Rust
- Size: 106 KB
- Stars: 6
- Watchers: 15
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# client-swarm
## Quickstart
This tool is for stressing Redpanda with lots of concurrent
producer connections.
### Build and run
```
# Get a rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# 2000 producers sending 100 messages each
# (Set your BROKERS and TOPIC as needed)
cargo run --release -- --brokers localhost:9092 producers --topic $TOPIC --count 2000 --messages 100
```
### Using the wrapper
Using very high client counts (several 1000s of connections) will generally hit some operating system limits and fail to create all the desired clients. To avoid this you can run the swarm using the wrapper script, which sets these limits to much higher values. Some of these modifications apply system-wide and will persist until the next reboot.
```
./wrapper.sh --brokers localhost:9092 producers --topic $TOPIC --count 2000 --messages 100
```