Skip to content

Commit 77ee45e

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 1a65ecf + 23a790d commit 77ee45e

17 files changed

+58
-19
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- [ ] Service has resource limits and reservations
1818
- [ ] Service has placement constraints or is global
1919
- [ ] Service is restartable
20-
- [ ] The restart is zero-downtime
20+
- [ ] Service restart is zero-downtime
2121
- [ ] Service is not bound to one specific node (e.g. via files or volumes)
22-
- [ ] Relevant OPS E2E Test for this stack were added
23-
-->
22+
- [ ] Relevant OPS E2E Test are added
23+
- [ ] Service's Public URL is included in maintenance mode -->

scripts/common.Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,22 @@ clean-default: .check_clean ## Cleans all outputs
245245
@.venv/bin/pip3 install --upgrade pip wheel setuptools
246246
@.venv/bin/pip3 install jinja2 j2cli[yaml]
247247
248+
249+
# https://github.com/kolypto/j2cli?tab=readme-ov-file#customization
250+
ifeq ($(shell test -f j2cli_customization.py && echo -n yes),yes)
251+
252+
define jinja
253+
.venv/bin/j2 --format=env $(1) .env -o $(2) --customize j2cli_customization.py
254+
endef
255+
256+
else
257+
248258
define jinja
249259
.venv/bin/j2 --format=env $(1) .env -o $(2)
250260
endef
251261
262+
endif
263+
252264
# Gracefully use defaults and potentially overwrite them, via https://stackoverflow.com/a/49804748
253265
%: %-default
254266
@ true

services/jaeger/docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ services:
5151
networks:
5252
- public
5353
- monitored
54+
- interactive_services_subnet
5455
environment:
5556
TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE: ${TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE}
5657
TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE: ${TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE}
@@ -63,3 +64,6 @@ networks:
6364
monitored:
6465
name: ${MONITORED_NETWORK}
6566
external: true
67+
interactive_services_subnet:
68+
name: ${SWARM_STACK_NAME}_interactive_services_subnet
69+
external: true

services/jaeger/opentelemetry-collector-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ service:
1313
traces:
1414
receivers: [otlp]
1515
exporters: [otlphttp]
16-
processors: [batch,probabilistic_sampler]
16+
processors: [batch,probabilistic_sampler,filter/drop_healthcheck]
1717
telemetry:
1818
logs:
1919
level: ${TRACING_OPENTELEMETRY_COLLECTOR_SERVICE_TELEMETRY_LOG_LEVEL}
@@ -23,3 +23,11 @@ processors:
2323
send_batch_size: ${TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE}
2424
probabilistic_sampler:
2525
sampling_percentage: ${TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE}
26+
filter/drop_healthcheck:
27+
error_mode: ignore
28+
traces:
29+
span:
30+
- attributes["http.route"] == "healthcheck_readiness_probe"
31+
- attributes["http.route"] == "healthcheck_liveness_probe"
32+
- attributes["http.target"] == "/metrics" and IsMatch(attributes["http.user_agent"], ".*Prometheus.*") == true
33+
- attributes["db.statement"] == "PING" and attributes["db.system"] == "redis"

services/jaeger/template.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE=${TRACING_OPENTELEMETRY_COLLECTOR_BAT
55
TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE=${TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE}
66
TRACING_OPENTELEMETRY_COLLECTOR_EXPORTER_ENDPOINT=${TRACING_OPENTELEMETRY_COLLECTOR_EXPORTER_ENDPOINT}
77
TRACING_OPENTELEMETRY_COLLECTOR_SERVICE_TELEMETRY_LOG_LEVEL=${TRACING_OPENTELEMETRY_COLLECTOR_SERVICE_TELEMETRY_LOG_LEVEL}
8+
SWARM_STACK_NAME=${SWARM_STACK_NAME}

services/maintenance-page/docker-compose.yml.j2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ services:
2828
- traefik.enable=true
2929
- traefik.docker.network=${PUBLIC_NETWORK}
3030
- traefik.http.routers.{{"maintenance_" + j2item.replace('@','').replace(' ','').replace('.','').replace('-','').replace('\'','') + "_html"}}.priority={{MAINTENANCE_PAGES_TRAEFIK_PRIORITY}}
31-
- traefik.http.routers.{{"maintenance_" + j2item.replace('@','').replace(' ','').replace('.','').replace('-','').replace('\'','') + "_html"}}.rule={{ "Host(`" + j2item + "`)" }}
32-
- traefik.http.routers.{{"maintenance_" + j2item.replace('@','').replace(' ','').replace('.','').replace('-','').replace('\'','') + "_html"}}.rule=(Host(`{{j2item}}`) && PathPrefix(`/`)) || (HostRegexp(`services.{{j2item}}`,`{subhost:[a-zA-Z0-9-]+}.services.{{j2item}}`) && PathPrefix(`/`))
31+
- traefik.http.routers.{{"maintenance_" + j2item.replace('@','').replace(' ','').replace('.','').replace('-','').replace('\'','') + "_html"}}.rule=Host(`{{VENDOR_MANUAL_SUBDOMAIN_PREFIX}}.{{j2item}}`) || (Host(`{{j2item}}`) && PathPrefix(`/`)) || (HostRegexp(`services.{{j2item}}`,`{subhost:[a-zA-Z0-9-]+}.services.{{j2item}}`) && PathPrefix(`/`))
3332
- traefik.http.routers.{{"maintenance_" + j2item.replace('@','').replace(' ','').replace('.','').replace('-','').replace('\'','') + "_html"}}.tls=true
3433
- traefik.http.services.{{"maintenance_" + j2item.replace('@','').replace(' ','').replace('.','').replace('-','').replace('\'','') + "_html"}}.loadbalancer.server.port=80
3534
- traefik.http.routers.{{"maintenance_" + j2item.replace('@','').replace(' ','').replace('.','').replace('-','').replace('\'','') + "_html"}}.entrypoints=https

services/maintenance-page/template.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ PUBLIC_NETWORK=${PUBLIC_NETWORK}
88
MONITORED_NETWORK=${MONITORED_NETWORK}
99
REPO_CONFIG_LOCATION=${REPO_CONFIG_LOCATION}
1010
MAINTENANCE_PAGES_TRAEFIK_PRIORITY=${MAINTENANCE_PAGES_TRAEFIK_PRIORITY}
11+
VENDOR_MANUAL_SUBDOMAIN_PREFIX=${VENDOR_MANUAL_SUBDOMAIN_PREFIX}

services/registry/template.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ S3_SECRET_KEY=${REGISTRY_S3_SECRET_KEY}
1313
S3_ENDPOINT=${S3_ENDPOINT}
1414
S3_BUCKET=${REGISTRY_DOMAIN}
1515
REGISTRY_S3_BUCKET=${REGISTRY_S3_BUCKET}
16-
REGISTRY_S3_ENDPOINT=${S3_ENDPOINT}
16+
REGISTRY_S3_ENDPOINT=${REGISTRY_S3_ENDPOINT}
1717
REGISTRY_S3_SECURE=${REGISTRY_S3_SECURE}
1818
REGISTRY_AWS_REGION=${REGISTRY_AWS_REGION}
1919

services/simcore/docker-compose.deploy.aws.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ services:
1717
clusters-keeper:
1818
deploy:
1919
replicas: 1
20-
resource-usage-tracker:
21-
deploy:
22-
replicas: 3
20+
2321
static-webserver:
2422
hostname: "{{.Node.Hostname}}-{{.Service.Name}}"
2523

services/simcore/docker-compose.deploy.dalco.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ services:
1717
placement:
1818
constraints:
1919
- node.role == worker
20-
resource-usage-tracker:
21-
deploy:
22-
replicas: 3
20+
2321
traefik:
2422
command:
2523
- "--api=true"

0 commit comments

Comments
 (0)