Skip to content

Disable the default trace and system_health on new instances#1005

Merged
SimonCropp merged 1 commit into
mainfrom
Disable-the-default-trace-and-system_health-on-new-instances
Jul 20, 2026
Merged

Disable the default trace and system_health on new instances#1005
SimonCropp merged 1 commit into
mainfrom
Disable-the-default-trace-and-system_health-on-new-instances

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

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.

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 SimonCropp added this to the 24.1.5 milestone Jul 20, 2026
@SimonCropp
SimonCropp merged commit c3a239d into main Jul 20, 2026
4 of 6 checks passed
@SimonCropp
SimonCropp deleted the Disable-the-default-trace-and-system_health-on-new-instances branch July 20, 2026 05:12
@github-actions
github-actions Bot restored the Disable-the-default-trace-and-system_health-on-new-instances branch July 20, 2026 05:13
@SimonCropp
SimonCropp deleted the Disable-the-default-trace-and-system_health-on-new-instances branch July 20, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant