Commit 829ed541 authored by Lisa Casino's avatar Lisa Casino

software/theia: add new modules and promises

parent 374f9271
......@@ -15,7 +15,7 @@
[instance-theia]
_update_hash_filename_ = instance-theia.cfg.jinja.in
md5sum = e39925b69a8bc17d17be54c075ae2f88
md5sum = 6c0d352d30221b157584788510f464c1
[instance]
_update_hash_filename_ = instance.cfg.in
......
......@@ -66,6 +66,10 @@ fish-completions = $${:home}/.config/fish/completions/
# Promises
# --------
[monitor-instance-parameter]
# by default the prediction will be for the next 10 days
days-check-free-disk-space =
[promises]
recipe =
instance-promises =
......@@ -79,6 +83,9 @@ instance-promises =
$${slapos-standalone-listen-promise:name}
$${slapos-standalone-ready-promise:name}
$${slapos-autorun-promise:name}
{% if parameter_dict.get('display-anomaly') in ('True', 'on', '1') %}
$${monitor-partition-space-promise:name}
{% endif %}
[theia-listen-promise]
<= monitor-promise-base
......@@ -142,6 +149,21 @@ config-service = $${slapos-autorun:service-name}
config-expect = $${slapos-autorun:autorun}
config-run-directory = $${directory:runner}/var/run
[promise-check-free-disk-space]
eggs = slapos.toolbox[prediction]
config-nb-days-predicted = $${monitor-instance-parameter:days-check-free-disk-space}
# change "display-prediction" to decide if we use ARIMA
config-display-prediction = {{ parameter_dict.get('display-prediction', 0) }}
# change "display-partition" to decide if we display the three biggest partitions in case of error
config-display-partition = {{ parameter_dict.get('display-partition', 1) }}
[monitor-partition-space-promise]
<= monitor-promise-base
eggs = slapos.toolbox[pandas]
module = monitor_partition_space
name = monitor-partition-space.py
config-collectordb = $${monitor-instance-parameter:collector-db}
config-threshold-ratio =
# Remote Caddy Frontend
# ---------------------
......
......@@ -14,6 +14,9 @@ extends =
../../component/fonts/buildout.cfg
../../component/libsecret/buildout.cfg
../../component/pkgconfig/buildout.cfg
../../component/pandas/buildout.cfg
../../component/statsmodels/buildout.cfg
../../component/scipy/buildout.cfg
../../stack/nodejs.cfg
../../stack/slapos.cfg
../../stack/monitor/buildout.cfg
......@@ -33,6 +36,7 @@ parts =
instance-resilient
theia-common
theia-export
slapos-toolbox
# default for slapos-standalone
shared-part-list =
......@@ -42,6 +46,15 @@ shared-part-list =
[gcc]
max_version = 0
[slapos-toolbox-dependencies]
eggs =
${lxml-python:egg}
${pycurl:egg}
${python-cryptography:egg}
${backports.lzma:egg}
${pandas:egg}
${statsmodels:egg}
${scipy:egg}
[nodejs]
<= nodejs-12.18.3
......@@ -425,3 +438,9 @@ bash = ${bash:location}/bin/bash
supervisorctl = ${buildout:bin-directory}/supervisorctl
theia-export = ${theia-export:output}
theia-import = ${theia-import:output}
[versions]
scipy = 1.0.1
statsmodels = 0.8.0
patsy = 0.4.1
pandas = 0.19.2
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment