Skip to content

Commit 55e5f73

Browse files
committed
Remove unnecessary configs
1 parent 6499279 commit 55e5f73

File tree

2 files changed

+13
-39
lines changed

2 files changed

+13
-39
lines changed

ansible/roles/schedulers/tasks/deploy.yml

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -121,39 +121,27 @@
121121
"CONFIG_whisk_scheduler_queue_gracefulShutdownTimeout": "{{ scheduler.queue.gracefulShutdownTimeout }}"
122122
"CONFIG_whisk_scheduler_queue_maxRetentionSize": "{{ scheduler.queue.maxRetentionSize }}"
123123
"CONFIG_whisk_scheduler_queue_maxRetentionMs": "{{ scheduler.queue.maxRetentionMs }}"
124-
"CONFIG_whisk_scheduler_queue_maxBlackboxRetentionMs": "{{ scheduler.queue.maxBlackboxRetentionMs }}"
125124
"CONFIG_whisk_scheduler_queue_throttlingFraction": "{{ scheduler.queue.throttlingFraction }}"
126125
"CONFIG_whisk_scheduler_queue_durationBufferSize": "{{ scheduler.queue.durationBufferSize }}"
127126
"CONFIG_whisk_durationChecker_timeWindow": "{{ durationChecker.timeWindow }}"
128127

129-
"CONFIG_whisk_watcher_eventNotificationDelayMs": "{{ watcher.eventNotificationDelayMs }}"
130-
131128
"TZ": "{{ docker.timezone }}"
132129

133-
"CONFIG_whisk_info_date": "{{ whisk.version.date }}"
134-
"CONFIG_whisk_info_buildNo": "{{ docker.image.tag }}"
135-
136130
"KAFKA_HOSTS": "{{ kafka_connect_string }}"
137131
"CONFIG_whisk_kafka_replicationFactor":
138132
"{{ kafka.replicationFactor | default() }}"
139-
"CONFIG_whisk_kafka_topics_cacheInvalidation_retentionBytes":
140-
"{{ kafka_topics_cacheInvalidation_retentionBytes | default() }}"
141-
"CONFIG_whisk_kafka_topics_cacheInvalidation_retentionMs":
142-
"{{ kafka_topics_cacheInvalidation_retentionMS | default() }}"
143-
"CONFIG_whisk_kafka_topics_cacheInvalidation_segmentBytes":
144-
"{{ kafka_topics_cacheInvalidation_segmentBytes | default() }}"
145-
"CONFIG_whisk_kafka_topics_completed_retentionBytes":
146-
"{{ kafka_topics_completed_retentionBytes | default() }}"
147-
"CONFIG_whisk_kafka_topics_completed_retentionMs":
148-
"{{ kafka_topics_completed_retentionMS | default() }}"
149-
"CONFIG_whisk_kafka_topics_completed_segmentBytes":
150-
"{{ kafka_topics_completed_segmentBytes | default() }}"
151-
"CONFIG_whisk_kafka_topics_health_retentionBytes":
152-
"{{ kafka_topics_health_retentionBytes | default() }}"
153-
"CONFIG_whisk_kafka_topics_health_retentionMs":
154-
"{{ kafka_topics_health_retentionMS | default() }}"
155-
"CONFIG_whisk_kafka_topics_health_segmentBytes":
156-
"{{ kafka_topics_health_segmentBytes | default() }}"
133+
"CONFIG_whisk_kafka_topics_scheduler_retentionBytes":
134+
"{{ kafka_topics_scheduler_retentionBytes | default() }}"
135+
"CONFIG_whisk_kafka_topics_scheduler_retentionMs":
136+
"{{ kafka_topics_scheduler_retentionMS | default() }}"
137+
"CONFIG_whisk_kafka_topics_scheduler_segmentBytes":
138+
"{{ kafka_topics_scheduler_segmentBytes | default() }}"
139+
"CONFIG_whisk_kafka_topics_creationAck_retentionBytes":
140+
"{{ kafka_topics_creationAck_retentionBytes | default() }}"
141+
"CONFIG_whisk_kafka_topics_creationAck_retentionMs":
142+
"{{ kafka_topics_creationAck_retentionMS | default() }}"
143+
"CONFIG_whisk_kafka_topics_creationAck_segmentBytes":
144+
"{{ kafka_topics_creationAck_segmentBytes | default() }}"
157145
"CONFIG_whisk_kafka_topics_prefix":
158146
"{{ kafka.topicsPrefix }}"
159147
"CONFIG_whisk_kafka_topics_userEvent_prefix":
@@ -170,10 +158,7 @@
170158
"{{ kafka.ssl.keystore.password }}"
171159
"ZOOKEEPER_HOSTS": "{{ zookeeper_connect_string }}"
172160

173-
"LIMITS_ACTIONS_INVOKES_PERMINUTE": "{{ limits.invocationsPerMinute }}"
174161
"LIMITS_ACTIONS_INVOKES_CONCURRENT": "{{ limits.concurrentInvocations }}"
175-
"LIMITS_TRIGGERS_FIRES_PERMINUTE": "{{ limits.firesPerMinute }}"
176-
"LIMITS_ACTIONS_SEQUENCE_MAXLENGTH": "{{ limits.sequenceMaxLength }}"
177162

178163
"CONFIG_whisk_couchdb_protocol": "{{ db.protocol }}"
179164
"CONFIG_whisk_couchdb_host": "{{ db.host }}"
@@ -187,9 +172,6 @@
187172
"CONFIG_whisk_db_actionsDdoc": "{{ db_whisk_actions_ddoc | default() }}"
188173
"CONFIG_whisk_db_activationsDdoc": "{{ db_whisk_activations_ddoc | default() }}"
189174
"CONFIG_whisk_db_activationsFilterDdoc": "{{ db_whisk_activations_filter_ddoc | default() }}"
190-
"WHISK_API_HOST_PROTO": "{{ whisk_api_host_proto | default('https') }}"
191-
"WHISK_API_HOST_PORT": "{{ whisk_api_host_port | default('443') }}"
192-
"WHISK_API_HOST_NAME": "{{ whisk_api_host_name | default(groups['edge'] | first) }}"
193175
"CONFIG_whisk_userEvents_enabled": "{{ user_events | default(false) | lower }}"
194176

195177
"CONFIG_whisk_memory_min": "{{ limit_action_memory_min | default() }}"
@@ -200,10 +182,6 @@
200182
"CONFIG_whisk_timeLimit_max": "{{ limit_action_time_max | default() }}"
201183
"CONFIG_whisk_timeLimit_std": "{{ limit_action_time_std | default() }}"
202184

203-
"CONFIG_whisk_concurrencyLimit_min": "{{ limit_action_concurrency_min | default() }}"
204-
"CONFIG_whisk_concurrencyLimit_max": "{{ limit_action_concurrency_max | default() }}"
205-
"CONFIG_whisk_concurrencyLimit_std": "{{ limit_action_concurrency_std | default() }}"
206-
207185
"RUNTIMES_MANIFEST": "{{ runtimesManifest | to_json }}"
208186
"CONFIG_whisk_runtimes_defaultImagePrefix":
209187
"{{ runtimes_default_image_prefix | default() }}"
@@ -234,7 +212,6 @@
234212
"CONFIG_whisk_etcd_lease_timeout": "{{ etcd.lease.timeout }}"
235213
"CONFIG_whisk_etcd_pool_threads": "{{ etcd.pool_threads }}"
236214
"CONFIG_whisk_cluster_name": "{{ whisk.cluster_name | lower }}"
237-
"CONFIG_whisk_deployment_type": "vm"
238215

239216
"CONFIG_whisk_scheduler_username": "{{ scheduler.username }}"
240217
"CONFIG_whisk_scheduler_password": "{{ scheduler.password }}"

core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/Scheduler.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,10 @@ object Scheduler {
268268
schedulerHost -> null,
269269
schedulerAkkaPort -> null,
270270
schedulerRpcPort -> null,
271-
WhiskConfig.actionInvokePerMinuteLimit -> null,
272271
WhiskConfig.actionInvokeConcurrentLimit -> null,
273-
WhiskConfig.triggerFirePerMinuteLimit -> null) ++
274272
kafkaHosts ++
275273
zookeeperHosts ++
276-
wskApiHost ++
277-
ExecManifest.requiredProperties
274+
ExecManifest.requiredProperties)
278275

279276
def initKamon(instance: SchedulerInstanceId): Unit = {
280277
// Replace the hostname of the scheduler to the assigned id of the scheduler.

0 commit comments

Comments
 (0)