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 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Lua
スター
1
フォーク
0
平均マージ
6日 8時間
マージ済み PR(30日)
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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず現在の metrics service の実装、特に HTTP パブリッシュ周辺で使用されている timed cache と processing cache を確認します。失敗したパブリッシュがどのように処理されているかを把握し、スケーラブルな保持方法を設計します。10 分を超える障害中も metrics payloads が失われず、将来の delta values が正しい状態を維持できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua
領域
embedded-iot, observability
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。