Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !1037

Open
Created Aug 17, 2021 by Lisa Casino@lisa.casinoContributor
  • Report abuse
Report abuse

WIP: add new promises to stack/monitor

  • Overview 1
  • Commits 5
  • Changes 9

Branch on slapos.toolbox with new promises here and the MR slapos.toolbox!99 (closed)

The goal is to be able to use the pandas libraries in the monitor_partition_space.py promise and pandas/scipy/statsmodels in the check_free_disk_space.py promise to use the new ARIMA option to predict the remaining disk space. There are now in stack/monitor the two new updated promises.

Concerning the check_free_disk_space promise, the display-partition-check-free-disk-space option is enabled by default but not the display-prediction-check-free-disk-space option. To use ARIMA, you have to modify the SR as you can see (theia here):

[monitor-instance-parameter]
# change the value of "display-prediction" to 1 to use ARIMA in the check_free_disk_space promise
display-prediction-check-free-disk-space = {{ parameter_dict.get('display-prediction', 0) }}
# by default the prediction will be for the next 10 days, this parameter can be changed below
days-check-free-disk-space =

Theia extends the [monitor-instance-parameter] section of monitor and by modifying the display-prediction parameter (slapos request ... --parameters display-prediction=1), theia will use the prediction in the promise.

I also add the display-anomaly parameter which allows to use the monitor_partition_space promise only if the user wants it (slapos request ... --parameters display-anomaly=1).

In these changes, the new modules (pandas, statsmodels and scipy) are currently compiled by default.

The Test Suite (in progress)

Edited Aug 25, 2021 by Lisa Casino
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: wip-sr-pandas-statsmodels
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7