Appendix A Configuration Keys
Every key lives under Machine\System\eventd\.
eventd ignores unknown
keys in the subtree. An
invalid value is ignored and the value already in use is retained, and eventd
emits an eventd.config.changed event for every change actually applied
(§8.3).
A.1 Required #
No compiled-in defaults. A missing or invalid value fails startup (§8.2).
A.2 SQLite storage #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
WalCheckpointPages | REG_DWORD | 1000 | 100–100000 | WAL page threshold triggering a passive checkpoint, on shard, log, metric and metadata databases alike. |
A.3 Event ingestion #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
StorageShards | REG_DWORD | 0 | 0–256 | Number of event shards. 0 means the successfully attached KMES-buffer count. Each shard costs at least three file descriptors, plus about two for every running query that reads every shard; a high count needs eventd's LimitNOFILE raised (§2.3). |
MaxBatchSize | REG_DWORD | 10000 | 100–100000 | Maximum events per writer transaction. |
MaxBatchLatencyMs | REG_DWORD | 100 | 10–5000 | Maximum ms before an event batch commits. |
A.4 Log ingestion #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
LogMaxBatchSize | REG_DWORD | 5000 | 100–100000 | Maximum log records per transaction. |
LogMaxBatchLatencyMs | REG_DWORD | 500 | 10–5000 | Maximum ms before a log batch commits. |
MaxLogDatagramBytes | REG_DWORD | 262144 | 262144–1048576 | Maximum accepted log datagram size; the PSPU portable floor cannot be lowered. |
A.5 Metric ingestion #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
MetricMaxBatchSize | REG_DWORD | 5000 | 100–100000 | Maximum metric samples per transaction. |
MetricMaxBatchLatencyMs | REG_DWORD | 1000 | 10–5000 | Maximum ms before a metric batch commits. |
MaxMetricDatagramBytes | REG_DWORD | 262144 | 262144–1048576 | Maximum accepted metric datagram size; the PSPU portable floor cannot be lowered. |
MetricSeriesCacheSize | REG_DWORD | 50000 | 1000–1000000 | Entries in the LRU series resolution cache. |
MetricAuthorizationCacheSize | REG_DWORD | 16384 | 256–1000000 | Cached KACS publication verdicts, invalidated by security-policy generation. |
HealthMetricIntervalSeconds | REG_DWORD | 15 | 0–3600 | How often eventd records its own health as eventd.* metrics; 0 turns them off (§5.7). |
A.6 Adaptive indexing #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
AdaptiveIndexWindowHours | REG_DWORD | 24 | 1–168 | Rolling window over which query frequency is measured. |
AdaptiveIndexPolicyIntervalMinutes | REG_DWORD | 60 | 60–1440 | How often the desired index set is recomputed. The minimum of 60 prevents index churn. |
AdaptiveIndexCreateThreshold | REG_DWORD | 100 | 10–10000 | Queries on a field within the window needed to add it. |
AdaptiveIndexDropThreshold | REG_DWORD | 10 | 1–1000 | Queries below which it is removed. Less than the create threshold, which is what supplies the hysteresis. |
A.7 Index shedding #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
SheddingWindowSeconds | REG_DWORD | 30 | 10–300 | Sliding window for graduated shedding. |
SheddingBatchPercent | REG_DWORD | 75 | 50–100 | Percentage of batches in the window exceeding 75% of MaxBatchSize that triggers graduated shedding. |
EmergencySheddingBufferPercent | REG_DWORD | 75 | 50–95 | Ring buffer fill percentage triggering emergency shedding. |
A.8 Retention #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
EventRetentionDays | REG_DWORD | 30 | 1–3650 | Maximum age of events. |
EventRetentionMaxBytes | REG_QWORD | 0 | 0–2^64−1 | Maximum total logical live size of the event shards. 0 means no limit. |
LogRetentionDays | REG_DWORD | 14 | 1–3650 | Maximum age of log entries. |
LogRetentionMaxBytes | REG_QWORD | 0 | 0–2^64−1 | Maximum logical live size of the log store. 0 means no limit. |
MetricRetentionDays | REG_DWORD | 90 | 1–3650 | Maximum age of metric samples. |
MetricRetentionMaxBytes | REG_QWORD | 1073741824 (1 GiB) | 0–2^64−1 | Maximum logical live size of the metric store. 0 explicitly disables the limit. |
RetentionCheckIntervalMinutes | REG_DWORD | 60 | 1–1440 | How often the retention coordinator runs. |
RetentionDeleteBatchRows | REG_DWORD | 10000 | 100–100000 | Maximum rows deleted in one retention transaction. |
A.9 Querying #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
QueryTimeoutMs | REG_DWORD | 30000 | 1000–300000 | Maximum query execution time. |
MaxConcurrentQueries | REG_DWORD | 128 | 1–4096 | Concurrent finite and streaming queries globally. |
MaxStreamingQueries | REG_DWORD | 64 | 1–1024 | Concurrent streaming queries globally. |
MaxQueriesPerUser | REG_DWORD | 16 | 1–4096 | Concurrent queries, streaming or not, held by one caller's user SID; SYSTEM's are not counted (§6.5). |
MaxDistinctStreamValues | REG_DWORD | 100000 | 1000–10000000 | Values tracked by one DISTINCT streaming query. |
MaxQueryRequestBytes | REG_DWORD | 65536 | 1024–16777216 | Hard maximum query request payload. |
QueryResponseTargetBytes | REG_DWORD | 65536 | 1024–16777216 | Soft response batching target; one complete record can exceed it (§6). |
MaxQueryHeldBytes | REG_DWORD | 268435456 (256 MiB) | 16777216–4294967295 | What every running query together can hold to answer: sorted rows, aggregation groups, and watch batches. A query in the default order holds nothing against it (§6.5). |
A.10 Adaptive metric rollups #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
AdaptiveRollupMinSamples | REG_DWORD | 1000 | 100–1000000 | Minimum raw inputs an eligible window query must scan before it can seed rollups. |
AdaptiveRollupBatchRows | REG_DWORD | 512 | 16–4096 | Maximum missing windows submitted in one bounded writer command. |
AdaptiveRollupMaxRows | REG_DWORD | 100000 | 0–10000000 | Global rollup-cache row cap. 0 disables cache reads and writes without changing results. |
A.11 Cross-type filtering #
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
CrossTypeWindowMs | REG_DWORD | 15000 | 1000–300000 | Centered window for cross-type event and log existence checks. |
CrossTypeMaxLookbackSeconds | REG_DWORD | 604800 | 3600–2592000 | Maximum range a cross-type filter can scan. |
A.12 The security subtree #
Read-path descriptors live under Machine\System\eventd\Security\ and
are not configuration in the sense above (§7.2):
Machine\System\eventd\Security\Events\*
Machine\System\eventd\Security\Events\<pattern>
Machine\System\eventd\Security\Logs\*
Machine\System\eventd\Security\Logs\<pattern>
Machine\System\eventd\Security\Metrics\*
Machine\System\eventd\Security\Metrics\<pattern>
Machine\System\eventd\Security\Admin
Security\Admin governs EVENTD_ADMINISTER, especially INDEX, and
defaults to SYSTEM and Administrators.
It is registry-protected policy, not data in eventd-meta.db (§3.5,
§7.2).
A.13 When a change takes effect #
| Change | Effect |
|---|---|
| Every tuning parameter above | Applied immediately. |
| Socket paths | Restart. |
| Store paths | Restart. |
StorageShards | Restart. |
| Security descriptors | Next query; the registry watch invalidates the cache. |