flatsql 3.11.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/README.md +61 -795
  2. package/bin/flatsql.mjs +76 -0
  3. package/cpp/README.md +18 -0
  4. package/cpp/include/flatsql/flatsql.h +162 -0
  5. package/cpp/include/flatsql/flatsql_io.h +159 -0
  6. package/docs/API-3.12.md +114 -0
  7. package/package.json +28 -123
  8. package/wasm/flatsql.wasm +0 -0
  9. package/wasm/index.d.ts +61 -548
  10. package/wasm/index.js +280 -1281
  11. package/wasm/integrity.json +6 -26
  12. package/wasm/runtime/LICENSE.sdk.txt +190 -0
  13. package/wasm/runtime/NOTICE.txt +2 -0
  14. package/wasm/runtime/browser-guest.mjs +1 -0
  15. package/wasm/runtime/browser-host.mjs +1 -0
  16. package/wasm/runtime/node-guest.mjs +2 -0
  17. package/wasm/runtime/node-host.mjs +5 -0
  18. package/wasm/runtime/opfsIoWorker.mjs +1 -0
  19. package/wasm/runtime/wasiThreadBrowserWorker.mjs +1 -0
  20. package/dist/artifacts/index.d.ts +0 -3
  21. package/dist/artifacts/index.d.ts.map +0 -1
  22. package/dist/artifacts/index.js +0 -3
  23. package/dist/artifacts/index.js.map +0 -1
  24. package/dist/artifacts/transport.d.ts +0 -5
  25. package/dist/artifacts/transport.d.ts.map +0 -1
  26. package/dist/artifacts/transport.js +0 -45
  27. package/dist/artifacts/transport.js.map +0 -1
  28. package/dist/artifacts/types.d.ts +0 -34
  29. package/dist/artifacts/types.d.ts.map +0 -1
  30. package/dist/artifacts/types.js +0 -2
  31. package/dist/artifacts/types.js.map +0 -1
  32. package/dist/btree/btree.d.ts +0 -34
  33. package/dist/btree/btree.d.ts.map +0 -1
  34. package/dist/btree/btree.js +0 -234
  35. package/dist/btree/btree.js.map +0 -1
  36. package/dist/btree/index.d.ts +0 -3
  37. package/dist/btree/index.d.ts.map +0 -1
  38. package/dist/btree/index.js +0 -3
  39. package/dist/btree/index.js.map +0 -1
  40. package/dist/btree/types.d.ts +0 -36
  41. package/dist/btree/types.d.ts.map +0 -1
  42. package/dist/btree/types.js +0 -55
  43. package/dist/btree/types.js.map +0 -1
  44. package/dist/cluster/index.d.ts +0 -11
  45. package/dist/cluster/index.d.ts.map +0 -1
  46. package/dist/cluster/index.js +0 -59
  47. package/dist/cluster/index.js.map +0 -1
  48. package/dist/response/artifact.d.ts +0 -4
  49. package/dist/response/artifact.d.ts.map +0 -1
  50. package/dist/response/artifact.js +0 -102
  51. package/dist/response/artifact.js.map +0 -1
  52. package/dist/response/cache-key.d.ts +0 -6
  53. package/dist/response/cache-key.d.ts.map +0 -1
  54. package/dist/response/cache-key.js +0 -114
  55. package/dist/response/cache-key.js.map +0 -1
  56. package/dist/response/index.d.ts +0 -5
  57. package/dist/response/index.d.ts.map +0 -1
  58. package/dist/response/index.js +0 -5
  59. package/dist/response/index.js.map +0 -1
  60. package/dist/response/memory-cache.d.ts +0 -17
  61. package/dist/response/memory-cache.d.ts.map +0 -1
  62. package/dist/response/memory-cache.js +0 -76
  63. package/dist/response/memory-cache.js.map +0 -1
  64. package/dist/response/types.d.ts +0 -57
  65. package/dist/response/types.d.ts.map +0 -1
  66. package/dist/response/types.js +0 -2
  67. package/dist/response/types.js.map +0 -1
  68. package/dist/schema/index.d.ts +0 -3
  69. package/dist/schema/index.d.ts.map +0 -1
  70. package/dist/schema/index.js +0 -3
  71. package/dist/schema/index.js.map +0 -1
  72. package/dist/schema/parser.d.ts +0 -25
  73. package/dist/schema/parser.d.ts.map +0 -1
  74. package/dist/schema/parser.js +0 -474
  75. package/dist/schema/parser.js.map +0 -1
  76. package/dist/schema/types.d.ts +0 -33
  77. package/dist/schema/types.d.ts.map +0 -1
  78. package/dist/schema/types.js +0 -29
  79. package/dist/schema/types.js.map +0 -1
  80. package/dist/standalone/index.d.ts +0 -3
  81. package/dist/standalone/index.d.ts.map +0 -1
  82. package/dist/standalone/index.js +0 -3
  83. package/dist/standalone/index.js.map +0 -1
  84. package/dist/standalone/process-client.d.ts +0 -85
  85. package/dist/standalone/process-client.d.ts.map +0 -1
  86. package/dist/standalone/process-client.js +0 -537
  87. package/dist/standalone/process-client.js.map +0 -1
  88. package/dist/standalone/wasmedge-runner.d.ts +0 -19
  89. package/dist/standalone/wasmedge-runner.d.ts.map +0 -1
  90. package/dist/standalone/wasmedge-runner.js +0 -108
  91. package/dist/standalone/wasmedge-runner.js.map +0 -1
  92. package/dist/storage/index.d.ts +0 -3
  93. package/dist/storage/index.d.ts.map +0 -1
  94. package/dist/storage/index.js +0 -3
  95. package/dist/storage/index.js.map +0 -1
  96. package/dist/storage/stacked-flatbuffers.d.ts +0 -38
  97. package/dist/storage/stacked-flatbuffers.d.ts.map +0 -1
  98. package/dist/storage/stacked-flatbuffers.js +0 -253
  99. package/dist/storage/stacked-flatbuffers.js.map +0 -1
  100. package/dist/storage/types.d.ts +0 -23
  101. package/dist/storage/types.d.ts.map +0 -1
  102. package/dist/storage/types.js +0 -27
  103. package/dist/storage/types.js.map +0 -1
  104. package/dist/stress/aggregate.d.ts +0 -3
  105. package/dist/stress/aggregate.d.ts.map +0 -1
  106. package/dist/stress/aggregate.js +0 -61
  107. package/dist/stress/aggregate.js.map +0 -1
  108. package/dist/stress/docker-compose.d.ts +0 -17
  109. package/dist/stress/docker-compose.d.ts.map +0 -1
  110. package/dist/stress/docker-compose.js +0 -156
  111. package/dist/stress/docker-compose.js.map +0 -1
  112. package/dist/stress/index.d.ts +0 -10
  113. package/dist/stress/index.d.ts.map +0 -1
  114. package/dist/stress/index.js +0 -10
  115. package/dist/stress/index.js.map +0 -1
  116. package/dist/stress/metrics.d.ts +0 -3
  117. package/dist/stress/metrics.d.ts.map +0 -1
  118. package/dist/stress/metrics.js +0 -83
  119. package/dist/stress/metrics.js.map +0 -1
  120. package/dist/stress/native-publish-event-workload.d.ts +0 -3
  121. package/dist/stress/native-publish-event-workload.d.ts.map +0 -1
  122. package/dist/stress/native-publish-event-workload.js +0 -465
  123. package/dist/stress/native-publish-event-workload.js.map +0 -1
  124. package/dist/stress/production-gate.d.ts +0 -4
  125. package/dist/stress/production-gate.d.ts.map +0 -1
  126. package/dist/stress/production-gate.js +0 -12
  127. package/dist/stress/production-gate.js.map +0 -1
  128. package/dist/stress/report.d.ts +0 -3
  129. package/dist/stress/report.d.ts.map +0 -1
  130. package/dist/stress/report.js +0 -174
  131. package/dist/stress/report.js.map +0 -1
  132. package/dist/stress/sds-discovery.d.ts +0 -4
  133. package/dist/stress/sds-discovery.d.ts.map +0 -1
  134. package/dist/stress/sds-discovery.js +0 -40
  135. package/dist/stress/sds-discovery.js.map +0 -1
  136. package/dist/stress/smoke-runner.d.ts +0 -3
  137. package/dist/stress/smoke-runner.d.ts.map +0 -1
  138. package/dist/stress/smoke-runner.js +0 -64
  139. package/dist/stress/smoke-runner.js.map +0 -1
  140. package/dist/stress/types.d.ts +0 -219
  141. package/dist/stress/types.d.ts.map +0 -1
  142. package/dist/stress/types.js +0 -2
  143. package/dist/stress/types.js.map +0 -1
  144. package/dist/stress/workload.d.ts +0 -6
  145. package/dist/stress/workload.d.ts.map +0 -1
  146. package/dist/stress/workload.js +0 -144
  147. package/dist/stress/workload.js.map +0 -1
  148. package/docs/PARTITION-STORE-WASM.md +0 -338
  149. package/docs/PARTITION-STORE.md +0 -2380
  150. package/docs/agents/response-artifacts.md +0 -65
  151. package/docs/response-artifacts.md +0 -86
  152. package/scripts/stress-docker.sh +0 -279
  153. package/sdm/flatsql-spatial.wasm +0 -0
  154. package/sdm/index.d.ts +0 -88
  155. package/sdm/index.js +0 -253
  156. package/sdm/manifest.json +0 -402
  157. package/stress/docker/Dockerfile +0 -11
  158. package/stress/docker/docker-compose.yml +0 -51
  159. package/stress/sds/aggregate.mjs +0 -97
  160. package/stress/sds/run.mjs +0 -105
  161. package/stress/sds/write-compose.mjs +0 -96
  162. package/wasm/flatsql-client.js +0 -280
  163. package/wasm/flatsql-io.d.ts +0 -97
  164. package/wasm/flatsql-io.js +0 -621
  165. package/wasm/flatsql-p4-threads.wasm +0 -0
  166. package/wasm/flatsql-ps-threads.wasm +0 -0
  167. package/wasm/flatsql-wasi-noeh.wasm +0 -0
  168. package/wasm/flatsql-wasi.wasm +0 -0
  169. package/wasm/flatsql.js +0 -2
  170. package/wasm/flatsql.worker.js +0 -209
  171. package/wasm/native/flatsql_wasmedge_runner.cpp +0 -858
  172. package/wasm/ps-node-fault.d.mts +0 -23
  173. package/wasm/ps-node-fault.mjs +0 -381
  174. package/wasm/ps-node-guest.mjs +0 -173
  175. package/wasm/ps-node-host.d.mts +0 -95
  176. package/wasm/ps-node-host.mjs +0 -476
  177. package/wasm/ps-node-imports.mjs +0 -847
  178. package/wasm/ps.d.ts +0 -21
  179. package/wasm/ps.js +0 -75
  180. package/wasm/wasi.d.ts +0 -11
  181. package/wasm/wasi.js +0 -51
@@ -1,174 +0,0 @@
1
- const BYTES_PER_MIB = 1024 * 1024;
2
- const BYTES_PER_GIB = 1024 * BYTES_PER_MIB;
3
- const MIN_PRODUCTION_STORAGE_FILL_PCT = 95;
4
- const MIN_PRODUCTION_FPS = 75;
5
- function round(value, decimals = 3) {
6
- const factor = 10 ** decimals;
7
- return Math.round(value * factor) / factor;
8
- }
9
- function bytesToMiB(value) {
10
- return round(value / BYTES_PER_MIB);
11
- }
12
- function rateMiBps(bytes, durationMs) {
13
- if (durationMs <= 0) {
14
- return 0;
15
- }
16
- return round((bytes / BYTES_PER_MIB) / (durationMs / 1000));
17
- }
18
- function pct(value, total, decimals = 4) {
19
- if (total <= 0) {
20
- return 0;
21
- }
22
- return round((value / total) * 100, decimals);
23
- }
24
- function requirement(id, passed, required, actual) {
25
- return {
26
- id,
27
- status: passed ? 'pass' : 'fail',
28
- required,
29
- actual,
30
- };
31
- }
32
- export function buildDerivedStressReport(manifest, metrics, summary) {
33
- const targetNodeStorageBytes = manifest.nodeStorageGb * BYTES_PER_GIB;
34
- const perNode = summary.nodes.map((nodeId) => {
35
- const nodeMetrics = metrics.filter((metric) => metric.nodeId === nodeId);
36
- const ingestMetrics = nodeMetrics.filter((metric) => metric.useCase === 'bulk-streaming-ingest');
37
- const requestBytes = nodeMetrics.reduce((total, metric) => total + metric.requestBytes, 0);
38
- const responseBytes = nodeMetrics.reduce((total, metric) => total + metric.responseBytes, 0);
39
- const flatbufferBytes = nodeMetrics.reduce((total, metric) => total + metric.flatbufferBytes, 0);
40
- const durationMs = nodeMetrics.reduce((total, metric) => total + metric.durationMs, 0);
41
- const ingestDurationMs = ingestMetrics.reduce((total, metric) => total + metric.durationMs, 0);
42
- const ingestRecords = ingestMetrics.reduce((total, metric) => total + metric.records, 0);
43
- const maxStorageBytes = nodeMetrics.reduce((max, metric) => Math.max(max, metric.storageBytes), 0);
44
- return {
45
- nodeId,
46
- requestMiB: bytesToMiB(requestBytes),
47
- responseMiB: bytesToMiB(responseBytes),
48
- flatbufferMiB: bytesToMiB(flatbufferBytes),
49
- maxStorageMiB: bytesToMiB(maxStorageBytes),
50
- storageFillPct: pct(maxStorageBytes, targetNodeStorageBytes),
51
- ingressMiBps: rateMiBps(requestBytes, durationMs),
52
- egressMiBps: rateMiBps(responseBytes, durationMs),
53
- storageFillMiBps: rateMiBps(maxStorageBytes, durationMs),
54
- ingestRecordsPerSecond: ingestDurationMs > 0 ? round(ingestRecords / (ingestDurationMs / 1000), 3) : 0,
55
- cacheHits: nodeMetrics.reduce((total, metric) => total + metric.cacheHits, 0),
56
- cacheMisses: nodeMetrics.reduce((total, metric) => total + metric.cacheMisses, 0),
57
- };
58
- });
59
- const maxNodeStorageMiB = perNode.reduce((max, node) => Math.max(max, node.maxStorageMiB), 0);
60
- const minNodeStorageMiB = perNode.length === 0
61
- ? 0
62
- : perNode.reduce((min, node) => Math.min(min, node.maxStorageMiB), perNode[0].maxStorageMiB);
63
- const avgNodeStorageMiB = perNode.length === 0
64
- ? 0
65
- : round(perNode.reduce((total, node) => total + node.maxStorageMiB, 0) / perNode.length);
66
- const totalNodeStorageMiB = perNode.reduce((total, node) => total + node.maxStorageMiB, 0);
67
- const maxNodeStorageFillPct = perNode.reduce((max, node) => Math.max(max, node.storageFillPct), 0);
68
- const minNodeStorageFillPct = perNode.length === 0
69
- ? 0
70
- : perNode.reduce((min, node) => Math.min(min, node.storageFillPct), perNode[0].storageFillPct);
71
- const avgNodeStorageFillPct = perNode.length === 0
72
- ? 0
73
- : round(perNode.reduce((total, node) => total + node.storageFillPct, 0) / perNode.length, 4);
74
- const ingest = summary.useCases['bulk-streaming-ingest'];
75
- const ingestDurationMs = metrics
76
- .filter((metric) => metric.useCase === 'bulk-streaming-ingest')
77
- .reduce((total, metric) => total + metric.durationMs, 0);
78
- const ingestRecordsPerSecond = ingest && ingestDurationMs > 0
79
- ? round(ingest.records / (ingestDurationMs / 1000), 3)
80
- : 0;
81
- const slowestIngestNode = perNode.reduce((slowest, node) => {
82
- if (!slowest || node.ingestRecordsPerSecond < slowest.ingestRecordsPerSecond) {
83
- return node;
84
- }
85
- return slowest;
86
- }, undefined);
87
- const minNodeIngestRecordsPerSecond = slowestIngestNode?.ingestRecordsPerSecond ?? 0;
88
- const leastFilledNode = perNode.reduce((leastFilled, node) => {
89
- if (!leastFilled || node.storageFillPct < leastFilled.storageFillPct) {
90
- return node;
91
- }
92
- return leastFilled;
93
- }, undefined);
94
- const cacheTotal = summary.totalCacheHits + summary.totalCacheMisses;
95
- const topByteUseCases = Object.values(summary.useCases)
96
- .map((useCase) => ({
97
- useCase: useCase.useCase,
98
- requestMiB: bytesToMiB(useCase.requestBytes),
99
- responseMiB: bytesToMiB(useCase.responseBytes),
100
- flatbufferMiB: bytesToMiB(useCase.flatbufferBytes),
101
- durationMs: round(metrics
102
- .filter((metric) => metric.useCase === useCase.useCase)
103
- .reduce((total, metric) => total + metric.durationMs, 0)),
104
- ingressMiBps: rateMiBps(useCase.requestBytes, metrics
105
- .filter((metric) => metric.useCase === useCase.useCase)
106
- .reduce((total, metric) => total + metric.durationMs, 0)),
107
- egressMiBps: rateMiBps(useCase.responseBytes, metrics
108
- .filter((metric) => metric.useCase === useCase.useCase)
109
- .reduce((total, metric) => total + metric.durationMs, 0)),
110
- cacheHits: useCase.cacheHits,
111
- cacheMisses: useCase.cacheMisses,
112
- }))
113
- .sort((left, right) => (right.requestMiB + right.responseMiB + right.flatbufferMiB) -
114
- (left.requestMiB + left.responseMiB + left.flatbufferMiB))
115
- .slice(0, 8);
116
- const transport = [...new Set(metrics.map((metric) => metric.transport))].sort();
117
- const measurement = [...new Set(metrics.map((metric) => metric.measurement))].sort();
118
- const runtime = [...new Set(metrics.map((metric) => metric.runtime ?? 'unknown'))].sort();
119
- const expectedSchemaNames = new Set(manifest.schemas.map((schema) => schema.name));
120
- const schemaSweepNames = new Set(metrics
121
- .filter((metric) => metric.useCase === 'schema-sweep' && expectedSchemaNames.has(metric.schema))
122
- .map((metric) => metric.schema));
123
- const requirements = [
124
- requirement('errors', summary.totalErrors === 0, '0 errors', String(summary.totalErrors)),
125
- requirement('measurement', measurement.length === 1 && measurement[0] === 'measured', 'all events measured', measurement.join(',') || 'none'),
126
- requirement('transport', transport.includes('docker-compose'), 'docker-compose transport', transport.join(',') || 'none'),
127
- requirement('runtime', runtime.length > 0 && runtime.every((item) => item === 'native' || item === 'standalone' || item === 'wasmedge'), 'native, standalone, or wasmedge', runtime.join(',') || 'none'),
128
- requirement('node-isolation', manifest.nodeIsolation === 'container', 'container', manifest.nodeIsolation),
129
- requirement('node-count', summary.nodes.length >= 100, '>= 100 nodes', String(summary.nodes.length)),
130
- requirement('schema-sweep-coverage', schemaSweepNames.size === expectedSchemaNames.size, `${expectedSchemaNames.size} schemas`, `${schemaSweepNames.size} schemas`),
131
- requirement('storage-fill', minNodeStorageFillPct >= MIN_PRODUCTION_STORAGE_FILL_PCT, `>= ${MIN_PRODUCTION_STORAGE_FILL_PCT}% on every node`, leastFilledNode
132
- ? `min ${minNodeStorageFillPct.toFixed(4)}% on node ${leastFilledNode.nodeId}; max ${maxNodeStorageFillPct.toFixed(4)}%`
133
- : 'no storage metrics'),
134
- requirement('fps', minNodeIngestRecordsPerSecond >= MIN_PRODUCTION_FPS, `>= ${MIN_PRODUCTION_FPS} fps on every node`, slowestIngestNode
135
- ? `min ${minNodeIngestRecordsPerSecond} fps on node ${slowestIngestNode.nodeId}; aggregate ${ingestRecordsPerSecond} fps`
136
- : 'no ingest metrics'),
137
- ];
138
- const failedRequirements = requirements.filter((item) => item.status === 'fail');
139
- return {
140
- runId: manifest.runId,
141
- nodeCount: manifest.nodeCount,
142
- nodeStorageGb: manifest.nodeStorageGb,
143
- recordsPerNode: manifest.recordsPerNode,
144
- uniqueIngestRecords: manifest.nodeCount * manifest.recordsPerNode,
145
- metricEvents: metrics.length,
146
- transport,
147
- runtime: runtime.filter((item) => item === 'native' || item === 'standalone' || item === 'wasmedge' || item === 'typescript'),
148
- nodeIsolation: manifest.nodeIsolation,
149
- measurement,
150
- aggregate: {
151
- requestMiB: bytesToMiB(summary.totalRequestBytes),
152
- responseMiB: bytesToMiB(summary.totalResponseBytes),
153
- flatbufferMiB: bytesToMiB(summary.totalFlatbufferBytes),
154
- maxNodeStorageMiB,
155
- minNodeStorageMiB,
156
- avgNodeStorageMiB,
157
- maxNodeStorageFillPct,
158
- minNodeStorageFillPct,
159
- avgNodeStorageFillPct,
160
- ingestRecordsPerSecond,
161
- minNodeIngestRecordsPerSecond,
162
- ingestStorageFillMiBps: rateMiBps(totalNodeStorageMiB * BYTES_PER_MIB, ingestDurationMs),
163
- cacheHitRatePct: pct(summary.totalCacheHits, cacheTotal),
164
- },
165
- productionReadiness: {
166
- status: failedRequirements.length === 0 ? 'pass' : 'fail',
167
- failedRequirements,
168
- requirements,
169
- },
170
- topByteUseCases,
171
- perNode,
172
- };
173
- }
174
- //# sourceMappingURL=report.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/stress/report.ts"],"names":[],"mappings":"AAQA,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC;AA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OAAO,CAAC,oBAAoB,CAAC;YACvD,iBAAiB;YACjB,iBAAiB;YACjB,iBAAiB;YACjB,qBAAqB;YACrB,qBAAqB;YACrB,qBAAqB;YACrB,sBAAsB;YACtB,6BAA6B;YAC7B,sBAAsB,EAAE,SAAS,CAAC,mBAAmB,GAAG,aAAa,EAAE,gBAAgB,CAAC;YACxF,eAAe,EAAE,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,UAAU,CAAC;SACzD;QACD,mBAAmB,EAAE;YACnB,MAAM,EAAE,kBAAkB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;YACzD,kBAAkB;YAClB,YAAY;SACb;QACD,eAAe;QACf,OAAO;KACR,CAAC;AACJ,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { SdsSchemaInfo } from './types.js';
2
- export declare function parseSchemaMetadata(name: string, source: string, filePath: string): SdsSchemaInfo;
3
- export declare function discoverSdsSchemas(schemaRoot: string): Promise<SdsSchemaInfo[]>;
4
- //# sourceMappingURL=sds-discovery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sds-discovery.d.ts","sourceRoot":"","sources":["../../src/stress/sds-discovery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAOhD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,CAYjG;AAED,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAqBrF"}
@@ -1,40 +0,0 @@
1
- import { readdir, readFile } from 'node:fs/promises';
2
- import { join } from 'node:path';
3
- const IDENTIFIER = '[A-Za-z_][A-Za-z0-9_]*';
4
- const ROOT_TYPE_RE = new RegExp(`\\broot_type\\s+(${IDENTIFIER})\\s*;`);
5
- const FILE_IDENTIFIER_RE = /\bfile_identifier\s+"([^"]+)"\s*;/;
6
- const TABLE_RE = new RegExp(`\\btable\\s+(${IDENTIFIER})\\s*\\{`, 'g');
7
- export function parseSchemaMetadata(name, source, filePath) {
8
- const rootType = ROOT_TYPE_RE.exec(source)?.[1] ?? name;
9
- const flatbufferIdentifier = FILE_IDENTIFIER_RE.exec(source)?.[1];
10
- const tableNames = [...source.matchAll(TABLE_RE)].map((match) => match[1]);
11
- return {
12
- name,
13
- path: filePath,
14
- rootType,
15
- flatbufferIdentifier,
16
- tableNames,
17
- };
18
- }
19
- export async function discoverSdsSchemas(schemaRoot) {
20
- const entries = await readdir(schemaRoot, { withFileTypes: true });
21
- const schemaDirs = entries
22
- .filter((entry) => entry.isDirectory())
23
- .map((entry) => entry.name)
24
- .sort((left, right) => left.localeCompare(right));
25
- const schemas = [];
26
- for (const name of schemaDirs) {
27
- const filePath = join(schemaRoot, name, 'main.fbs');
28
- try {
29
- const source = await readFile(filePath, 'utf8');
30
- schemas.push(parseSchemaMetadata(name, source, filePath));
31
- }
32
- catch (error) {
33
- if (error.code !== 'ENOENT') {
34
- throw error;
35
- }
36
- }
37
- }
38
- return schemas;
39
- }
40
- //# sourceMappingURL=sds-discovery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sds-discovery.js","sourceRoot":"","sources":["../../src/stress/sds-discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAC5C,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,oBAAoB,UAAU,QAAQ,CAAC,CAAC;AACxE,MAAM,kBAAkB,GAAG,mCAAmC,CAAC;AAC/D,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,gBAAgB,UAAU,UAAU,EAAE,GAAG,CAAC,CAAC;AAEvE,MAAM,UAAU,mBA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I,CAAC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC5D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACvD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { SmokeHarnessOptions, SmokeHarnessResult } from './types.js';
2
- export declare function runSmokeHarness(options: SmokeHarnessOptions): Promise<SmokeHarnessResult>;
3
- //# sourceMappingURL=smoke-runner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"smoke-runner.d.ts","sourceRoot":"","sources":["../../src/stress/smoke-runner.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAwB,mBAAmB,EAAE,kBAAkB,EAAoB,MAAM,YAAY,CAAC;AAoClH,wBAAsB,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA8B/F"}
@@ -1,64 +0,0 @@
1
- import { mkdir, writeFile } from 'node:fs/promises';
2
- import { join } from 'node:path';
3
- import { discoverSdsSchemas } from './sds-discovery.js';
4
- import { reduceMetricEvents } from './metrics.js';
5
- import { buildMeasuredStandalonePublishEventMetrics } from './native-publish-event-workload.js';
6
- import { buildDerivedStressReport } from './report.js';
7
- import { buildWorkloadManifest } from './workload.js';
8
- function detectFindings(manifest) {
9
- return {
10
- indexingModel: {
11
- publishEventKey: 'FILE_ID',
12
- publishEventScope: 'Space Data Network publish event partition containing all records returned for that event.',
13
- perSchemaRulesOwner: 'space-data-network',
14
- perSchemaRulesEnforcedInSchema: false,
15
- },
16
- schemaPolicy: {
17
- canonicalSchemasRemainDatabaseNeutral: true,
18
- databaseSpecificAnnotationsRequired: false,
19
- },
20
- externalIndexProfileCoverage: {
21
- loadedProfiles: 0,
22
- schemaCount: manifest.schemaCount,
23
- status: 'External per-schema SDN index profiles are not loaded by this harness slice.',
24
- },
25
- expectedPressurePoints: [
26
- 'Native query result cache defaults to 1024 entries within a 64 MiB byte budget (LRU); production FILE_ID profiles should tune maxEntries and maxRows for hot/cold traffic shape.',
27
- 'Large FILE_ID responses still need paging, raw streaming, or response artifacts rather than assuming every SQL result should stay resident in process memory.',
28
- 'Per-schema query speed depends on external SDN index profiles, not database-specific annotations in canonical schemas.',
29
- 'Cache hits reduce native query work but still return response bytes unless callers use narrower projections, raw binary paths, compression, or edge-local aggregation.',
30
- ],
31
- };
32
- }
33
- async function writeJson(path, value) {
34
- await writeFile(path, `${JSON.stringify(value, null, 2)}\n`);
35
- }
36
- export async function runSmokeHarness(options) {
37
- const schemas = await discoverSdsSchemas(options.schemaRoot);
38
- if (schemas.length === 0) {
39
- throw new Error(`No SDS schemas found under ${options.schemaRoot}`);
40
- }
41
- const manifest = buildWorkloadManifest({ ...options, mode: options.mode ?? 'smoke' }, schemas);
42
- // The TypeScript engine is gone (3.0.0); only the WASI engine measures.
43
- if (manifest.runtime !== 'standalone') {
44
- throw new Error(`runtime ${manifest.runtime} has no in-process workload; use the standalone runtime`);
45
- }
46
- const metrics = await buildMeasuredStandalonePublishEventMetrics(manifest);
47
- const summary = reduceMetricEvents(metrics);
48
- const report = buildDerivedStressReport(manifest, metrics, summary);
49
- const findings = detectFindings(manifest);
50
- await mkdir(options.outputDir, { recursive: true });
51
- await writeJson(join(options.outputDir, 'manifest.json'), manifest);
52
- await writeFile(join(options.outputDir, 'metrics.ndjson'), metrics.map((metric) => JSON.stringify(metric)).join('\n') + '\n');
53
- await writeJson(join(options.outputDir, 'summary.json'), summary);
54
- await writeJson(join(options.outputDir, 'derived-report.json'), report);
55
- await writeJson(join(options.outputDir, 'findings.json'), findings);
56
- return {
57
- manifest,
58
- metrics,
59
- summary,
60
- findings,
61
- report,
62
- };
63
- }
64
- //# sourceMappingURL=smoke-runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":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,CAAC,SAAS,EAAE,qBAAqB,CAAC,EAAE,MAAM,CAAC,CAAC;IACxE,MAAM,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,EAAE,QAAQ,CAAC,CAAC;IAEpE,OAAO;QACL,QAAQ;QACR,OAAO;QACP,OAAO;QACP,QAAQ;QACR,MAAM;KACP,CAAC;AACJ,CAAC"}
@@ -1,219 +0,0 @@
1
- export type StressMode = 'smoke' | 'full';
2
- export type StressRuntime = 'standalone' | 'wasmedge' | 'native';
3
- export type MetricRuntime = StressRuntime | 'typescript';
4
- export type MetricMeasurement = 'measured' | 'estimated';
5
- export type MetricTransport = 'in-process' | 'docker-compose';
6
- export type StressNodeIsolation = 'logical' | 'container';
7
- export interface SdsSchemaInfo {
8
- name: string;
9
- path: string;
10
- rootType: string;
11
- flatbufferIdentifier?: string;
12
- tableNames: string[];
13
- }
14
- export interface StressUseCase {
15
- id: string;
16
- label: string;
17
- operation: string;
18
- description: string;
19
- }
20
- export interface StressRunConfig {
21
- mode?: StressMode;
22
- runId?: string;
23
- nodeCount?: number;
24
- nodeIdOffset?: number;
25
- nodeStorageGb?: number;
26
- recordsPerNode?: number;
27
- batchBytes?: number;
28
- queryConcurrency?: number;
29
- hotQueryRatio?: number;
30
- runtime?: StressRuntime;
31
- transport?: MetricTransport;
32
- nodeIsolation?: StressNodeIsolation;
33
- seed?: number;
34
- }
35
- export interface NormalizedStressRunConfig {
36
- mode: StressMode;
37
- runId: string;
38
- nodeCount: number;
39
- nodeIdOffset: number;
40
- nodeStorageGb: number;
41
- recordsPerNode: number;
42
- batchBytes: number;
43
- queryConcurrency: number;
44
- hotQueryRatio: number;
45
- runtime: StressRuntime;
46
- transport: MetricTransport;
47
- nodeIsolation: StressNodeIsolation;
48
- seed: number;
49
- }
50
- export interface NodeAssignment {
51
- nodeId: number;
52
- storageGb: number;
53
- schemas: string[];
54
- }
55
- export interface WorkloadManifest extends NormalizedStressRunConfig {
56
- createdAt: string;
57
- schemaCount: number;
58
- schemas: SdsSchemaInfo[];
59
- useCases: StressUseCase[];
60
- assignments: NodeAssignment[];
61
- }
62
- export interface MetricEvent {
63
- runId: string;
64
- nodeId: number;
65
- schema: string;
66
- useCase: string;
67
- operation: string;
68
- records: number;
69
- requestBytes: number;
70
- responseBytes: number;
71
- flatbufferBytes: number;
72
- storageBytes: number;
73
- durationMs: number;
74
- cacheHits: number;
75
- cacheMisses: number;
76
- cacheSize: number;
77
- errors: number;
78
- measurement: MetricMeasurement;
79
- transport: MetricTransport;
80
- runtime?: MetricRuntime;
81
- }
82
- export interface UseCaseSummary {
83
- useCase: string;
84
- events: number;
85
- records: number;
86
- requestBytes: number;
87
- responseBytes: number;
88
- flatbufferBytes: number;
89
- storageBytes: number;
90
- cacheHits: number;
91
- cacheMisses: number;
92
- maxCacheSize: number;
93
- errors: number;
94
- latencyP50Ms: number;
95
- latencyP95Ms: number;
96
- latencyP99Ms: number;
97
- }
98
- export interface StressSummary {
99
- runId: string;
100
- nodes: number[];
101
- eventCount: number;
102
- totalRecords: number;
103
- totalRequestBytes: number;
104
- totalResponseBytes: number;
105
- totalFlatbufferBytes: number;
106
- totalStorageBytes: number;
107
- totalCacheHits: number;
108
- totalCacheMisses: number;
109
- totalErrors: number;
110
- latencyP50Ms: number;
111
- latencyP95Ms: number;
112
- latencyP99Ms: number;
113
- useCases: Record<string, UseCaseSummary>;
114
- }
115
- export interface SmokeHarnessOptions extends StressRunConfig {
116
- schemaRoot: string;
117
- outputDir: string;
118
- }
119
- export interface SmokeHarnessFindings {
120
- indexingModel: {
121
- publishEventKey: 'FILE_ID';
122
- publishEventScope: string;
123
- perSchemaRulesOwner: 'space-data-network';
124
- perSchemaRulesEnforcedInSchema: false;
125
- };
126
- schemaPolicy: {
127
- canonicalSchemasRemainDatabaseNeutral: true;
128
- databaseSpecificAnnotationsRequired: false;
129
- };
130
- externalIndexProfileCoverage: {
131
- loadedProfiles: number;
132
- schemaCount: number;
133
- status: string;
134
- };
135
- expectedPressurePoints: string[];
136
- }
137
- export interface SmokeHarnessResult {
138
- manifest: WorkloadManifest;
139
- metrics: MetricEvent[];
140
- summary: StressSummary;
141
- findings: SmokeHarnessFindings;
142
- report: StressDerivedReport;
143
- }
144
- export interface StressAggregateOptions {
145
- inputDirs: string[];
146
- outputDir: string;
147
- runId: string;
148
- mode: StressMode;
149
- nodeStorageGb: number;
150
- recordsPerNode: number;
151
- nodeIsolation: StressNodeIsolation;
152
- transport: MetricTransport;
153
- }
154
- export interface StressNodeReport {
155
- nodeId: number;
156
- requestMiB: number;
157
- responseMiB: number;
158
- flatbufferMiB: number;
159
- maxStorageMiB: number;
160
- storageFillPct: number;
161
- ingressMiBps: number;
162
- egressMiBps: number;
163
- storageFillMiBps: number;
164
- ingestRecordsPerSecond: number;
165
- cacheHits: number;
166
- cacheMisses: number;
167
- }
168
- export interface StressUseCaseByteReport {
169
- useCase: string;
170
- requestMiB: number;
171
- responseMiB: number;
172
- flatbufferMiB: number;
173
- durationMs: number;
174
- ingressMiBps: number;
175
- egressMiBps: number;
176
- cacheHits: number;
177
- cacheMisses: number;
178
- }
179
- export interface StressReadinessRequirement {
180
- id: string;
181
- status: 'pass' | 'fail';
182
- required: string;
183
- actual: string;
184
- }
185
- export interface StressDerivedReport {
186
- runId: string;
187
- nodeCount: number;
188
- nodeStorageGb: number;
189
- recordsPerNode: number;
190
- uniqueIngestRecords: number;
191
- metricEvents: number;
192
- transport: MetricTransport[];
193
- runtime: MetricRuntime[];
194
- nodeIsolation: StressNodeIsolation;
195
- measurement: MetricMeasurement[];
196
- aggregate: {
197
- requestMiB: number;
198
- responseMiB: number;
199
- flatbufferMiB: number;
200
- maxNodeStorageMiB: number;
201
- minNodeStorageMiB: number;
202
- avgNodeStorageMiB: number;
203
- maxNodeStorageFillPct: number;
204
- minNodeStorageFillPct: number;
205
- avgNodeStorageFillPct: number;
206
- ingestRecordsPerSecond: number;
207
- minNodeIngestRecordsPerSecond: number;
208
- ingestStorageFillMiBps: number;
209
- cacheHitRatePct: number;
210
- };
211
- productionReadiness: {
212
- status: 'pass' | 'fail';
213
- failedRequirements: StressReadinessRequirement[];
214
- requirements: StressReadinessRequirement[];
215
- };
216
- topByteUseCases: StressUseCaseByteReport[];
217
- perNode: StressNodeReport[];
218
- }
219
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/stress/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;AAC1C,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,YAAY,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,WAAW,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,gBAAgB,CAAC;AAC9D,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,WAAW,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,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AAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,sBAAsB,EAAE,MAAM,CAAC;QAC/B,6BAA6B,EAAE,MAAM,CAAC;QACtC,sBAAsB,EAAE,MAAM,CAAC;QAC/B,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,mBAAmB,EAAE;QACnB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,kBAAkB,EAAE,0BAA0B,EAAE,CAAC;QACjD,YAAY,EAAE,0BAA0B,EAAE,CAAC;KAC5C,CAAC;IACF,eAAe,EAAE,uBAAuB,EAAE,CAAC;IAC3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/stress/types.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import type { NodeAssignment, NormalizedStressRunConfig, SdsSchemaInfo, StressRunConfig, StressUseCase, WorkloadManifest } from './types.js';
2
- export declare const DEFAULT_USE_CASES: StressUseCase[];
3
- export declare function normalizeStressRunConfig(config?: StressRunConfig): NormalizedStressRunConfig;
4
- export declare function buildNodeAssignments(schemas: readonly SdsSchemaInfo[], config: Pick<NormalizedStressRunConfig, 'nodeCount' | 'nodeIdOffset' | 'nodeStorageGb'>): NodeAssignment[];
5
- export declare function buildWorkloadManifest(config: StressRunConfig, schemas: readonly SdsSchemaInfo[]): WorkloadManifest;
6
- //# sourceMappingURL=workload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workload.d.ts","sourceRoot":"","sources":["../../src/stress/workload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,aAAa,EACb,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,iBAAiB,EAAE,aAAa,EAiG5C,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,MAAM,GAAE,eAAoB,GAAG,yBAAyB,CAiBhG;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,MAAM,EAAE,IAAI,CAAC,yBAAyB,EAAE,WAAW,GAAG,cAAc,GAAG,eAAe,CAAC,GACtF,cAAc,EAAE,CAclB;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,SAAS,aAAa,EAAE,GAChC,gBAAgB,CAWlB"}