Node-RED-docker causes regular CPU spikes
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- docker, node.js
- 領域
- devops, infrastructure
調査の方向性
まず、レポートに記載されているとおり、新しい nodered/node-red:latest (2.1.3) コンテナで問題を再現し、docker stats を使って監視します。アクティブなフローとサードパーティ製ライブラリがある場合とない場合の動作を比較します。30-minute CPU spike が繰り返し発生する原因を特定し、それが発生しなくなったことを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have recently noticed that a closely monitored docker container using image nodered/node-red:latest (2.1.3) shows, on the processor core (or thread ?) it uses, CPU spikes up to 100% every 30 minutes. My monitoring happens by polling docker stats regularly and graphing it over time. This also occurs if the container is fresh, i.e. with no active flows, no third-party libraries installed, no custom code, etc.

A fuller writeup, with many helpful comments from community members, is available on the Node-RED Forum. When reading through it, bear in mind that the suspicion that Node-RED crashed my system was false.
A quick summary of the salient findings:
- other Node.js containers on my system do not show these spikes.
- manually inserted GC calls do not mitigate the issue, making it unlikely to be related to Node.js GC
- other users can reproduce spikes, whether they're on Docker or not
Given the replies and confirmations that the issue was reproducible, I believe that my environment is irrelevant, but here goes: I am running on a system with an Intel Celeron N3350 processor with 4GB of memory. The OS is Ubuntu 20.04 LTS and I am running Docker version 19.03.8, build afacb8b7f0.
- 主要言語
- Shell
- スター
- 540
- フォーク
- 434
- 平均マージ
- 24分
- マージ済み PR(30日)
- 5
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
node-red/node-red-docker のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
node-red/node-red-docker#536 ·
-
node-red/node-red-docker#522 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
node-red/node-red-docker#513 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
node-red/node-red-docker#510 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
node-red/node-red-docker#493 · コメント 13 件 ·