mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Set # of reducer shards on ExportDomainLists []
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117403604
This commit is contained in:
parent
a31a626b16
commit
401df6c34a
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,7 @@ import javax.inject.Inject;
|
|||
public class ExportDomainListsAction implements MapreduceAction {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
private static final int MAX_NUM_REDUCE_SHARDS = 100;
|
||||
|
||||
@Inject MapreduceRunner mrRunner;
|
||||
@Inject Response response;
|
||||
|
@ -73,6 +74,7 @@ public class ExportDomainListsAction implements MapreduceAction {
|
|||
response.sendJavaScriptRedirect(createJobPath(mrRunner
|
||||
.setJobName("Export domain lists")
|
||||
.setModuleName("backend")
|
||||
.setDefaultReduceShards(Math.min(realTlds.size(), MAX_NUM_REDUCE_SHARDS))
|
||||
.runMapreduce(
|
||||
new ExportDomainListsMapper(DateTime.now(UTC), realTlds),
|
||||
new ExportDomainListsReducer(gcsBucket, gcsBufferSize),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue