-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontainer.justfile
51 lines (38 loc) · 1 KB
/
container.justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# vim: set tabstop=4 shiftwidth=4 expandtab:
[private]
default:
@just --list
[private]
fmt:
just --fmt --check --unstable
just --version
# Start all processes
up:
goreman start
# Check $url
check url="http://localhost:9000":
httpstat {{ url }}
# List Varnish backends
backends:
varnishadm backend.list
# Tail Varnish backend_health
health:
varnishlog -g raw -i backend_health
# Varnish top
top:
varnishtop
# Varnish stat
stat:
varnishstat
# Show Varnish cache stats
cache:
varnishncsa -c -f '%m %u %h %{x-cache}o %{x-cache-hits}o'
# Benchmark $url as http version $http with $reqs across $conns
bench url="http://localhost:9000/" http="1.1" reqs="1000" conns="50":
oha -n {{ reqs }} -c {{ conns }} {{ url }} --http-version={{ http }}
# Benchmark origin
bench-origin: (bench "https://changelog-2024-01-12.fly.dev/")
# Benchmark tls-exterminator
bench-tls-exterminator: (bench "http://localhost:5000/")
# Benchmark varnish
bench-varnish: (bench "http://localhost:9000/")