create: 生产宿主机代理与时间同步部署状态
MemRelay-Operation: memory-save:fact-host-agent-prod-20261107-0631 MemRelay-Resource: 23370b45-1233-49ae-93b9-3df829807895
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
title: 生产宿主机代理与时间同步部署状态
|
||||||
|
type: fact
|
||||||
|
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/生产宿主机代理与时间同步部署状态
|
||||||
|
stable_id: 23370b45-1233-49ae-93b9-3df829807895
|
||||||
|
scope: project
|
||||||
|
memory_type: fact
|
||||||
|
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 1
|
||||||
|
request_id: fact-host-agent-prod-20261107-0631
|
||||||
|
created_at: '2026-11-06T22:30:25.356353+00:00'
|
||||||
|
updated_at: '2026-11-06T22:30:25.356353+00:00'
|
||||||
|
tags:
|
||||||
|
- host-agent
|
||||||
|
- production
|
||||||
|
- ntp
|
||||||
|
- ikuai
|
||||||
|
---
|
||||||
|
|
||||||
|
- 生产 Metrix 自 2026-11-07 06:25 运行镜像 metrix-app:72e4257(分支 feat/host-agent),回滚镜像 metrix-app:rollback-before-72e4257(即 7e77713)。
|
||||||
|
- 宿主机 192.127.115.101(CentOS 7.9 x86_64)安装 metrix-host-agent 0.1.0:二进制 /usr/local/bin/metrix-host-agent,配置 /etc/metrix-host-agent/config.json(0600,dry_run=false),状态目录 /var/lib/metrix-host-agent,systemd 服务 metrix-host-agent,安装包 /root/metrix-host-agent/。连接 ws://127.0.0.1:8000/api/host-agent/connect。
|
||||||
|
- 代理令牌在密码库条目「Metrix 生产宿主机代理令牌」(lookup_key metrix-prod-host-agent-token)。重新生成令牌会断开旧代理,需同时更新宿主机 config.json 并 systemctl restart metrix-host-agent。
|
||||||
|
- 宿主机 NTP:chrony 3.4,服务器 192.127.115.1(iKuai),未改动、未点应用。
|
||||||
|
- Metrix 宿主机设置:从使用者电脑同步时间=开,必须获取到网络时间=开,同步方式=自动识别,识别结果 iKuai x64;适配器 id=1「iKuai」,管理地址 http://192.127.115.1,账号密码来自密码库「iKuai 管理面板」。
|
||||||
|
- 2026-11-07 实际同步两次(手动 delta -47ms、首页自动 delta -2ms)均为 unchanged,容器到 192.127.115.1 的 SNTP 复核正常。iKuai set_time + 宿主机 ntp.sync_now 的真实修改路径在生产尚未触发过(偏差不到 1 秒不改),本地假 iKuai 已验证。
|
||||||
|
- 卸载:/root/metrix-host-agent/uninstall.sh(会先 -restore-ntp,--purge 删配置)。
|
||||||
Reference in New Issue
Block a user