style95 commented on a change in pull request #5194:
URL: https://github.com/apache/openwhisk/pull/5194#discussion_r787292593
##########
File path: ansible/group_vars/all
##########
@@ -463,13 +471,63 @@ etcd_connect_string: "{% set ret = [] %}\
{% endfor %}\
{{ ret | join(',') }}"
+
+__scheduler_blackbox_fraction: 0.10
+
+watcher:
+ eventNotificationDelayMs: "{{ watcher_notification_delay | default('5000
ms') }}"
+
+durationChecker:
+ timeWindow: "{{ duration_checker_time_window | default('1 d') }}"
+
+enable_scheduler: "{{ scheduler_enable | default(false) }}"
+
scheduler:
protocol: "{{ scheduler_protocol | default('http') }}"
+ dir:
+ become: "{{ scheduler_dir_become | default(false) }}"
+ confdir: "{{ config_root_dir }}/scheduler"
+ basePort: 14001
grpc:
+ basePort: 13001
tls: "{{ scheduler_grpc_tls | default(false) }}"
maxPeek: "{{ scheduler_max_peek | default(128) }}"
+ heap: "{{ scheduler_heap | default('2g') }}"
+ arguments: "{{ scheduler_arguments | default('') }}"
+ instances: "{{ groups['schedulers'] | length }}"
+ username: "{{ scheduler_username | default('scheduler.user') }}"
+ password: "{{ scheduler_password | default('scheduler.pass') }}"
+ akka:
+ provider: cluster
+ cluster:
+ basePort: 25520
+ host: "{{ groups['schedulers'] | map('extract', hostvars,
'ansible_host') | list }}"
+ bindPort: 3551
+ # at this moment all schedulers are seed nodes
+ seedNodes: "{{ groups['schedulers'] | map('extract', hostvars,
'ansible_host') | list }}"
+ loglevel: "{{ scheduler_loglevel | default(whisk_loglevel) | default('INFO')
}}"
+ extraEnv: "{{ scheduler_extraEnv | default({}) }}"
+ dataManagementService:
+ retryInterval: "{{ scheduler_dataManagementService_retryInterval |
default('1 second') }}"
+ inProgressJobRetentionSecond: "{{ scheduler_inProgressJobRetentionSecond |
default('20 seconds') }}"
+ managedFraction: "{{ scheduler_managed_fraction | default(1.0 -
(scheduler_blackbox_fraction | default(__scheduler_blackbox_fraction))) }}"
+ blackboxFraction: "{{ scheduler_blackbox_fraction |
default(__scheduler_blackbox_fraction) }}"
queueManager:
maxSchedulingTime: "{{ scheduler_maxSchedulingTime | default('20 second')
}}"
maxRetriesToGetQueue: "{{ scheduler_maxRetriesToGetQueue | default(13) }}"
+ queue:
+ # the queue's state Running timeout, e.g. if have no activation comes into
queue when Running, the queue state will be changed from Running to Idle and
delete the decision algorithm actor
+ idleGrace: "{{ scheduler_queue_idleGrace | default('20 seconds') }}"
Review comment:
I think 24 hours does not fit all cases.
I mentioned it because we are using 24 hours.
I am ok to change the default value but I believe each downstream will also
choose the proper timeout other than the default.
The default configuration here means a queue will become idle after 20
seconds and be terminated after another 20 seconds.
In the idle status, the queue will not run any decision-making to add
containers and get back to running whenever a new activation comes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]