|
136 | 136 | M(LocalWriteThrottlerBytes, "Bytes passed through 'max_local_write_bandwidth_for_server'/'max_local_write_bandwidth' throttler.", ValueType::Bytes) \ |
137 | 137 | M(LocalWriteThrottlerSleepMicroseconds, "Total time a query was sleeping to conform 'max_local_write_bandwidth_for_server'/'max_local_write_bandwidth' throttling.", ValueType::Microseconds) \ |
138 | 138 | M(ThrottlerSleepMicroseconds, "Total time a query was sleeping to conform all throttling settings.", ValueType::Microseconds) \ |
139 | | - M(ReadTasksWithAppliedMutationsOnFly, "Total number of parts for which there was any mutation applied on fly", ValueType::Number) \ |
140 | | - M(MutationsAppliedOnFlyInAllReadTasks, "The sum of number of applied mutations on-fly for part among all read parts", ValueType::Number) \ |
| 139 | + M(ReadTasksWithAppliedPatches, "Total number of read tasks for which there was any patch part applied", ValueType::Number) \ |
| 140 | + M(PatchesAppliedInAllReadTasks, "Total number of applied patch parts among all read tasks", ValueType::Number) \ |
| 141 | + M(PatchesMergeAppliedInAllReadTasks, "Total number of applied patch parts with Merge mode among all read tasks", ValueType::Number) \ |
| 142 | + M(PatchesJoinAppliedInAllReadTasks, "Total number of applied patch parts with Join mode among all read tasks", ValueType::Number) \ |
| 143 | + M(ApplyPatchesMicroseconds, "Total time spent applying patch parts", ValueType::Number) \ |
| 144 | + M(ApplyPatchesMergeMicroseconds, "Total time spent applying patch parts with Merge mode", ValueType::Number) \ |
| 145 | + M(ApplyPatchesJoinMicroseconds, "Total time spent applying patch parts with Join mode", ValueType::Number) \ |
| 146 | + M(AnalyzePatchRangesMicroseconds, "Total time spent analyzing index of patch parts", ValueType::Number) \ |
| 147 | + M(ReadTasksWithAppliedMutationsOnFly, "Total number of read tasks for which there was any mutation applied on fly", ValueType::Number) \ |
| 148 | + M(MutationsAppliedOnFlyInAllReadTasks, "Total number of applied mutations on-fly among all read tasks", ValueType::Number) \ |
141 | 149 | \ |
142 | 150 | M(SchedulerIOReadRequests, "Resource requests passed through scheduler for IO reads.", ValueType::Number) \ |
143 | 151 | M(SchedulerIOReadBytes, "Bytes passed through scheduler for IO reads.", ValueType::Bytes) \ |
@@ -1135,6 +1143,8 @@ Event end() { return END; } |
1135 | 1143 |
|
1136 | 1144 | bool checkCPUOverload(Int64 os_cpu_busy_time_threshold, double min_ratio, double max_ratio, bool should_throw) |
1137 | 1145 | { |
| 1146 | + if ((max_ratio <= 0.0) || (max_ratio <= min_ratio)) |
| 1147 | + return false; |
1138 | 1148 | double cpu_load = global_counters.getCPUOverload(os_cpu_busy_time_threshold); |
1139 | 1149 |
|
1140 | 1150 | if (cpu_load > DBL_EPSILON) |
|
0 commit comments