ops: /api/v1/health does not check MongoDB or Redis
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- express, javascript, mongodb, node.js, redis
- 領域
- backend, observability
調査の方向性
Start at the /api/v1/health route and check the Render health check configuration, MongoDB connection setup, Redis client, and graceful shutdown handling. Readiness should ping MongoDB and Redis with short timeouts, report Redis as degraded when unavailable, and return 503 for MongoDB failure or shutdown; verify the existing liveness route remains cheap.
索引モデルが issue の本文から書いたものです。
説明
GET /api/v1/health always answers { success: true, message: "StudyNotion server is running." }, even when MongoDB or Redis is unreachable. Render's health check and the uptime pings therefore report the service as healthy while requests fail.
Suggested fix
- Keep a cheap liveness route, and add a readiness route that runs
mongoose.connection.db.admin().ping()(and a RedisPING) with short timeouts, returning 503 when MongoDB is down and reporting Redis asdegradedbecause the app can run without it. - Point Render's health check path at the readiness route, and flip it to 503 at the start of graceful shutdown so in-flight requests drain.
Found while reviewing StudyNotion with Claude Code.
- 主要言語
- JavaScript
- スター
- 23
- フォーク
- 8
- 平均マージ
- 11分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
khemssharma/StudyNotion のほかの issue
-
docs: README is missing the sections its introduction promises; outdated clone URL and Node versionオープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
khemssharma/StudyNotion#55 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
khemssharma/StudyNotion#59 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
khemssharma/StudyNotion#58 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
khemssharma/StudyNotion#57 ·
-
documentation
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
khemssharma/StudyNotion#54 ·
khemssharma/StudyNotion の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
OWASP/CheatSheetSeries#3018 ·
メンテナーはふだん 1 日以内に返信
-
Radix number block generates NaN after switching a negative or decimal number to binary, octal or hex対応中かも @matthewalberto が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
mit-cml/appinventor-sources#4246 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 83/100
GoogleChrome/modern-web-guidance-src#3675 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信