-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.chaos.yml
More file actions
66 lines (63 loc) · 2.22 KB
/
Copy pathdocker-compose.chaos.yml
File metadata and controls
66 lines (63 loc) · 2.22 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Bounded container logs: the 2026-07-18 soak filled the stand's disk with
# unrotated json-file logs (TM alone grew to 3.8G) and took the pipeline down.
x-logging: &default-logging
driver: json-file
options:
max-size: "50m"
max-file: "3"
services:
kafka:
logging: *default-logging
image: confluentinc/cp-kafka:7.7.0
hostname: kafka
environment:
CLUSTER_ID: AgentFlowChaosCluster01
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:${AGENTFLOW_CHAOS_KAFKA_PORT:-19092}
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
healthcheck:
test: ["CMD-SHELL", "kafka-broker-api-versions --bootstrap-server localhost:9092 >/dev/null 2>&1"]
interval: 5s
timeout: 5s
retries: 24
start_period: 20s
redis:
logging: *default-logging
image: redis:7.4-alpine
command: ["redis-server", "--save", "", "--appendonly", "no"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 24
start_period: 5s
toxiproxy:
logging: *default-logging
image: ghcr.io/shopify/toxiproxy:2.9.0
depends_on:
kafka:
condition: service_healthy
redis:
condition: service_healthy
command: ["-host", "0.0.0.0", "-config", "/config/toxiproxy.json"]
volumes:
- ./config/toxiproxy.json:/config/toxiproxy.json:ro
ports:
- "${AGENTFLOW_CHAOS_TOXIPROXY_PORT:-8474}:8474"
- "${AGENTFLOW_CHAOS_KAFKA_PORT:-19092}:19092"
- "${AGENTFLOW_CHAOS_REDIS_PORT:-16380}:16380"
healthcheck:
test: ["CMD", "/toxiproxy-cli", "list"]
interval: 5s
timeout: 5s
retries: 24
start_period: 5s