mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

hack: benchmarking to use Content Type: application/x-www-form-urlencoded boom sends PUT request with Content-Type: text/html, and this cannot be parsed by etcd. It should use Content-Type: application/x-www-form-urlencoded. Post this fix the official etcd benchmarks should be updated as the keysize was not a factor as the value being set was always empty.
Usage
Benchmark 3-member etcd cluster to get its read and write performance.
Instructions
- Start 3-member etcd cluster on 3 machines
- Update
$leader
and$servers
in the script - Run the script in a separate machine
Caveat
- Set environment variable
GOMAXPROCS
as the number of available cores to maximize CPU resources for both etcd member and bench process. - Set the number of open files per process as 10000 for amounts of client connections for both etcd member and benchmark process.