Reduce # shards in CreateSyntheticHistoryEntriesAction (#1344)

We need these to get created (we are blocked from moving to SQL until 30
days after their creation) so reduce this to 3 in the hopes of avoiding
the SQL overloads while we debug why those are occurring in the first
place.
This commit is contained in:
gbrodman 2021-09-28 10:46:50 -04:00 committed by GitHub
parent ba3552e81a
commit 89df3ce9fc

View file

@ -88,12 +88,10 @@ public class CreateSyntheticHistoryEntriesAction implements Runnable {
/** /**
* The number of shards to run the map-only mapreduce on. * The number of shards to run the map-only mapreduce on.
* *
* <p>This is less than the default of 100 because we can afford it being slower, but we don't * <p>This is much lower than the default of 100, or even 10, because we can afford it being slow
* want to write out lots of large commit logs in a short period of time. If we did so, the * and we want to avoid overloading SQL.
* asynchronous replication action (run every few minutes) might fall behind which may make the
* migration tougher.
*/ */
private static final int NUM_SHARDS = 10; private static final int NUM_SHARDS = 3;
@Override @Override
public void run() { public void run() {