summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-02 22:28:05 +0300
committerPaul Buetow <paul@buetow.org>2025-07-02 22:28:05 +0300
commita4eb3cc769c13312fdd4b7aaa20659e408f734b7 (patch)
treee80d3da40af872f43e7698c13fd339286dfd2391 /examples
parent17ee5e62c2b1037c21cb36f2677d2c538e2542cb (diff)
feat: make turbo mode configurable via config file
Add TurboModeEnable setting to server configuration with environment variable override. The DTAIL_TURBOBOOST_ENABLE environment variable takes precedence over config file setting. Turbo mode is automatically disabled for MapReduce operations to prevent data accuracy issues. - Add TurboModeEnable boolean to ServerConfig struct - Update config initializer to check environment variable for backward compatibility - Replace direct env var checks with config.Server.TurboModeEnable throughout codebase - Enable turbo mode in example config file (dtail.json.example) - Add property to JSON schema with descriptive documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/dtail.json.example1
-rwxr-xr-xexamples/dtail.schema.json4
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/dtail.json.example b/examples/dtail.json.example
index 26eb8a1..f21d114 100644
--- a/examples/dtail.json.example
+++ b/examples/dtail.json.example
@@ -97,6 +97,7 @@
"MaxConcurrentTails": 50,
"MaxConnections": 50,
"MaxLineLength": 1048576,
+ "TurboModeEnable": true,
"Permissions": {
"Default": [
"readfiles:^/.*$"
diff --git a/examples/dtail.schema.json b/examples/dtail.schema.json
index d13b133..5690ad7 100755
--- a/examples/dtail.schema.json
+++ b/examples/dtail.schema.json
@@ -395,6 +395,10 @@
"minimum": 1024,
"maximum": 10240000
},
+ "TurboModeEnable": {
+ "type": "boolean",
+ "description": "Enable turbo mode for optimized file processing (disabled by default for MapReduce)"
+ },
"Permissions": {
"type": "object",
"additionalProperties": true,