Protocol Configuration
Configure the protocol and target address for each traffic group in your TOML profile.
Specifying Protocol
Each traffic group must specify its own protocol and target:
[[traffic_groups]]
name = "main"
protocol = "redis" # or "http", "http2", "grpc", "memcached-binary", "memcached-ascii", "masstree", "dns", "nvme-tcp", "clickhouse", "xylem-echo"
target = "127.0.0.1:6379"
threads = [0, 1, 2, 3]
connections_per_thread = 10
max_pending_per_connection = 1
Multi-Protocol Experiments
You can run different protocols in separate traffic groups:
[[traffic_groups]]
name = "redis-load"
protocol = "redis"
target = "127.0.0.1:6379"
threads = [0, 1]
# ...
[[traffic_groups]]
name = "memcached-load"
protocol = "memcached-binary"
target = "127.0.0.1:11211"
threads = [2, 3]
# ...
Supported Protocols
- redis - Redis Serialization Protocol (RESP)
- http - HTTP/1.1
- http2 - HTTP/2 over cleartext, prior knowledge (see HTTP/2 Protocol)
- grpc - gRPC unary calls (see gRPC Protocol)
- memcached-binary - Memcached binary protocol
- memcached-ascii - Memcached text protocol
- dns - DNS queries (see DNS Protocol)
- nvme-tcp - NVMe over Fabrics on TCP (see NVMe/TCP Protocol)
- clickhouse - ClickHouse native protocol queries (see ClickHouse Protocol)
- xylem-echo - Echo protocol (testing/development only)
See the Architecture - Protocol Layer for implementation details.