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.json.example | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/dtail.json.example') 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:^/.*$" -- cgit v1.2.3