From 782397f3de45fd1585ff0e5361ff5b61c24c5dd4 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Feb 2018 04:28:36 +0100 Subject: ADEI cachers --- setup/projects/adei/vars/globals.yml | 143 ++++++++++++++++++++++++----------- 1 file changed, 97 insertions(+), 46 deletions(-) (limited to 'setup/projects/adei/vars') diff --git a/setup/projects/adei/vars/globals.yml b/setup/projects/adei/vars/globals.yml index 60cb212..91f5933 100644 --- a/setup/projects/adei/vars/globals.yml +++ b/setup/projects/adei/vars/globals.yml @@ -15,17 +15,18 @@ adei_pod_env: value: "adei" - name: "ADEI_PORTS" value: "8080" - - name: "ADEI_SETUP" - value: "${setup}" - name: "ADEI_ENABLED_SETUPS" - value: "${setup}" - - name: "ADEI_PARALLEL" - value: "${cache_parallel}" + value: "${setup} ${setup}-logs" - name: "ADEI_REVISION" value: "${adei_revision}" - + - name: "ADEI_PATH" + value: "/adei/src" + - name: "ADEI_URL" + value: "http://adei-${setup}.adei.svc.cluster.local/adei" adei_prod_env: + - name: "ADEI_SETUP" + value: "${setup}" - name: "ADEI_RELEASE" value: "1" - name: "ADEI_WRITE_LOGS" @@ -36,6 +37,8 @@ adei_prod_env: value: "${apache_servers}" adei_log_env: + - name: "ADEI_SETUP" + value: "${setup}-logs" - name: "ADEI_RELEASE" value: "1" - name: "ADEI_WRITE_LOGS" @@ -46,6 +49,8 @@ adei_log_env: value: "5" adei_debug_env: + - name: "ADEI_SETUP" + value: "${setup}" - name: "ADEI_RELEASE" value: "0" - name: "ADEI_WRITE_LOGS" @@ -56,8 +61,38 @@ adei_debug_env: value: "5" adei_cron_env: + - name: "ADEI_SETUP" + value: "${setup}" - name: "ADEI_SCHEDULER" - value: "1" + value: "${sched_parallel}" + +adei_ccache_env: + - name: "ADEI_CONTINUOUS_CACHING" + value: "${continuous_caching}" + +adei_cache_env: + - name: "ADEI_SETUP" + value: "${setup}" + - name: "ADEI_PARALLEL" + value: "${cache_parallel}" + - name: "ADEI_IDLE_SLEEP" + value: "5" + +adei_arc_cache_env: + - name: "ADEI_SETUP" + value: "${setup}" + - name: "ADEI_PARALLEL" + value: "${cache_parallel}" + - name: "ADEI_IDLE_SLEEP" + value: "300" + +adei_log_cache_env: + - name: "ADEI_SETUP" + value: "${setup}-logs" + - name: "ADEI_PARALLEL" + value: "${sched_parallel}" + - name: "ADEI_IDLE_SLEEP" + value: "300" adei_pod_vols: @@ -79,9 +114,6 @@ adei_pod_vols: - name: adei-log persistentVolumeClaim: claimName: adei-log -# - name: adei-ovr -# emptyDir: {} - adei_prod_mounts: - name: adei-src @@ -107,42 +139,7 @@ adei_pod_mounts: subPath: "${setup}/apache2" mountPath: /var/log/apache2 -# Only backends... -# - name: adei-log -# subPath: "${setup}/mail" -# mountPath: /var/spool/mail - -#adei_prod_pod_mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" -#adei_dbg_pod_mounts: "{{ adei_dbg_mounts | union(adei_pod_mounts) }}" - adei_frontends: - update: - name: "adei-${setup}-update" - cron: "${adei_schedule_cache}" - cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei.cron.sh" ] - env: "{{ adei_pod_env | union(adei_cron_env) }}" - vols: "{{ adei_pod_vols }}" - mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] - enabled: true - maintain: - name: "adei-${setup}-maintain" - cron: "${adei_schedule_cache}" - cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_manager.cron.sh" ] - env: "{{ adei_pod_env | union(adei_cron_env) }}" - vols: "{{ adei_pod_vols }}" - mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] - enabled: false - clean: - name: "adei-${setup}-clean" - cron: "${adei_schedule_cache}" - cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_clean.cron.sh" ] - env: "{{ adei_pod_env | union(adei_cron_env) }}" - vols: "{{ adei_pod_vols }}" - mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] - enabled: false frontend: name: "adei-${setup}" node: "adei-${setup}.{{ adei_domain }}" @@ -165,9 +162,63 @@ adei_frontends: logs: name: "adei-${setup}-logs" node: "adei-${setup}-logs.{{ adei_domain }}" - replicas: 1 + replicas: "${enabled_logs}" env: "{{ adei_pod_env | union(adei_log_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" groups: [ "adei" ] enabled: false + cacher: + name: "adei-${setup}-cacher" + replicas: "${cache_replicas}" + cmd: [ "/bin/bash", "/adei/src/scripts/system/cacher.sh" ] + env: "{{ adei_pod_env | union(adei_cache_env) | union(adei_ccache_env) }}" + vols: "{{ adei_pod_vols }}" + mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" + groups: [ "adei" ] + enabled: true + archive_cacher: + name: "adei-${setup}-archive-cacher" + replicas: "1" + cmd: [ "/bin/bash", "/adei/src/scripts/system/cacher.sh -m archive" ] + env: "{{ adei_pod_env | union(adei_arc_cache_env) }}" + vols: "{{ adei_pod_vols }}" + mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" + groups: [ "adei" ] + enabled: false + log_cacher: + name: "adei-${setup}-log-cacher" + replicas: "${enabled_logs}" + cmd: [ "/bin/bash", "/adei/src/scripts/system/cacher.sh" ] + env: "{{ adei_pod_env | union(adei_log_cache_env) }}" + vols: "{{ adei_pod_vols }}" + mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" + groups: [ "adei" ] + enabled: false + update: + name: "adei-${setup}-update" + cron: "${update_schedule}" + cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei.cron.sh" ] + env: "{{ adei_pod_env | union(adei_cron_env) | union(adei_ccache_env) }}" + vols: "{{ adei_pod_vols }}" + mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" + groups: [ "adei" ] + enabled: true + maintain: + name: "adei-${setup}-maintain" + cron: "${maintain_schedule}" + cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_manager.cron.sh" ] + env: "{{ adei_pod_env | union(adei_cron_env) }}" + vols: "{{ adei_pod_vols }}" + mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" + groups: [ "adei" ] + enabled: false + clean: + name: "adei-${setup}-clean" + cron: "${clean_schedule}" + cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_clean.cron.sh" ] + env: "{{ adei_pod_env | union(adei_cron_env) }}" + vols: "{{ adei_pod_vols }}" + mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" + groups: [ "adei" ] + enabled: false -- cgit v1.2.3