Skip to content

Commit 170cddd

Browse files
Apply suggestions from code review
Co-authored-by: Kevin DiMichel <56850465+kevin-dimichel@users.noreply.github.com> Signed-off-by: Alan Smith <209585+mo-getter@users.noreply.github.com>
1 parent f435db5 commit 170cddd

9 files changed

Lines changed: 17 additions & 95 deletions

docker/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@ FiftyOne Enterprise bundles a telemetry sidecar and Redis backend by
663663
default in every compose file.
664664
The Settings → Metrics page in teams-app exposes live per-service
665665
metrics (CPU, memory, FDs, thread counts) and tailed logs.
666-
No opt-in flags are required.
667666

668667
Please refer to the
669668
[telemetry configuration documentation](./docs/configuring-telemetry.md)

docker/internal-auth/compose.delegated-operators.gpu.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ services:
5656
profiles: ["gpu"]
5757
user: "1000:1000"
5858
cap_add:
59-
- SYS_PTRACE # allows for additional profiling metrics (sampled stacks via py-spy)
59+
- SYS_PTRACE # required for profiling metrics (sampled stacks via py-spy)
6060
deploy:
6161
resources:
6262
limits:
@@ -91,7 +91,7 @@ services:
9191
condition: service_started
9292
restart: always
9393

94-
# Tmpfs-backed named volume with uid/gid set at mount time so the
94+
# tmpfs-backed named volume with uid/gid set at mount time so the
9595
# non-root sidecar can bind agent.sock.
9696
volumes:
9797
plugins-vol:

docker/internal-auth/compose.delegated-operators.yaml

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
11
---
2-
# Layered on top of a base compose file (e.g. compose.yaml). The base
3-
# compose file is expected to provide the `telemetry-redis` service.
4-
#
5-
# Each delegated-operator worker shares its PID namespace with a paired
6-
# telemetry sidecar (compose's `pid: "service:<name>"` only joins one
7-
# replica). To observe more than one worker at a time we declare a
8-
# fixed set of slots; slot 1 is always on and slots 2-3 are opt-in via
9-
# cumulative Compose profiles:
10-
#
11-
# slot 1 teams-do + teams-do-telemetry (always on)
12-
# slot 2 teams-do-2 + teams-do-2-telemetry (do-2, do-3)
13-
# slot 3 teams-do-3 + teams-do-3-telemetry (do-3)
14-
#
15-
# Default (no profile) runs one worker. Selecting `do-N` for N>1 adds
16-
# slots up to N; profiles are nested so `do-3` includes slot 2.
17-
# Activate via `COMPOSE_PROFILES` in `.env`, e.g.
18-
#
19-
# COMPOSE_PROFILES=do-3
20-
# docker compose -f compose.yaml -f compose.delegated-operators.yaml up -d
21-
#
22-
# or equivalently with explicit flags:
23-
#
24-
# docker compose --profile do-3 \
25-
# -f compose.yaml -f compose.delegated-operators.yaml up -d
26-
#
27-
# This replaces the pre-telemetry `FIFTYONE_DELEGATED_OPERATOR_WORKER_REPLICAS`
28-
# knob, which scaled `teams-do` to N replicas but left N-1 of them
29-
# invisible to the telemetry sidecar. The cap of 3 is a deliberate
30-
# trade-off — for higher worker counts prefer the helm chart. If
31-
# docker compose is required, the slot-2/3 blocks below are templates:
32-
# duplicate them as `teams-do-4` / `teams-do-4-telemetry` etc.,
33-
# bumping the service name, `pid`, `POD_NAME`, `-n teams-do-N`, and
34-
# `telemetry-socket-N` volume on each copy. See
35-
# docker/docs/configuring-telemetry.md for details.
2+
# See docker/docs/configuring-telemetry.md for details on telemetry settings.
363
#
374
# For Proxy Server instructions please see
385
# https://github.com/voxel51/fiftyone-teams-app-deploy/tree/main/docker#environment-proxies
@@ -91,7 +58,7 @@ services:
9158
cap_drop:
9259
- ALL
9360
cap_add:
94-
- SYS_PTRACE # allows for additional profiling metrics (sampled stacks via py-spy)
61+
- SYS_PTRACE # required for profiling metrics (sampled stacks via py-spy)
9562
security_opt:
9663
- no-new-privileges:true
9764
environment:
@@ -155,7 +122,7 @@ services:
155122
cap_drop:
156123
- ALL
157124
cap_add:
158-
- SYS_PTRACE # allows for additional profiling metrics (sampled stacks via py-spy)
125+
- SYS_PTRACE # required for profiling metrics (sampled stacks via py-spy)
159126
security_opt:
160127
- no-new-privileges:true
161128
environment:
@@ -186,7 +153,7 @@ services:
186153
condition: service_started
187154
restart: always
188155

189-
# Tmpfs-backed named volumes with uid/gid set at mount time so the
156+
# tmpfs-backed named volumes with uid/gid set at mount time so the
190157
# non-root sidecar can bind agent.sock without any init container.
191158
# Add new slots with `telemetry-socket-N: *telemetry-socket-spec`.
192159
volumes:

docker/internal-auth/compose.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
---
22
# For Proxy Server instructions please see
33
# https://github.com/voxel51/fiftyone-teams-app-deploy/tree/main/docker#environment-proxies
4-
#
5-
# Telemetry (`telemetry-redis` + per-service sidecars) is enabled by
6-
# default. To opt out, scale the telemetry services to 0 in a
7-
# `compose.override.yaml`, or unset `FIFTYONE_TELEMETRY_REDIS_URL` and
8-
# remove the sidecar services. See docker/docs/configuring-telemetry.md.
94
services:
105
fiftyone-app:
116
extends:

docker/internal-auth/env.template

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,22 @@ FIFTYONE_APP_ENABLE_QUERY_PERFORMANCE=true
100100
# 2 and/or 3, each paired with its own telemetry sidecar (static cap
101101
# of 3). `do-N` includes every lower slot, so `do-3` runs three workers.
102102
#
103-
# This replaces the pre-telemetry `FIFTYONE_DELEGATED_OPERATOR_WORKER_REPLICAS`
104-
# env var. To match its previous default of 3 workers, set
105-
# COMPOSE_PROFILES=do-3 below. See docker/docs/configuring-telemetry.md
103+
# See docker/docs/configuring-telemetry.md
106104
# and docker/docs/configuring-delegated-operators.md for details. The
107105
# value must not exceed the max concurrent delegated operators set in
108-
# your license file. For more than 3 workers, use the helm chart.
109-
# COMPOSE_PROFILES=do-3
106+
# your license file.
110107

111108
# ─── Telemetry (bundled by default; overrides below are optional) ──────
112109
# Telemetry (`telemetry-redis` + per-service sidecars) is included in
113110
# every compose file by default. The variables below only need to be set
114-
# when overriding the bundled defaults. See
111+
# when overriding the defaults. See
115112
# docker/docs/configuring-telemetry.md to opt out or swap in an external
116113
# Redis.
117114

118115
# Redis URL used by the telemetry sidecars and the main fiftyone-app /
119116
# teams-api / teams-app / teams-plugins / teams-do containers. Leave
120117
# blank to use the bundled in-stack Redis (redis://telemetry-redis:6379).
121-
# Override to point at a managed Redis (e.g. ElastiCache, MemoryStore).
118+
# Override to point at a managed Redis.
122119
# FIFTYONE_TELEMETRY_REDIS_URL=
123120

124121
# Redis image and max memory for the bundled telemetry backend. The
@@ -134,4 +131,4 @@ FIFTYONE_APP_ENABLE_QUERY_PERFORMANCE=true
134131
# FIFTYONE_APP_TARGET_NAME=hypercorn
135132
# TEAMS_API_TARGET_NAME=fiftyone-teams-api
136133
# TEAMS_PLUGINS_TARGET_NAME=hypercorn
137-
# TEAMS_DO_TARGET_NAME=fiftyone delegated
134+
# TEAMS_DO_TARGET_NAME="fiftyone delegated"

docker/legacy-auth/compose.delegated-operators.gpu.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ services:
5656
profiles: ["gpu"]
5757
user: "1000:1000"
5858
cap_add:
59-
- SYS_PTRACE # allows for additional profiling metrics (sampled stacks via py-spy)
59+
- SYS_PTRACE # required for profiling metrics (sampled stacks via py-spy)
6060
deploy:
6161
resources:
6262
limits:

docker/legacy-auth/compose.delegated-operators.yaml

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
11
---
2-
# Layered on top of a base compose file (e.g. compose.yaml). The base
3-
# compose file is expected to provide the `telemetry-redis` service.
4-
#
5-
# Each delegated-operator worker shares its PID namespace with a paired
6-
# telemetry sidecar (compose's `pid: "service:<name>"` only joins one
7-
# replica). To observe more than one worker at a time we declare a
8-
# fixed set of slots; slot 1 is always on and slots 2-3 are opt-in via
9-
# cumulative Compose profiles:
10-
#
11-
# slot 1 teams-do + teams-do-telemetry (always on)
12-
# slot 2 teams-do-2 + teams-do-2-telemetry (do-2, do-3)
13-
# slot 3 teams-do-3 + teams-do-3-telemetry (do-3)
14-
#
15-
# Default (no profile) runs one worker. Selecting `do-N` for N>1 adds
16-
# slots up to N; profiles are nested so `do-3` includes slot 2.
17-
# Activate via `COMPOSE_PROFILES` in `.env`, e.g.
18-
#
19-
# COMPOSE_PROFILES=do-3
20-
# docker compose -f compose.yaml -f compose.delegated-operators.yaml up -d
21-
#
22-
# or equivalently with explicit flags:
23-
#
24-
# docker compose --profile do-3 \
25-
# -f compose.yaml -f compose.delegated-operators.yaml up -d
26-
#
27-
# This replaces the pre-telemetry `FIFTYONE_DELEGATED_OPERATOR_WORKER_REPLICAS`
28-
# knob, which scaled `teams-do` to N replicas but left N-1 of them
29-
# invisible to the telemetry sidecar. The cap of 3 is a deliberate
30-
# trade-off — for higher worker counts prefer the helm chart. If
31-
# docker compose is required, the slot-2/3 blocks below are templates:
32-
# duplicate them as `teams-do-4` / `teams-do-4-telemetry` etc.,
33-
# bumping the service name, `pid`, `POD_NAME`, `-n teams-do-N`, and
34-
# `telemetry-socket-N` volume on each copy. See
35-
# docker/docs/configuring-telemetry.md for details.
2+
# See docker/docs/configuring-telemetry.md for details on telemetry settings.
363
#
374
# For Proxy Server instructions please see
385
# https://github.com/voxel51/fiftyone-teams-app-deploy/tree/main/docker#environment-proxies
@@ -188,7 +155,7 @@ services:
188155
condition: service_started
189156
restart: always
190157

191-
# Tmpfs-backed named volumes with uid/gid set at mount time so the
158+
# tmpfs-backed named volumes with uid/gid set at mount time so the
192159
# non-root sidecar can bind agent.sock without any init container.
193160
# Add new slots with `telemetry-socket-N: *telemetry-socket-spec`.
194161
volumes:

docker/legacy-auth/compose.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
# For Proxy Server instructions please see
33
# https://github.com/voxel51/fiftyone-teams-app-deploy/tree/main/docker#environment-proxies
44
#
5-
# Telemetry (`telemetry-redis` + per-service sidecars) is enabled by
6-
# default. To opt out, scale the telemetry services to 0 in a
7-
# `compose.override.yaml`, or unset `FIFTYONE_TELEMETRY_REDIS_URL` and
8-
# remove the sidecar services. See docker/docs/configuring-telemetry.md.
5+
# See docker/docs/configuring-telemetry.md for details on telemetry settings.
96
services:
107
fiftyone-app:
118
extends:

docker/legacy-auth/env.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ FIFTYONE_APP_ENABLE_QUERY_PERFORMANCE=true
105105
# 2 and/or 3, each paired with its own telemetry sidecar (static cap
106106
# of 3). `do-N` includes every lower slot, so `do-3` runs three workers.
107107
#
108-
# This replaces the pre-telemetry `FIFTYONE_DELEGATED_OPERATOR_WORKER_REPLICAS`
108+
# This replaces the deprecated `FIFTYONE_DELEGATED_OPERATOR_WORKER_REPLICAS`
109109
# env var. To match its previous default of 3 workers, set
110110
# COMPOSE_PROFILES=do-3 below. See docker/docs/configuring-telemetry.md
111111
# and docker/docs/configuring-delegated-operators.md for details. The
@@ -139,4 +139,4 @@ FIFTYONE_APP_ENABLE_QUERY_PERFORMANCE=true
139139
# FIFTYONE_APP_TARGET_NAME=hypercorn
140140
# TEAMS_API_TARGET_NAME=fiftyone-teams-api
141141
# TEAMS_PLUGINS_TARGET_NAME=hypercorn
142-
# TEAMS_DO_TARGET_NAME=fiftyone delegated
142+
# TEAMS_DO_TARGET_NAME="fiftyone delegated"

0 commit comments

Comments
 (0)