From 8d204fcc2ecc773ea6ce0e9726c858f9f04d4f0c Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 10 Mar 2026 23:00:19 +0900 Subject: [PATCH] docs: record gateway monitor url fix --- .../01_PRINCIPLES/Runtime_Principles.md | 1 + journey/README.md | 2 + ...Œ์ž”์กด_24monitorํ”„๋ก์‹œ์‹คํŒจ_๋ณต๊ตฌ.md | 51 +++++++++++++++++++ ...or_๊ต์ •_๋ฐ_์‹ค๋„๋ฉ”์ธ_์ „์ˆ˜๊ฒ€์ฆ.md | 24 +++++++++ 4 files changed, 78 insertions(+) create mode 100644 journey/troubleshooting/260310_23gateway_monitor_url_๊ตฌ์ฃผ์†Œ์ž”์กด_24monitorํ”„๋ก์‹œ์‹คํŒจ_๋ณต๊ตฌ.md create mode 100644 journey/worklog/260310_23gateway_monitor_url_24monitor_๊ต์ •_๋ฐ_์‹ค๋„๋ฉ”์ธ_์ „์ˆ˜๊ฒ€์ฆ.md diff --git a/00_Philosophy/01_PRINCIPLES/Runtime_Principles.md b/00_Philosophy/01_PRINCIPLES/Runtime_Principles.md index 230ac8f..c422c5a 100644 --- a/00_Philosophy/01_PRINCIPLES/Runtime_Principles.md +++ b/00_Philosophy/01_PRINCIPLES/Runtime_Principles.md @@ -15,6 +15,7 @@ ## 4. Drift Is a Runtime Failure - Git ๊ด€๋ฆฌ๋ณธ๊ณผ ์‹ค์ œ ์‹คํ–‰๋ณธ์ด ๋‹ค๋ฅด๋ฉด ๋ฌธ์„œ ๋ถˆ์ผ์น˜๊ฐ€ ์•„๋‹ˆ๋ผ ๋Ÿฐํƒ€์ž„ ์‹คํŒจ๋‹ค. - ํŠนํžˆ nginx, env, upstream, mount, deploy ๊ฒฝ๋กœ๋Š” "๋‘˜ ๋‹ค ๋งž์„ ์ˆ˜ ์—†๋‹ค"๋Š” ์ „์ œ๋กœ ๋‹ค๋ฃฌ๋‹ค. +- ์ผ๋ถ€ ๊ฒฝ๋กœ๋งŒ ์ƒˆ ๊ธฐ์ค€์œผ๋กœ ๋ฐ”๋€Œ๊ณ  ๋‹ค๋ฅธ ๊ฒฝ๋กœ๊ฐ€ ๊ตฌ์ฃผ์†Œ๋ฅผ ์œ ์ง€ํ•˜๋Š” ์ƒํƒœ๋„ ์‹คํŒจ๋กœ ๋ณธ๋‹ค. ๋ถ€๋ถ„ ์ •์ƒ์€ ๋Ÿฐํƒ€์ž„ ์„ฑ๊ณต์ด ์•„๋‹ˆ๋‹ค. ## 5. Runtime Truth Comes From the Loaded Path - ์„ค์ •์˜ ์ง„์‹ค์€ ์ €์žฅ๋œ ํŒŒ์ผ์ด ์•„๋‹ˆ๋ผ ์‹ค์ œ ๋กœ๋“œ๋œ ๊ฒฝ๋กœ์—์„œ ํŒ๋‹จํ•œ๋‹ค. diff --git a/journey/README.md b/journey/README.md index c649656..93e86c5 100644 --- a/journey/README.md +++ b/journey/README.md @@ -38,6 +38,7 @@ - [250727 51124 ์„œ๋ฒ„ ์ด์ „ ์ž‘์—… ๋ฐ nginx ํ”„๋ก์‹œ ์„ค์ •](./troubleshooting/250727_happybell80_51124์„œ๋ฒ„์ด์ „์ž‘์—….md) - [51123 ๊ตฌ IP ํ•˜๋“œ์ฝ”๋”ฉ๊ณผ ๋Ÿฐํƒ€์ž„ SSOT ๋ถˆ์ผ์น˜ ์ด์Šˆ](./troubleshooting/260309_51123_๊ตฌIPํ•˜๋“œ์ฝ”๋”ฉ_๋Ÿฐํƒ€์ž„SSOT๋ถˆ์ผ์น˜_์ด์Šˆ.md) - [24์„œ๋ฒ„ ์šฐ๋ถ„ํˆฌ ํ„ฐ๋ฏธ๋„ ๋ถˆ๊ฐ€, ๋„คํŠธ์›Œํฌ ๋Œ€์—ญ ์˜ค๋ฅ˜, python3-apt ๋ณต๊ตฌ ๊ธฐ๋ก](./troubleshooting/260309_24์„œ๋ฒ„_์šฐ๋ถ„ํˆฌํ„ฐ๋ฏธ๋„๋ถˆ๊ฐ€_๋„คํŠธ์›Œํฌ๋Œ€์—ญ์˜ค๋ฅ˜_python3apt๋ณต๊ตฌ.md) +- [23 gateway MONITOR_URL ๊ตฌ์ฃผ์†Œ ์ž”์กด์œผ๋กœ 24 monitor ํ”„๋ก์‹œ ์‹คํŒจ ๋ณต๊ตฌ](./troubleshooting/260310_23gateway_monitor_url_๊ตฌ์ฃผ์†Œ์ž”์กด_24monitorํ”„๋ก์‹œ์‹คํŒจ_๋ณต๊ตฌ.md) - [Gitea git credential helper ํ‘œ์ค€ํ™”](./troubleshooting/260309_gitea_git_credential_helper_ํ‘œ์ค€ํ™”.md) - [23์„œ๋ฒ„ ์›Œํฌ์ŠคํŽ˜์ด์Šค ์ธํ”„๋ผ ๊ตฌ์กฐ์ •๋ฆฌ ์ด์Šˆ](./troubleshooting/260307_23์„œ๋ฒ„_์›Œํฌ์ŠคํŽ˜์ด์Šค_์ธํ”„๋ผ_๊ตฌ์กฐ์ •๋ฆฌ_์ด์Šˆ.md) - [์™ธ๋ถ€ NAS -> ๋‚ด๋ถ€ NAS ์ปดํผ๋‹ˆ์—‘์Šค ํŒŒ์ผ ๋™๊ธฐํ™” ์•„์ด๋””์–ด](./ideas/260307_external_nas_companyx_sync_์•„์ด๋””์–ด.md) @@ -56,5 +57,6 @@ - [23์ œ์–ด๋ฉด gateway workspace-config ๋‹จ์ผํ™”](./worklog/260309_23์ œ์–ด๋ฉด_gateway_workspace_config_๋‹จ์ผํ™”.md) - [51123 ๊ตฌIP active runtime ์ œ๊ฑฐ 1์ฐจ](./worklog/260309_51123_๊ตฌIP_active_runtime_์ œ๊ฑฐ_1์ฐจ.md) - [24์„œ๋ฒ„ robeing runtime workspace-config ๋‹จ์ผํ™”](./worklog/260310_24์„œ๋ฒ„_robeing_runtime_workspace_config_๋‹จ์ผํ™”.md) +- [23 gateway MONITOR_URL 24 monitor ๊ต์ • ๋ฐ ์‹ค๋„๋ฉ”์ธ ์ „์ˆ˜๊ฒ€์ฆ](./worklog/260310_23gateway_monitor_url_24monitor_๊ต์ •_๋ฐ_์‹ค๋„๋ฉ”์ธ_์ „์ˆ˜๊ฒ€์ฆ.md) - [24์ „ํ™˜ ๋ฐฐํฌ๋Œ€์ƒ๊ณผ ingress 24IP ๊ต์ • 1์ฐจ](./worklog/260309_24์ „ํ™˜_๋ฐฐํฌ๋Œ€์ƒ๊ณผ_ingress_24IP_๊ต์ •_1์ฐจ.md) - [24์„œ๋ฒ„ NAS ๋งˆ์šดํŠธ ๋ณต์› ๋ฐ ONNX ๋ฐฑ์—… ์‹คํ–‰](./worklog/260309_24์„œ๋ฒ„_nas๋งˆ์šดํŠธ๋ณต์›_onnx๋ฐฑ์—…์‹คํ–‰.md) diff --git a/journey/troubleshooting/260310_23gateway_monitor_url_๊ตฌ์ฃผ์†Œ์ž”์กด_24monitorํ”„๋ก์‹œ์‹คํŒจ_๋ณต๊ตฌ.md b/journey/troubleshooting/260310_23gateway_monitor_url_๊ตฌ์ฃผ์†Œ์ž”์กด_24monitorํ”„๋ก์‹œ์‹คํŒจ_๋ณต๊ตฌ.md new file mode 100644 index 0000000..a33e4ca --- /dev/null +++ b/journey/troubleshooting/260310_23gateway_monitor_url_๊ตฌ์ฃผ์†Œ์ž”์กด_24monitorํ”„๋ก์‹œ์‹คํŒจ_๋ณต๊ตฌ.md @@ -0,0 +1,51 @@ +--- +tags: [infra, 51123, 51124, gateway, monitor, runtime, troubleshooting] +--- + +# 260310 23 gateway MONITOR_URL ๊ตฌ์ฃผ์†Œ ์ž”์กด์œผ๋กœ 24 monitor ํ”„๋ก์‹œ ์‹คํŒจ ๋ณต๊ตฌ + +## ์ƒ์œ„ ์›์น™ +- [Infra Project Identity](../../00_Philosophy/00_IDENTITY/Infra_Project_Identity.md) +- [Core Infrastructure Principles](../../00_Philosophy/01_PRINCIPLES/Core_Infrastructure_Principles.md) +- [Runtime Principles](../../00_Philosophy/01_PRINCIPLES/Runtime_Principles.md) + +## ๊ด€๋ จ ๋ฌธ์„œ +- [51123 ๊ตฌ IP ํ•˜๋“œ์ฝ”๋”ฉ๊ณผ ๋Ÿฐํƒ€์ž„ SSOT ๋ถˆ์ผ์น˜ ์ด์Šˆ](./260309_51123_๊ตฌIPํ•˜๋“œ์ฝ”๋”ฉ_๋Ÿฐํƒ€์ž„SSOT๋ถˆ์ผ์น˜_์ด์Šˆ.md) +- [24์„œ๋ฒ„ ์‹ค์„œ๋น„์Šค ์šด์˜์ „ํ™˜ ๋ฆฌ์„œ์น˜](../research/260309_24์„œ๋ฒ„_์‹ค์„œ๋น„์Šค์šด์˜์ „ํ™˜_๋ฆฌ์„œ์น˜.md) +- [23์ œ์–ด๋ฉด gateway workspace-config ๋‹จ์ผํ™”](../worklog/260309_23์ œ์–ด๋ฉด_gateway_workspace_config_๋‹จ์ผํ™”.md) +- [23 gateway MONITOR_URL 24 monitor ๊ต์ • ๋ฐ ์‹ค๋„๋ฉ”์ธ ์ „์ˆ˜๊ฒ€์ฆ](../worklog/260310_23gateway_monitor_url_24monitor_๊ต์ •_๋ฐ_์‹ค๋„๋ฉ”์ธ_์ „์ˆ˜๊ฒ€์ฆ.md) + +## ๋ฌธ์ œ +- `https://ro-being.com/rb8001/health`๋Š” ์ •์ƒ์ด์—ˆ์ง€๋งŒ, ๊ฒŒ์ดํŠธ์›จ์ด์˜ monitor ๊ฒฝ๋กœ๋Š” ๋ฐ˜๋ณต ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค. +- 2026-03-10 22:28~22:47 KST `robeing-gateway` ๋กœ๊ทธ์— `Proxying stats request to: http://192.168.0.100:9024/api/stats/rb8001`์™€ `All connection attempts failed`๊ฐ€ ๋ฐ˜๋ณต๋์Šต๋‹ˆ๋‹ค. +- ๊ฐ™์€ ์‹œ๊ฐ 24 ์„œ๋ฒ„ `robeing_monitor`๋Š” `127.0.0.1:9024/healthz -> 200`, `0.0.0.0:9024 LISTEN` ์ƒํƒœ์˜€์Šต๋‹ˆ๋‹ค. + +## ์›์ธ +- `23 gateway`์˜ active runtime SSOT์ธ `workspace-config/runtime.env`์— `MONITOR_URL=http://192.168.0.100:9024`๊ฐ€ ๋‚จ์•„ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. +- ๋ฐ˜๋ฉด `ROBEING_DEFAULT_HOST=192.168.0.106`์€ ์ด๋ฏธ 24 ๊ธฐ์ค€์œผ๋กœ ๊ต์ •๋ผ ์žˆ์–ด, ์ฑ„ํŒ… ๊ธฐ๋ณธ ๊ฒฝ๋กœ์™€ monitor ๊ฒฝ๋กœ์˜ upstream ๊ธฐ์ค€์ด ์„œ๋กœ ๋‹ฌ๋ž์Šต๋‹ˆ๋‹ค. +- ๊ฒฐ๊ณผ์ ์œผ๋กœ ์™ธ๋ถ€ ํ—ฌ์Šค ์ผ๋ถ€๋Š” ์ •์ƒ์ฒ˜๋Ÿผ ๋ณด์˜€์ง€๋งŒ, stats/preferences๋Š” ๋‚ด๋ ค์ง„ 23 monitor ์ฃผ์†Œ๋กœ ํ”„๋ก์‹œ๋์Šต๋‹ˆ๋‹ค. + +## ์กฐ์น˜ +- `workspace-config/runtime.env`์˜ `MONITOR_URL`์„ `http://192.168.0.106:9024`๋กœ ๊ต์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. +- `23 robeing-gateway`๋ฅผ `docker compose down && docker compose up -d --build`๋กœ ์žฌ๊ธฐ๋™ํ•ด ์ƒˆ runtime ๊ฐ’์„ ๋‹ค์‹œ ๋กœ๋“œํ–ˆ์Šต๋‹ˆ๋‹ค. + +## ๊ฒ€์ฆ +- ์žฌ๊ธฐ๋™ ํ›„ `robeing-gateway` ์ปจํ…Œ์ด๋„ˆ env: + - `ROBEING_DEFAULT_HOST=192.168.0.106` + - `ROBEING_DEFAULT_PORT=8001` + - `MONITOR_URL=http://192.168.0.106:9024` +- ๊ฒŒ์ดํŠธ์›จ์ด ์ปจํ…Œ์ด๋„ˆ ๋‚ด๋ถ€ ํ™•์ธ: + - `http://192.168.0.106:9024/healthz -> {"status":"healthy"}` + - `http://192.168.0.100:9024/healthz -> connection failed` +- ์‹ค๋„๋ฉ”์ธ ํ˜ธ์ถœ: + - `GET https://ro-being.com/api/stats/rb8001 -> 200` + - `GET https://ro-being.com/api/preferences/{user_uuid} -> 200` + - `PUT https://ro-being.com/api/preferences/{user_uuid} -> 200` +- ๊ฐ™์€ ์‹œ๊ฐ ๋กœ๊ทธ ๋Œ€์กฐ: + - `23 robeing-gateway`: `Proxying stats request to: http://192.168.0.106:9024/api/stats/rb8001` + - `23 robeing-gateway`: `GET/PUT http://192.168.0.106:9024/api/preferences/{user_uuid} "HTTP/1.1 200 OK"` + - `24 robeing_monitor`: `/stats/rb8001`, `/api/preferences/{user_uuid}` ๋ชจ๋‘ `200 OK` + +## ๊ฒฐ๋ก  +- ๋ฌธ์ œ๋Š” `24 monitor ์žฅ์• `๊ฐ€ ์•„๋‹ˆ๋ผ `23 gateway runtime.env์˜ ๊ตฌ์ฃผ์†Œ ์ž”์กด`์ด์—ˆ์Šต๋‹ˆ๋‹ค. +- ์ด๋ฒˆ ์ด์Šˆ๋Š” `๊ธฐ๋ณธ robeing ๋Œ€์ƒ`๊ณผ `monitor ๋Œ€์ƒ`์ด ์„œ๋กœ ๋‹ค๋ฅธ upstream ๊ธฐ์ค€์„ ๊ฐ–๊ฒŒ ๋˜๋ฉด ๋ถ€๋ถ„ ์ •์ƒ์ฒ˜๋Ÿผ ๋ณด์—ฌ๋„ ์šด์˜์ƒ ์‹คํŒจ๊ฐ€ ๋œ๋‹ค๋Š” ์‚ฌ๋ก€์ž…๋‹ˆ๋‹ค. diff --git a/journey/worklog/260310_23gateway_monitor_url_24monitor_๊ต์ •_๋ฐ_์‹ค๋„๋ฉ”์ธ_์ „์ˆ˜๊ฒ€์ฆ.md b/journey/worklog/260310_23gateway_monitor_url_24monitor_๊ต์ •_๋ฐ_์‹ค๋„๋ฉ”์ธ_์ „์ˆ˜๊ฒ€์ฆ.md new file mode 100644 index 0000000..b2f9fe3 --- /dev/null +++ b/journey/worklog/260310_23gateway_monitor_url_24monitor_๊ต์ •_๋ฐ_์‹ค๋„๋ฉ”์ธ_์ „์ˆ˜๊ฒ€์ฆ.md @@ -0,0 +1,24 @@ +--- +tags: [infra, 51123, 51124, gateway, monitor, runtime, worklog] +--- + +# 260310 23 gateway MONITOR_URL 24 monitor ๊ต์ • ๋ฐ ์‹ค๋„๋ฉ”์ธ ์ „์ˆ˜๊ฒ€์ฆ + +## ๊ด€๋ จ ๋ฌธ์„œ +- [23 gateway MONITOR_URL ๊ตฌ์ฃผ์†Œ ์ž”์กด์œผ๋กœ 24 monitor ํ”„๋ก์‹œ ์‹คํŒจ ๋ณต๊ตฌ](../troubleshooting/260310_23gateway_monitor_url_๊ตฌ์ฃผ์†Œ์ž”์กด_24monitorํ”„๋ก์‹œ์‹คํŒจ_๋ณต๊ตฌ.md) +- [Runtime Principles](../../00_Philosophy/01_PRINCIPLES/Runtime_Principles.md) + +## ์ž‘์—… +- `workspace-config/runtime.env`์˜ `MONITOR_URL`์„ `http://192.168.0.106:9024`๋กœ ๊ต์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. +- `robeing-gateway`๋ฅผ ์žฌ๋นŒ๋“œยท์žฌ๊ธฐ๋™ํ•ด active runtime์— ๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹ค. +- ๊ฒŒ์ดํŠธ์›จ์ด๊ฐ€ monitor๋กœ ๋ณด๋‚ด๋Š” ๊ฒฝ๋กœ `GET /api/stats/{robeing_id}`, `GET /api/preferences/{user_uuid}`, `PUT /api/preferences/{user_uuid}`๋ฅผ ์‹ค์ œ ๋„๋ฉ”์ธ์—์„œ ์ „์ˆ˜ ํ˜ธ์ถœํ–ˆ์Šต๋‹ˆ๋‹ค. + +## ๊ฒ€์ฆ +- `robeing-gateway` ์ปจํ…Œ์ด๋„ˆ env์— `MONITOR_URL=http://192.168.0.106:9024`๊ฐ€ ๋ฐ˜์˜๋์Šต๋‹ˆ๋‹ค. +- `https://ro-being.com/api/stats/rb8001 -> 200` +- `https://ro-being.com/api/preferences/{user_uuid} GET -> 200` +- `https://ro-being.com/api/preferences/{user_uuid} PUT -> 200` +- ๊ฐ™์€ ์‹œ๊ฐ 23 gateway์™€ 24 `robeing_monitor` ๋กœ๊ทธ ๋ชจ๋‘ `192.168.0.106:9024` ๋Œ€์ƒ `200 OK`๋กœ ๊ต์ฐจ ๊ฒ€์ฆํ–ˆ์Šต๋‹ˆ๋‹ค. + +## ํ•œ ์ค„ ๊ฒฐ๋ก  +- 23 gateway์˜ monitor ๊ฒฝ๋กœ๋Š” ์ด์ œ 24 monitor๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์ผ์น˜ํ•˜๋ฉฐ, ์™ธ๋ถ€ ๋„๋ฉ”์ธ ๊ธฐ์ค€ stats/preferences ์ „ ๊ฒฝ๋กœ๊ฐ€ ์ •์ƒ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค.