loadgen

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command loadgen drives cacheproxy over real HTTP from outside its container, so squeezing the container's CPU throttles the server, not the load. Normal traffic follows a Zipf curve over 20,000 keys; a scan-heavy tenant asks for keys nobody else does. It measures latency as clients see it.

go run ./examples/cacheproxy/loadgen -target http://127.0.0.1:8790
curl -XPOST 127.0.0.1:8792/load -d '{"rps":800,"scan_rps":0}'
curl 127.0.0.1:8792/stats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL