Skip to content

Commit 1e9ecb8

Browse files
fix: increase telemetry-sidecar CPU (#581)
Signed-off-by: Alan Smith <209585+mo-getter@users.noreply.github.com> Co-authored-by: Kevin DiMichel <56850465+kevin-dimichel@users.noreply.github.com>
1 parent 1bb676c commit 1e9ecb8

6 files changed

Lines changed: 40 additions & 23 deletions

File tree

docker/common-services.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ services:
234234
deploy:
235235
resources:
236236
limits:
237-
cpus: "0.10"
237+
cpus: "0.20"
238238
memory: 512M
239239
reservations:
240-
cpus: "0.10"
240+
cpus: "0.20"
241241
memory: 512M
242242
restart: always
243243

@@ -282,10 +282,10 @@ services:
282282
deploy:
283283
resources:
284284
limits:
285-
cpus: "0.10"
285+
cpus: "0.20"
286286
memory: 512M
287287
reservations:
288-
cpus: "0.10"
288+
cpus: "0.20"
289289
memory: 512M
290290
restart: always
291291

docker/docs/upgrading.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,18 @@ plus a `telemetry-redis` service that buffers the streamed metrics and
112112
logs.
113113

114114
**Resource impact:**
115-
Each sidecar reserves `0.10` CPUs and `512M` memory
116-
(reservation == limit).
117-
A default deploy adds four sidecars
118-
(`fiftyone-app` + `teams-api` + `teams-plugins` + one `teams-do`), so
119-
expect roughly **+0.4 CPU** and **+2 GiB memory** in additional
120-
resource usage, plus the bundled `telemetry-redis` service (`0.10` CPU
121-
/ `256M` memory reservation, `0.25` / `512M` limits) and its
122-
`telemetry-redis-data` named volume.
115+
By default the telemetry requires an additional `0.55` CPU and `1.5Gi` of
116+
resources used by:
117+
118+
- `telemetry-sidecar` container
119+
- `teams-api`: 0.1 CPU and 512 Mi memory
120+
- `fiftyone-app`: 0.2 CPU and 512 Mi memory
121+
- Redis container
122+
- 0.25 CPU and 512Mi memory
123+
124+
The additional required resources depends of replica count for each
125+
deployment.
126+
The optional deployments may also increase this amount.
123127

124128
##### Host Requirements
125129

helm/docs/upgrading.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,25 @@ workloads (and as a native sidecar on on-demand delegated-operator
155155
buffers the streamed metrics and logs.
156156
157157
**Resource impact:**
158-
Each sidecar requests `100m` CPU and `512Mi` memory (request == limit).
159-
A default deploy adds four sidecars
160-
(`teams-api` + `fiftyone-app` + `teams-plugins` + one
161-
delegated-operator), so expect roughly **+400m CPU** and **+2 GiB
162-
memory** in additional resource usage, plus the bundled Redis (`250m`
163-
CPU / `512Mi` memory, request == limit) backed by an `emptyDir`.
158+
Each sidecar requests `200m` CPU and `512Mi` memory (request == limit).
159+
A default deploy adds three sidecars
160+
(`teams-api` + 2 x `fiftyone-app`),
161+
so expect roughly **+600m CPU** and **+1.5 GiB memory** in additional
162+
resource usage, plus the bundled Redis
163+
(`250m` CPU / `512Mi` memory, request == limit)
164+
By default the telemetry requires an additional `850m` CPU and `2Gi` of
165+
resources used by:
166+
167+
- `telemetry-sidecar` container
168+
- `200m` CPU and `512Mi` memory per each replica of
169+
- `teams-api` x 1
170+
- `fiftyone-app` x 2
171+
- Redis container
172+
- `250m` CPU and `512Mi` memory
173+
174+
The additional required resources depends of replica count for each
175+
deployment.
176+
The optional deployments may also increase this amount.
164177
Tune via `telemetry.sidecar.resources` and `telemetry.redis.resources`.
165178
Opt into a `PersistentVolumeClaim` with
166179
`telemetry.redis.persistence.enabled: true`.

helm/fiftyone-teams-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ If pods show unhealthy states (e.g., `0/1`, `CrashLoopBackOff`, `Pending`):
11001100
| telemetry.sidecar.image.pullPolicy | string | `"Always"` | Instruct when the kubelet should pull (download) the specified image. One of `IfNotPresent`, `Always` or `Never`. [Reference][image-pull-policy]. |
11011101
| telemetry.sidecar.image.repository | string | `"voxel51/telemetry-sidecar"` | Container image for `telemetry-sidecar`. |
11021102
| telemetry.sidecar.image.tag | string | `""` | Image tag for `telemetry-sidecar`. Defaults to `Chart.AppVersion`. |
1103-
| telemetry.sidecar.resources | object | `{"limits":{"cpu":"100m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"512Mi"}}` | Resource requests/limits for each `telemetry-sidecar` container. |
1103+
| telemetry.sidecar.resources | object | `{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"200m","memory":"512Mi"}}` | Resource requests/limits for each `telemetry-sidecar` container. |
11041104

11051105
<!-- markdownlint-enable MD060 -->
11061106

helm/fiftyone-teams-app/values.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4274,7 +4274,7 @@
42744274
"limits": {
42754275
"properties": {
42764276
"cpu": {
4277-
"default": "100m",
4277+
"default": "200m",
42784278
"title": "cpu",
42794279
"type": "string"
42804280
},
@@ -4291,7 +4291,7 @@
42914291
"requests": {
42924292
"properties": {
42934293
"cpu": {
4294-
"default": "100m",
4294+
"default": "200m",
42954295
"title": "cpu",
42964296
"type": "string"
42974297
},

helm/fiftyone-teams-app/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,10 +1699,10 @@ telemetry:
16991699
# -- Resource requests/limits for each `telemetry-sidecar` container.
17001700
resources:
17011701
requests:
1702-
cpu: 100m
1702+
cpu: 200m
17031703
memory: 512Mi
17041704
limits:
1705-
cpu: 100m
1705+
cpu: 200m
17061706
memory: 512Mi
17071707
# -- ServiceAccount names (in `namespace.name`) bound to the telemetry
17081708
# pod-logs Role. When empty, the RoleBinding binds the chart's main app

0 commit comments

Comments
 (0)