|
1 | 1 | --- |
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. |
36 | 3 | # |
37 | 4 | # For Proxy Server instructions please see |
38 | 5 | # https://github.com/voxel51/fiftyone-teams-app-deploy/tree/main/docker#environment-proxies |
@@ -91,7 +58,7 @@ services: |
91 | 58 | cap_drop: |
92 | 59 | - ALL |
93 | 60 | 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) |
95 | 62 | security_opt: |
96 | 63 | - no-new-privileges:true |
97 | 64 | environment: |
@@ -155,7 +122,7 @@ services: |
155 | 122 | cap_drop: |
156 | 123 | - ALL |
157 | 124 | 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) |
159 | 126 | security_opt: |
160 | 127 | - no-new-privileges:true |
161 | 128 | environment: |
@@ -186,7 +153,7 @@ services: |
186 | 153 | condition: service_started |
187 | 154 | restart: always |
188 | 155 |
|
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 |
190 | 157 | # non-root sidecar can bind agent.sock without any init container. |
191 | 158 | # Add new slots with `telemetry-socket-N: *telemetry-socket-spec`. |
192 | 159 | volumes: |
|
0 commit comments