Disable the default trace and system_health on new instances#1005
Merged
SimonCropp merged 1 commit intoJul 20, 2026
Merged
Conversation
Both write diagnostics for the life of the instance into the directory LocalDB owns, which is never cleaned while the instance exists. Measured across ~280 instances they account for 18% of the on-disk size, and neither is of much use for a throwaway test instance. This is not a speed up. Both are written in the background rather than on the startup path: over five stop/start cycles a tuned instance averaged 891ms against 896ms for a baseline one, which is noise. The commands go in GetOptimizeModelDbCommand, which only runs when the instance is created, and the settings live in master so they hold for the life of the instance. hkenginexesession, the other event session writing to that directory, is owned by the XTP engine, is absent from sys.server_event_sessions and cannot be altered.
SimonCropp
deleted the
Disable-the-default-trace-and-system_health-on-new-instances
branch
July 20, 2026 05:12
github-actions
Bot
restored the
Disable-the-default-trace-and-system_health-on-new-instances
branch
July 20, 2026 05:13
SimonCropp
deleted the
Disable-the-default-trace-and-system_health-on-new-instances
branch
July 20, 2026 05:25
This was referenced Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both write diagnostics for the life of the instance into the directory LocalDB owns, which is never cleaned while the instance exists. Measured across ~280 instances they account for 18% of the on-disk size, and neither is of much use for a throwaway test instance.
This is not a speed up. Both are written in the background rather than on the startup path: over five stop/start cycles a tuned instance averaged 891ms against 896ms for a baseline one, which is noise.
The commands go in GetOptimizeModelDbCommand, which only runs when the instance is created, and the settings live in master so they hold for the life of the instance.
hkenginexesession, the other event session writing to that directory, is owned by the XTP engine, is absent from sys.server_event_sessions and cannot be altered.