Set default registry-disconnect-strategy:strategy to stop (#16323)

Co-authored-by: Gallardot <gallardot@apache.org>
This commit is contained in:
Wenjun Ruan 2024-07-16 15:35:12 +08:00 committed by GitHub
parent 1199a916b3
commit f8e1be3930
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 9 deletions

View File

@ -184,5 +184,9 @@ public class MasterServer implements IStoppable {
@Override
public void stop(String cause) {
close(cause);
// make sure exit after server closed, don't call System.exit in close logic, will cause deadlock if close
// multiple times at the same time
System.exit(1);
}
}

View File

@ -112,9 +112,7 @@ master:
kill-application-when-task-failover: true
registry-disconnect-strategy:
# The disconnect strategy: stop, waiting
strategy: waiting
# The max waiting time to reconnect to registry if you set the strategy to waiting
max-waiting-time: 100s
strategy: stop
worker-group-refresh-interval: 10s
command-fetch-strategy:
type: ID_SLOT_BASED

View File

@ -127,9 +127,7 @@ master:
kill-application-when-task-failover: true
registry-disconnect-strategy:
# The disconnect strategy: stop, waiting
strategy: waiting
# The max waiting time to reconnect to registry if you set the strategy to waiting
max-waiting-time: 100s
strategy: stop
worker-group-refresh-interval: 10s
command-fetch-strategy:
type: ID_SLOT_BASED

View File

@ -146,6 +146,10 @@ public class WorkerServer implements IStoppable {
@Override
public void stop(String cause) {
close(cause);
// make sure exit after server closed, don't call System.exit in close logic, will cause deadlock if close
// multiple times at the same time
System.exit(1);
}
public void killAllRunningTasks() {

View File

@ -61,9 +61,7 @@ worker:
max-disk-usage-percentage-thresholds: 0.7
registry-disconnect-strategy:
# The disconnect strategy: stop, waiting
strategy: waiting
# The max waiting time to reconnect to registry if you set the strategy to waiting
max-waiting-time: 100s
strategy: stop
task-execute-threads-full-policy: REJECT
tenant-config:
# tenant corresponds to the user of the system, which is used by the worker to submit the job. If system does not have this user, it will be automatically created after the parameter worker.tenant.auto.create is true.