GitCC AI驱动开源 项目查询 开源项目分类 机器人 人工智能 大模型排行 企业应用 科学研究 孵化优质开源项目 GCC API 海外版AI Coding
Which configurations are being added to publisher?

Publisher will support 2 configurations – (1) batch size, number of subscription notifications in a batch and (2) batch interval, a length of time since the last batch was sent. A subscription notification can contain “n” number of values from the endpoint subscription which depending on the combined size could result in 1 to more IoT Hub messages.

How can these configurations be set?

The configs are exposed as environment variables on the Publisher container Pod and they affect all job configurations using the Publisher REST API (iot/opc-publisher-service). The publisher container must be restarted for any changes in the environment variable to take effect.

PCS_DEFAULT_PUBLISH_JOB_BATCH_INTERVAL can be set as milliseconds from 100 to 3,600,000 ms.  Other values (e.g. <= 0) will result in the default value of 10,000 ms (10 seconds).

PCS_DEFAULT_PUBLISH_JOB_BATCH_SIZE can be set as a value between 2 and 1000.  Every other value will result in the default of 50 OPC UA subscription notifications per batch. OPC publisher partitions the number of configured tags in a publish job on a 1000 boundary, i.e. every subscription has at most 1000 monitored items (variables).  It is recommended to leave this value at 50.