Skip to content

Commit

Permalink
#150 - Update some default settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Jul 14, 2020
1 parent 23299e1 commit f51acf5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ protected RecoveryStrategy newRecoveryStrategy(CoreContainer cc, CoreDescriptor
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private volatile int waitForUpdatesWithStaleStatePauseMilliSeconds = Integer
.getInteger("solr.cloud.wait-for-updates-with-stale-state-pause", 2500);
.getInteger("solr.cloud.wait-for-updates-with-stale-state-pause", 0);
private volatile int maxRetries = 500;
private volatile int startingRecoveryDelayMilliSeconds = Integer
.getInteger("solr.cloud.starting-recovery-delay-milli-seconds", 2000);
.getInteger("solr.cloud.starting-recovery-delay-milli-seconds", 0);

public static interface RecoveryListener {
public void recovered();
Expand Down Expand Up @@ -935,8 +935,8 @@ final private void sendPrepRecoveryCmd(String leaderBaseUrl, String leaderCoreNa
}

int conflictWaitMs = zkController.getLeaderConflictResolveWait();
// timeout after 5 seconds more than the max timeout (conflictWait + 3 seconds) on the server side
int readTimeout = conflictWaitMs + Integer.parseInt(System.getProperty("prepRecoveryReadTimeoutExtraWait", "8000"));

int readTimeout = conflictWaitMs + Integer.parseInt(System.getProperty("prepRecoveryReadTimeoutExtraWait", "100"));
try (HttpSolrClient client = buildRecoverySolrClient(leaderBaseUrl)) {
client.setSoTimeout(readTimeout);
HttpUriRequestResponse mrr = client.httpUriRequest(prepCmd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public final class DefaultSolrCoreState extends SolrCoreState implements Recover

private final ReentrantLock recoveryLock = new ReentrantLock();

private final ActionThrottle recoveryThrottle = new ActionThrottle("recovery", Integer.getInteger("solr.recoveryThrottle", 5000));
private final ActionThrottle recoveryThrottle = new ActionThrottle("recovery", Integer.getInteger("solr.recoveryThrottle", 100));

private final ActionThrottle leaderThrottle = new ActionThrottle("leader", Integer.getInteger("solr.leaderThrottle", 3000));
private final ActionThrottle leaderThrottle = new ActionThrottle("leader", Integer.getInteger("solr.leaderThrottle", 100));

private final AtomicInteger recoveryWaiting = new AtomicInteger();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public static void setDefaultConfigDirSysPropIfNotSet() throws Exception {
System.setProperty("solr.indexfetcher.sotimeout", "15000");
System.setProperty("solr.indexfetch.so_timeout.default", "15000");

System.setProperty("prepRecoveryReadTimeoutExtraWait", "0");
System.setProperty("prepRecoveryReadTimeoutExtraWait", "100");
System.setProperty("validateAfterInactivity", "-1");
System.setProperty("leaderVoteWait", "5000"); // this is also apparently controlling how long we wait for a leader on register nocommit
System.setProperty("leaderConflictResolveWait", "10000");
Expand Down

0 comments on commit f51acf5

Please sign in to comment.