mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-29 18:58:05 +08:00
Set default registry-disconnect-strategy:strategy to stop (#16323)
Co-authored-by: Gallardot <gallardot@apache.org>
This commit is contained in:
parent
1199a916b3
commit
f8e1be3930
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user