jangala-dev / jangala-dev/devicecode-lua

Metrics can be lost if backhual is not available for more than 10 minutes [future issue]

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

还没有人认领这个 Issue。

enhancement
主要语言
Lua
星标
1
派生
0
平均合并
6 天 8 小时
30 天内合并 PR
6

描述

Given the current metrics service implementation if we cannot publish metrics over HTTP for more than 10 minutes we will start to lose metrics payloads, this can leave chunks of delta values missing which will cause future metrics to be incorrect. We need to think of a scalable way to preserve metrics if a publish fails, perhaps by cycling metrics back into the timed cache or processing cache if they cannot be immediately sent, an infinitely sized queue could also be used but this will not scale well

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

调研方向

首先检查当前的 metrics service 实现,尤其是 HTTP 发布流程周围使用的 timed cache 和 processing cache。确定失败的发布是如何处理的,并设计一种可扩展的保留方案;当 metrics payloads 在超过 10 分钟的中断期间不会丢失,且未来的 delta values 仍然正确时,即视为完成。

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

评估

技术栈
lua
领域
embedded-iot, observability
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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