Skip to content

Commit

Permalink
Health check retries are increased and timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanKarab committed Jan 21, 2021
1 parent 380b8f2 commit 225bf06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Exareme-Docker/files/root/exareme/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CONSUL_WAIT_FOR_MASTER_IP_MAX_ATTEMPTS=20
EXAREME_NODE_STARTUP_HEALTH_CHECK_MAX_ATTEMPTS=10
EXAREME_NODE_HEALTH_CHECK_TIMEOUT=60
MASTER_NODE_REACHABLE_TIMEOUT=5
PERIODIC_EXAREME_NODES_HEALTH_CHECK_MAX_RETRIES=3
PERIODIC_EXAREME_NODES_HEALTH_CHECK_MAX_RETRIES=5
PERIODIC_EXAREME_NODES_HEALTH_CHECK_INTERVAL=120
EXAREME_HEALTH_CHECK_AWAIT_TIME=60
PERIODIC_TEMP_FILES_REMOVAL=300
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public String getResult(DataSerialization ds) throws RemoteException {
IOUtils.toString(resultStream, StandardCharsets.UTF_8));

new Thread(getResultFromStream).start();
result = getResultFromStream.get(10, java.util.concurrent.TimeUnit.SECONDS);
result = getResultFromStream.get(30, java.util.concurrent.TimeUnit.SECONDS);
} catch (Exception e) {
log.error("Error reading the result table!", e);
log.error("Error reading the result table! QueryID:" + status.getQueryID().getQueryID(), e);
throw new RemoteException("Could not read the result table!");
}

Expand Down

0 comments on commit 225bf06

Please sign in to comment.