This looks like a bug. When maintenance mode is enabled, it should also block all requests to the PHP tracker API and not process any tracking requests. This is eg useful when having a long running
ALTER TABLE query running and at the same time heaps of other requests are still coming in.
Turns out there is
Or ideally, when
maintenance_mode=1, it would assume
record_statistics=0. so maintenance mode would disable UI and tracking requests. Then we could have maybe a setting to only enable
maintenance_mode_ui. Wondering also if in same process
record_statistics could be eventually renamed to
maintenance_mode_tracker or just have it as an additional flag besides
record_statistics for usability.