Files
MemRelay/projects/d0abaf3f-da04-4dd4-a228-bacf68f44e8f/Checkpoint 2026-12-01 14-26-06 UTC [3944618d71].md
T
memrelay 005fb9c8d2 create: Checkpoint 2026-12-01 14:26:06 UTC [3944618d71]
MemRelay-Operation: checkpoint-save:bdyg18-20261201-board-diag-checkpoint
MemRelay-Resource: 5ecb3a00-40a9-4085-8272-1e2a9c981621
2026-12-01 22:26:12 +08:00

46 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-12-01 14:26:06 UTC [3944618d71]
type: checkpoint
permalink: main/projects/d0abaf3f-da04-4dd4-a228-bacf68f44e8f/checkpoint-2026-12-01-14-26-06-utc-3944618d71
stable_id: 5ecb3a00-40a9-4085-8272-1e2a9c981621
scope: project
memory_type: checkpoint
project_id: d0abaf3f-da04-4dd4-a228-bacf68f44e8f
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: bdyg18-20261201-board-diag-checkpoint
created_at: '2026-12-01T14:26:06.114203+00:00'
updated_at: '2026-12-01T14:26:06.114203+00:00'
tags:
- handoff
- gitea
- diagnosis
---
## 完成内容
已 SSH 登录 bdy-g18-pro(192.168.32.100),诊断并做了不改公网架构的板上优化。
## 原因
四核 load 约 8。Gitea 被 git.asio.asia 的网页抓取打到约 300% CPU(经本机 frpc → 127.0.0.1:3000),主要扫 nixevol/LTEDongle 内核树和 memrelay/MemRelay 的 raw/blame。同机还有三个失败的小米 CIFS automount,Redis 对局域网开放 6379,wait-online 在等未插线网口。
## 关键实现
- Gitea compose:cpus 1.5、mem 1536m、pids 256、GOMAXPROCS=2、关闭 repo indexer、日志 Warn。备份 compose.yaml.bak.20261201T142508Z。
- Redis HOST_IP=127.0.0.1(.env.bak 同时间戳)。
- 注释失效 CIFS;mergerfs 只挂 /data/ssd1/localdisk。fstab.bak 同时间戳。
- wait-online 99-lan2-only.conf。
## 验证
Gitea 重建后 HTTP 200;CPU 卡在约 148%(上限 1.5);Redis 仅 127.0.0.1:6379;filepan 已挂上;systemd failed=0;3000-3007/8777 本地 HTTP 200。1 分钟 load 从 8.1 降到 5.3,5/15 分钟仍高属滑动平均。
## 问题与解决
fstab 改 mergerfs 时漏了换行,mount 失败;已补换行并重新挂上。本机直连 ali.asio.asia SSH 超时,未看到公网客户端 IP/UA。
## 下一步
- 在阿里云 OpenResty 对 git.asio.asia 做限速或对 LTEDongle 大仓库限流/改私有,才能从源头降 Gitea 负载。
- 观察 memrelay-basic-memory 间歇近 95% CPU。
- 1Panel 里改 Redis 可能把 HOST_IP 改回空(全接口)。
- 时区仍是 UTC。
## 给下个会话
SSH 用密码库「BDYG18Pro Armbian SSH」。不要用 Windows OpenSSH 默认密钥登录(板子 OpenSSH 10)。可用 paramiko + AutoAddPolicy。公网 git 流量不经过板上 OpenResty。不要把 Gitea/Redis 口令写入记忆。临时口令文件在 %TEMP%\g18.pw,用完应删。