Skip to content

Commit 2e6cb5a

Browse files
authored
[flagd] - upgrade to latest version and memory limits (#1554)
* set 50M memory limit for flagd * clean up old FFS references * update flagd to 0.10.1
1 parent 9027cfc commit 2e6cb5a

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

.env

+4-11
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,6 @@ CURRENCY_SERVICE_ADDR=currencyservice:${CURRENCY_SERVICE_PORT}
5555
EMAIL_SERVICE_PORT=6060
5656
EMAIL_SERVICE_ADDR=http://emailservice:${EMAIL_SERVICE_PORT}
5757

58-
# Feature Flag Service
59-
FEATURE_FLAG_SERVICE_PORT=8081
60-
FEATURE_FLAG_SERVICE_ADDR=featureflagservice:${FEATURE_FLAG_SERVICE_PORT}
61-
FEATURE_FLAG_SERVICE_HOST=feature-flag-service
62-
FEATURE_FLAG_GRPC_SERVICE_PORT=50053
63-
FEATURE_FLAG_GRPC_SERVICE_ADDR=featureflagservice:${FEATURE_FLAG_GRPC_SERVICE_PORT}
64-
65-
# flagd
66-
FLAGD_HOST=flagd
67-
FLAGD_PORT=8013
68-
6958
# Frontend
7059
FRONTEND_PORT=8080
7160
FRONTEND_ADDR=frontend:${FRONTEND_PORT}
@@ -110,6 +99,10 @@ SHIPPING_SERVICE_ADDR=shippingservice:${SHIPPING_SERVICE_PORT}
11099
# ******************
111100
# Dependent Services
112101
# ******************
102+
# flagd
103+
FLAGD_HOST=flagd
104+
FLAGD_PORT=8013
105+
113106
# Kafka
114107
KAFKA_SERVICE_PORT=9092
115108
KAFKA_SERVICE_ADDR=kafka:${KAFKA_SERVICE_PORT}

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ the release.
2727
([#1537](https://github.com/open-telemetry/opentelemetry-demo/pull/1537))
2828
* [traceBasedTests] update to v1.0.0
2929
([#1551](https://github.com/open-telemetry/opentelemetry-demo/pull/1551))
30+
* [flagd] update to 0.10.1 and set 50M memory limit
31+
([#1554](https://github.com/open-telemetry/opentelemetry-demo/pull/1554))
3032

3133
## 1.9.0
3234

docker-compose.yml

+25-20
Original file line numberDiff line numberDiff line change
@@ -215,26 +215,6 @@ services:
215215
condition: service_started
216216
logging: *logging
217217

218-
flagd:
219-
image: ghcr.io/open-feature/flagd:v0.9.0
220-
container_name: flagd
221-
environment:
222-
- FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}
223-
- FLAGD_METRICS_EXPORTER=otel
224-
- OTEL_RESOURCE_ATTRIBUTES
225-
- OTEL_SERVICE_NAME=flagd
226-
command: [
227-
"start",
228-
"--uri",
229-
"file:./etc/flagd/demo.flagd.json"
230-
]
231-
ports:
232-
- 8013
233-
volumes:
234-
- ./src/flagd:/etc/flagd
235-
logging:
236-
*logging
237-
238218
# Fraud Detection service
239219
frauddetectionservice:
240220
image: ${IMAGE_NAME}:${DEMO_VERSION}-frauddetectionservice
@@ -585,6 +565,31 @@ services:
585565
# ******************
586566
# Dependent Services
587567
# ******************
568+
# Flagd, feature flagging service
569+
flagd:
570+
image: ghcr.io/open-feature/flagd:v0.10.1
571+
container_name: flagd
572+
deploy:
573+
resources:
574+
limits:
575+
memory: 50M
576+
environment:
577+
- FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}
578+
- FLAGD_METRICS_EXPORTER=otel
579+
- OTEL_RESOURCE_ATTRIBUTES
580+
- OTEL_SERVICE_NAME=flagd
581+
command: [
582+
"start",
583+
"--uri",
584+
"file:./etc/flagd/demo.flagd.json"
585+
]
586+
ports:
587+
- 8013
588+
volumes:
589+
- ./src/flagd:/etc/flagd
590+
logging:
591+
*logging
592+
588593
# Kafka used by Checkout, Accounting, and Fraud Detection services
589594
kafka:
590595
image: ${IMAGE_NAME}:${DEMO_VERSION}-kafka

0 commit comments

Comments
 (0)