mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
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:
parent
ba3552e81a
commit
89df3ce9fc
1 changed files with 3 additions and 5 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue