By default maximumTaskExecutions is 20. You can check the runningExecutionCount and maximumTaskExecutionsvalue using below url
http://localhost:9393/tasks/executions/current
Local Machine
If you are running spring-cloud dataflow server in local machine using jar file then you need to pass an argument like below.
java -jar spring-cloud-dataflow-server-<VERSION>.jar --spring.cloud.dataflow.task.platform.<PLATFORM-TYPE>.accounts.<ACCOUNT-NAME>.maximum-concurrent-tasks=<TASK-COUNT>
eg:
java -jar spring-cloud-dataflow-server-2.7.1.jar --spring.cloud.dataflow.task.platform.local.accounts.default.maximum-concurrent-tasks=1
KUBERNETES
If you are running spring cloud server in kubernetes platform then you need to change the configuration of Kubernetes task platforms
Go to src/kubernetes/server/server-config.yaml , add the property in exact place
spring:
cloud:
dataflow:
task:
platform:
<PLATFORM-TYPE>:
accounts:
<ACCOUNT-NAME>:
maximum-concurrent-tasks: <TASK-COUNT>
eg:
spring:
cloud:
dataflow:
task:
platform:
kubernetes:
accounts:
dev:
maximum-concurrent-tasks: 10
qa:
maximum-concurrent-tasks: 30
- Then apply the config kubectl apply -f src/kubernetes/server/server-config.yaml
- Then restart spring-cloud-dataflow server.
Note:
- The PLATFORM-TYPE refers to one of the currently supported deployers: local, cloudfoundry, or kubernetes
- ACCOUNT-NAME is the name of a configured platform account (default if no accounts are explicitly configured).
Reference