Record SLO and observability fault experiments

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 17:06:45 +03:00
parent f1963e5f19
commit f61d070574
15 changed files with 4836 additions and 0 deletions
+3
View File
@@ -41,6 +41,7 @@ def main():
parser.add_argument("--base-url", default="http://127.0.0.1:8080")
parser.add_argument("--concurrency", type=int, default=4)
parser.add_argument("--per-size", type=int, default=4)
parser.add_argument("--profile", choices=("small_320x200", "noise_800x600"))
parser.add_argument("--output", required=True)
args = parser.parse_args()
if not 1 <= args.concurrency <= 16 or not 1 <= args.per_size <= 100:
@@ -52,6 +53,8 @@ def main():
"small_320x200": (ROOT / "tests/fixtures/sample.png").read_bytes(),
"noise_800x600": png_noise(800, 600),
}
if args.profile:
images = {args.profile: images[args.profile]}
items = [(name, data) for name, data in images.items() for _ in range(args.per_size)]
def work(item):