This repository was archived by the owner on Aug 26, 2026. It is now read-only.
fix(observability): schedule pyroscope on frankfurt as intended - #763
Merged
Conversation
The pyroscope HelmRelease carried `nodeSelector.personal-stack/site: frankfurt` at the top level of `values`. The chart reads scheduling keys under its own `pyroscope` key, so Helm discarded the top-level entry and the pod was scheduled without any constraint — it landed on enschede-gtx-960m-1, a 2015 laptop, and has run there for 109 days. Nesting the selector under `pyroscope` makes the constraint take effect. `placement_intent.frankfurt_only` gains a `pyroscope` entry so the inventory states the same intent the release does. This moves roughly 17m of steady CPU and 120 MiB off a node whose entire CPU baseline is 1160m, of which only 284m was workloads. The existing 20Gi volume is `local-path` with a `kubernetes.io/hostname` nodeAffinity pinning it to enschede-gtx-960m-1, so it cannot follow the pod. The PVC has to be deleted for the StatefulSet to provision a fresh one on frankfurt, which discards accumulated profile history. Profiles are short-horizon debugging data and the retention loss is accepted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #761, which GitHub auto-closed when its stacked base branch was deleted on merge of #760. Same commit, now based on
main.Problem
pyroscope-0has been running onenschede-gtx-960m-1— a 2015 laptop — for 109 days, despite the HelmRelease declaring frankfurt.Root cause
The selector was at the top level of
values:The chart reads scheduling keys under its own
pyroscopekey. A top-levelnodeSelectoris silently dropped, so the pod was scheduled with no constraint at all and landed wherever the scheduler put it. This is the same nesting trap the alloy, tempo and loki releases hit.Change
nodeSelectormoves underpyroscope, where the chart reads it.placement_intent.frankfurt_onlygains apyroscopeentry so the inventory states the same intent as the release.Why it matters here
The 960M node's entire CPU baseline is 1160m, of which only 284m is workloads — the rest is host daemons. pyroscope accounted for roughly 17m of steady CPU and 120 MiB on that node, and it was never meant to be there.
Operational note — this needs a manual step after merge
The existing 20Gi volume cannot follow the pod:
local-pathwithreclaimPolicy: Delete. The StatefulSet will stayPendinguntil the PVC is deleted so a fresh volume provisions on frankfurt, which discards accumulated profile history. Profiles are short-horizon debugging data, so the retention loss is accepted. Frankfurt has 236 GiB free.Validation
kubectl kustomize platform/cluster/flux/clusters/productionbuilds.cd platform/tests && node --test— 56/56 pass.