diff --git a/deploy/observability/tempo.yaml b/deploy/observability/tempo.yaml index 4642389..caea17e 100644 --- a/deploy/observability/tempo.yaml +++ b/deploy/observability/tempo.yaml @@ -6,6 +6,9 @@ tempo: reportingEnabled: false memBallastSizeMbs: 0 retention: 72h + extraEnv: + - name: GOMEMLIMIT + value: 320MiB resources: - requests: {cpu: 75m, memory: 192Mi} - limits: {memory: 384Mi} + requests: {cpu: 75m, memory: 256Mi} + limits: {memory: 512Mi} diff --git a/docs/deployment/observability.md b/docs/deployment/observability.md index 6f745c6..80970df 100644 --- a/docs/deployment/observability.md +++ b/docs/deployment/observability.md @@ -12,6 +12,8 @@ Tempo 固定在 2.x 的单进程部署。升级到 3.x 前要单独核对消息队列、存储和迁移要求。现有预发布的开发型 StorageClass 由 SSD VM 提供,文件和 TSDB 的保留占用以实际磁盘监控为准。 [Prometheus Chart](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus) · [Grafana Helm](https://grafana.com/docs/grafana/latest/setup-grafana/installation/helm/) · [Loki 单进程](https://grafana.com/docs/loki/latest/setup/install/helm/install-monolithic/) · [Tempo 部署](https://grafana.com/docs/tempo/latest/set-up-for-tracing/setup-tempo/deploy/) · [Alloy Helm](https://grafana.com/docs/alloy/latest/set-up/install/kubernetes/) +Tempo 的容器内存上限为 512 MiB,Go 内存软上限为 320 MiB,留出空间给文件缓存和运行时之外的内存。若出现反复重启,先看上一个容器的日志、探针事件和 cgroup 的 `memory.events`。Pod Ready 后还要从 Alloy 写入新链路,并按 Trace ID 从 Tempo 查回。Alloy 在接收端故障时可能因发送队列满而拒收,请在恢复后重发验收链路。 [Go 内存软上限](https://go.dev/doc/gc-guide#Memory_limit) + ## 安装和更新 先核对工作集群、`item-atlas-staging` 命名空间、默认 StorageClass 和 SSD 余量。由集群维护账号创建监控命名空间,并在其下创建 `atlas-grafana-admin` Secret。将管理员密码以受控文件输入,执行后安全移除临时文件。