# Intermediate chaos workload: 1 readwriter + 1 TLS reader per valkey.
#
# Per target:
#   - readwriter on plaintext :6379 at 10ms (~100 ops/sec)
#   - reader     on TLS       :6380 at 5ms  (~200 ops/sec)
#
# ⇒ ~300 ops/sec per target, ~1.8k ops/sec total per container, and both
# the plaintext and TLS ingress paths get exercised on every valkey.
#
# Per-worker passwords reference env vars that the deployment yaml
# (zerops-basic-import.yaml) wires in from each valkey service.
#
# NB: :6380 is the master TLS port; both valkey:single and valkey:ha
# masters serve GETs there, so a reader against :6380 works on both
# topologies. If a single-mode valkey ever stops exposing :6380, the
# corresponding ro-* worker will surface as a connect error — that's
# signal, not a bug here.

workers:
  - name: rw-single1
    role: readwriter
    host: valkeysingle1.zerops
    port: 6379
    password: ${VALKEY_VALKEYSINGLE1_PASSWORD}
    interval: 10ms
  - name: ro-single1
    role: reader
    host: valkeysingle1.zerops
    port: 6380
    tls: true
    password: ${VALKEY_VALKEYSINGLE1_PASSWORD}
    interval: 5ms

  - name: rw-single2
    role: readwriter
    host: valkeysingle2.zerops
    port: 6379
    password: ${VALKEY_VALKEYSINGLE2_PASSWORD}
    interval: 10ms
  - name: ro-single2
    role: reader
    host: valkeysingle2.zerops
    port: 6380
    tls: true
    password: ${VALKEY_VALKEYSINGLE2_PASSWORD}
    interval: 5ms

  - name: rw-single3
    role: readwriter
    host: valkeysingle3.zerops
    port: 6379
    password: ${VALKEY_VALKEYSINGLE3_PASSWORD}
    interval: 10ms
  - name: ro-single3
    role: reader
    host: valkeysingle3.zerops
    port: 6380
    tls: true
    password: ${VALKEY_VALKEYSINGLE3_PASSWORD}
    interval: 5ms

  - name: rw-ha1
    role: readwriter
    host: valkeyha1.zerops
    port: 6379
    password: ${VALKEY_VALKEYHA1_PASSWORD}
    interval: 10ms
  - name: ro-ha1
    role: reader
    host: valkeyha1.zerops
    port: 6380
    tls: true
    password: ${VALKEY_VALKEYHA1_PASSWORD}
    interval: 5ms

  - name: rw-ha2
    role: readwriter
    host: valkeyha2.zerops
    port: 6379
    password: ${VALKEY_VALKEYHA2_PASSWORD}
    interval: 10ms
  - name: ro-ha2
    role: reader
    host: valkeyha2.zerops
    port: 6380
    tls: true
    password: ${VALKEY_VALKEYHA2_PASSWORD}
    interval: 5ms

  - name: rw-ha3
    role: readwriter
    host: valkeyha3.zerops
    port: 6379
    password: ${VALKEY_VALKEYHA3_PASSWORD}
    interval: 10ms
  - name: ro-ha3
    role: reader
    host: valkeyha3.zerops
    port: 6380
    tls: true
    password: ${VALKEY_VALKEYHA3_PASSWORD}
    interval: 5ms
