summaryrefslogtreecommitdiffstats
path: root/setup/projects/adei/templates/60-adei.yml.j2
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:55:40 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 04:55:40 +0200
commitefe4b9bbe3c9cb950378de9697eed2030ac49ca2 (patch)
treeac478e0d2d4a385161fcb189f48998faf2410e5a /setup/projects/adei/templates/60-adei.yml.j2
parent6b659b35c1d6214688920200efe1d782a0a5d877 (diff)
downloadands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.tar.gz
ands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.tar.bz2
ands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.tar.xz
ands-efe4b9bbe3c9cb950378de9697eed2030ac49ca2.zip
Optimize ADEI template: mini-containers for cron-jobs, adjust scheduling intervals to reduce load spikes
Diffstat (limited to 'setup/projects/adei/templates/60-adei.yml.j2')
-rw-r--r--setup/projects/adei/templates/60-adei.yml.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/setup/projects/adei/templates/60-adei.yml.j2 b/setup/projects/adei/templates/60-adei.yml.j2
index 6d0ccae..5e508bc 100644
--- a/setup/projects/adei/templates/60-adei.yml.j2
+++ b/setup/projects/adei/templates/60-adei.yml.j2
@@ -12,7 +12,7 @@ metadata:
labels:
app: "adei"
objects:
-{% for name, cfg in adei_frontends.iteritems() %}
+{% for name, cfg in adei_frontends.items() %}
{% if (cfg.enabled | default(true)) %}
{% if (cfg.cron is defined) %}
{% set pod_type = "cron" %}
@@ -152,7 +152,7 @@ objects:
{% endif %}
containers:
- name: "{{ cfg.name }}"
- image: adei
+ image: "{{ cfg.image | default('adei:latest') }}"
imagePullPolicy: {{ pull_policy }}
{% if (cfg.node is defined) %}
command:
@@ -259,10 +259,10 @@ parameters:
value: "sources"
description: "Type of caching parallelism by a cacher replica: (sources or groups)"
- name: update_schedule
- value: "*/5 * * * *"
+ value: "*/13 * * * *"
description: "Schedule of caching group updates"
- name: maintain_schedule
- value: "*/15 * * * *"
+ value: "*/31 * * * *"
description: "Schedule of maintain tasks"
- name: clean_schedule
value: "9 3 * * *"