simvue-io / simvue-io/python-api

Crontab spams metrics to server even once run is completed in Offline mode

未关闭
#422 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug offline
主要语言
Python
星标
4
派生
1
平均合并
5 天 8 小时
30 天内合并 PR
4

描述

When using Offline mode, with a cronjob using simvue_sender to upload metrics every minute, it appears that metrics are spammed to the server whenever there is something in the Simvue cache, even when the simulation / run is closed.

It also looks like it repeatedly sends the same metrics/events to the run. For example, in this run (https://dev01.simvue.io/dashboard/runs/run/G9rcfVMCiZcjPSZXQwHL6P), the last minute in which it sent events before it crashed, it sent 340 events at once (should send a maximum of ~5 at any time for this simulation). It also sends the same event over and over again (eg each 'Starting Epoch X' message should only ever appear once, yet every minute it is sent multiple times.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Offline 模式的 simvue_sender cronjob 路径开始,跟踪一次运行结束后如何选择缓存的指标和事件。使用每分钟上传一次来复现报告中的行为,然后验证已完成的运行不再接收数据,并且每个指标或事件只发送一次。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
observability-sre
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。