docs: 部署手册补充时序库已内置

部署编排已加入 TDengine(tdengine 3.3.6.13)与 tdengine-init 建库建表服务,
文档同步:
- prerequisites:外部依赖章节把 TDengine 从「可选/需自行部署」改为「已内置」,
  列出两个库的分片/保留/超级表,并说明与生产的版本差异
- troubleshooting:历史流量无数据一节改为常见原因表(init 未成功、库表缺失、地址错误),
  给出对应的排查命令与处理方式
This commit is contained in:
MiFaZhan
2026-10-30 10:03:12 +08:00
parent 98293f1813
commit 6d3b8dab43
2 changed files with 22 additions and 13 deletions
+10 -11
View File
@@ -114,22 +114,21 @@ firewall-cmd --reload
## 外部依赖(可选)
以下能力需要外部账号或服务,**不影响平台主流程**:
| 服务 | 用途 | 不配置的影响 |
| --- | --- | --- |
| TDengine 3.x | 存流量历史数据 | 历史流量查询不可用,主流程正常 |
| 短信服务商 | 发送验证码 | 无法发送短信 |
| 微信支付 | 在线支付 | 支付功能不可用 |
| 飞书 | 运维通知 | 不启动 bot 即可 |
TDengine 需开启 WebSocket 接口(默认 6041),在 `docker-compose.yml` 中配置:
::: tip 时序库已内置
流量历史使用的 TDengine **已包含在编排里**,由 `tdengine-init` 服务在首次启动时自动建库建表,无需额外申请或配置:
```bash
TDENGINE_HOST=tdengine.example.com
TDENGINE_PORT=6041
TDENGINE_USER=root
TDENGINE_PASSWORD=
TDENGINE_DAILY_DB=iotlcm_daily
TDENGINE_MONTHLY_DB=iotlcm_monthly
```
| 库 | 分片 | 保留 | 超级表 |
| --- | --- | --- | --- |
| `iotlcm_daily` | 7 天 | 3 年 | `t_sim_card_usage_daily` |
| `iotlcm_monthly` | 30 天 | 3 年 | `t_sim_card_usage_monthly` |
不使用时全部留空。
编排使用的版本是 `3.3.6.13`(公开镜像可得),生产为 `3.4.0.9`。如需与生产完全一致,可自行构建镜像并替换 `docker-compose.yml` 中的 tag。
:::