Skip to content

Commit

Permalink
Set default compose to run only the EG API direct dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
helder-junior committed Aug 1, 2024
1 parent c78e90b commit 9a98a31
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 28 deletions.
6 changes: 3 additions & 3 deletions config/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ client:
serverAddress: localhost:5000 #eventsgateway-api:5000
timeout: 500ms
loadtestclient:
duration: 1s
threads: 1
duration: 10s
threads: 15
randSleepCeilingMs: 500
randPropsSize: small # small, medium, large, jumbo
randPropsSize: medium # small, medium, large, jumbo
17 changes: 0 additions & 17 deletions docker-compose-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,13 @@ services:
networks:
- eventsgateway

jaeger:
image: jaegertracing/all-in-one:latest
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "4317:4317"
networks:
- eventsgateway

eventsgateway-api:
image: eventsgateway-server
ports:
- "5000:5000"
- "6060:6060"
depends_on:
kafka:
condition: service_healthy
jaeger:
condition: service_started
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5000" ]
interval: 5s
Expand Down
6 changes: 0 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,12 @@ services:

eventsgateway-api:
image: eventsgateway-server-dev
environment:
- "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://jaeger:4317"
- "OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317"
ports:
- "5000:5000"
- "6060:6060"
- "9091:9091"
depends_on:
kafka:
condition: service_healthy
jaeger:
condition: service_started
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5000" ]
interval: 5s
Expand Down
4 changes: 2 additions & 2 deletions server/config/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ pprof:
enabled: true
address: localhost:6060
otlp:
enabled: true
enabled: false
serviceName: "eventsgateway-server"
traceRatio: 1.0 #Sends 50% of the traces to jaeger
jaegerHost: jaeger
jaegerPort: 4317
prometheus:
enabled: true
enabled: false
port: 0.0.0.0:9091
4 changes: 4 additions & 0 deletions server/config/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ kafka:
producer:
brokers: kafka:9092
maxMessageBytes: 3000000
otlp:
enabled: false
prometheus:
enabled: false

0 comments on commit 9a98a31

Please sign in to comment.