docs: clarify kafka-only production channel

This commit is contained in:
lingniu
2026-07-01 11:25:00 +08:00
parent 61ad4a2439
commit ebbf2ca8fb
4 changed files with 27 additions and 11 deletions

View File

@@ -116,7 +116,9 @@ class PortainerComposeResourceLimitsTest {
.contains("TDengine `raw_frames`")
.doesNotContain("三个服务必须共用同一个 `SINK_ARCHIVE_PATH`")
.doesNotContain("再回读共享 archive")
.doesNotContain("读取共享 archive 中的原始 `.bin`");
.doesNotContain("读取共享 archive 中的原始 `.bin`")
.doesNotContain("EVENT_FILE_STORE_ENABLED")
.doesNotContain("/api/event-history/records");
assertThat(splitRunbook)
.contains("TDengine `raw_frames`")
.doesNotContain("must share the same `SINK_ARCHIVE_PATH`")
@@ -124,6 +126,22 @@ class PortainerComposeResourceLimitsTest {
.doesNotContain("shared volume mounted to all three services");
}
@Test
void architectureDocsNameKafkaInsteadOfGenericMq() throws IOException {
String decisions = Files.readString(repositoryRoot().resolve("DECISIONS.md"));
String dataFlow = Files.readString(repositoryRoot().resolve("docs/module-data-flow.html"));
assertThat(decisions)
.contains("生产链路只支持 Kafka")
.doesNotContain("MQ 选型")
.doesNotContain("RocketMQ");
assertThat(dataFlow)
.contains("participant Kafka as sink-kafka")
.doesNotContain("participant MQ")
.doesNotContain("->>MQ")
.doesNotContain("MQ->>");
}
@Test
void splitRunbookKeepsAnalyticsAsJt808MetricRuntimeOnly() throws IOException {
String splitRunbook = Files.readString(repositoryRoot()