@@ -224,7 +224,7 @@ services:
224
224
deploy :
225
225
resources :
226
226
limits :
227
- memory : 200M
227
+ memory : 175M
228
228
restart : unless-stopped
229
229
ports :
230
230
- " ${FEATURE_FLAG_SERVICE_PORT}" # Feature Flag Service UI
@@ -322,10 +322,14 @@ services:
322
322
# Frontend Proxy (Envoy)
323
323
frontendproxy :
324
324
image : ${IMAGE_NAME}:${IMAGE_VERSION}-frontendproxy
325
+ container_name : frontend-proxy
325
326
build :
326
327
context : ./
327
328
dockerfile : src/frontendproxy/Dockerfile
328
- container_name : frontend-proxy
329
+ deploy :
330
+ resources :
331
+ limits :
332
+ memory : 50M
329
333
ports :
330
334
- " ${ENVOY_PORT}:${ENVOY_PORT}"
331
335
- 10000:10000
@@ -391,7 +395,7 @@ services:
391
395
deploy :
392
396
resources :
393
397
limits :
394
- memory : 70M
398
+ memory : 120M
395
399
restart : unless-stopped
396
400
ports :
397
401
- " ${PAYMENT_SERVICE_PORT}"
@@ -446,7 +450,7 @@ services:
446
450
deploy :
447
451
resources :
448
452
limits :
449
- memory : 30M
453
+ memory : 40M
450
454
restart : unless-stopped
451
455
ports :
452
456
- " ${QUOTE_SERVICE_PORT}"
@@ -531,18 +535,18 @@ services:
531
535
deploy :
532
536
resources :
533
537
limits :
534
- memory : 200M
538
+ memory : 120M
535
539
restart : unless-stopped
536
540
environment :
537
541
- POSTGRES_USER=ffs
538
542
- POSTGRES_DB=ffs
539
543
- POSTGRES_PASSWORD=ffs
540
- logging : *logging
541
544
healthcheck :
542
545
test : ["CMD-SHELL", "pg_isready -d ffs -U ffs"]
543
546
interval : 10s
544
547
timeout : 5s
545
548
retries : 5
549
+ logging : *logging
546
550
547
551
# Kafka used by Checkout, Accounting, and Fraud Detection services
548
552
kafka :
@@ -556,7 +560,7 @@ services:
556
560
deploy :
557
561
resources :
558
562
limits :
559
- memory : 800M
563
+ memory : 750M
560
564
restart : unless-stopped
561
565
environment :
562
566
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
@@ -565,13 +569,14 @@ services:
565
569
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
566
570
- OTEL_RESOURCE_ATTRIBUTES
567
571
- OTEL_SERVICE_NAME=kafka
568
- logging : *logging
572
+ - KAFKA_HEAP_OPTS=-Xmx400m -Xms400m
569
573
healthcheck :
570
574
test : nc -z kafka 9092
571
575
start_period : 10s
572
576
interval : 5s
573
577
timeout : 10s
574
578
retries : 10
579
+ logging : *logging
575
580
576
581
# Redis used by Cart service
577
582
redis-cart :
@@ -605,7 +610,7 @@ services:
605
610
deploy :
606
611
resources :
607
612
limits :
608
- memory : 275M
613
+ memory : 300M
609
614
restart : unless-stopped
610
615
ports :
611
616
- " ${JAEGER_SERVICE_PORT}" # Jaeger UI
@@ -619,6 +624,10 @@ services:
619
624
grafana :
620
625
image : grafana/grafana:9.1.0
621
626
container_name : grafana
627
+ deploy :
628
+ resources :
629
+ limits :
630
+ memory : 75M
622
631
volumes :
623
632
- ./src/grafana/grafana.ini:/etc/grafana/grafana.ini
624
633
- ./src/grafana/provisioning/:/etc/grafana/provisioning/
@@ -633,7 +642,7 @@ services:
633
642
deploy :
634
643
resources :
635
644
limits :
636
- memory : 100M
645
+ memory : 125M
637
646
restart : unless-stopped
638
647
command : [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ]
639
648
volumes :
@@ -663,6 +672,10 @@ services:
663
672
- --enable-feature=exemplar-storage
664
673
volumes :
665
674
- ./src/prometheus/prometheus-config.yaml:/etc/prometheus/prometheus-config.yaml
675
+ deploy :
676
+ resources :
677
+ limits :
678
+ memory : 300M
666
679
ports :
667
680
- " ${PROMETHEUS_SERVICE_PORT}:${PROMETHEUS_SERVICE_PORT}"
668
681
logging : *logging
0 commit comments