Reduce block search size in AT state trimmer to reduce load

This commit is contained in:
catbref 2020-09-29 11:41:30 +01:00
parent a681f741dd
commit a6a1f65d3e

View File

@ -15,7 +15,7 @@ public class AtStatesTrimmer implements Runnable {
private enum TrimMode { SEARCHING, TRIMMING }
private static final long TRIM_INTERVAL = 2 * 1000L; // ms
private static final int TRIM_SEARCH_SIZE = 5000; // blocks
private static final int TRIM_SEARCH_SIZE = 2000; // blocks
private static final int TRIM_BATCH_SIZE = 200; // blocks
private static final int TRIM_LIMIT = 4000; // rows