From a4eb3cc769c13312fdd4b7aaa20659e408f734b7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 2 Jul 2025 22:28:05 +0300 Subject: feat: make turbo mode configurable via config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- examples/dtail.schema.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/dtail.schema.json') 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, -- cgit v1.2.3