InfluxDB配置与后续工作

# Influxdb配置与后续工作

日期:2026-10-21

1. 配置文件

InfluxDBThing 从远程 CFET CR 轮询或订阅数据,经内存队列批量写入 InfluxDB。

{
  "enabled": true,
  "database_url": "http://127.0.0.1:8086",
  "org": "hgd-frc",
  "bucket": "cfet_sine_demo",
  "token": "<replace-with-influxdb-token>",
  "measurement": "sine_wave",
  "poll_interval_ms": 100,
  "batch_interval_ms": 10000,
  "buffer_warning_points": 50000,
  "buffer_emergency_flush_points": 200000,
  "write_timeout_ms": 30000,
  "sources": [
    {
      "ip": "127.0.0.1",
      "port": 8102,
      "poll": [
        {
          "path": "/Sine/poll_value/0",
          "tags": { "channel": "000", "mode": "poll", "frequency_hz": "0.050" },
          "field": "value",
          "field_type": "double"
        }
      ],
      "event": [
        {
          "path": "/Sine/event_value/50",
          "tags": { "channel": "050", "mode": "event", "frequency_hz": "0.300" },
          "field": "value",
          "field_type": "double"
        }
      ]
    }
  ]
}

问题:上午说的可能需要根据某个UI界面是否需要二次开发,说的是哪个UI界面

2. 后续工作(TODO)

  • 有 RAID 5 的Linux服务器,使用MDSplus往里面写数据,使用长脉冲,速度为2GB/s;

  • 通过可能已有的MDSplusServerThing,部署在服务端,内部有一个简单的状态机,能够分发炮号,重点是支持子树;

  • 信号管理软件,管理信号,用户可以自定义信号有哪些,信号的存储结构是什么样的,可以通过给出的信号一键生成子树


本文章使用limfx的vscode插件快速发布