Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.toolbox
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.toolbox
  • Merge requests
  • !99

Closed
Created Aug 06, 2021 by Lisa Casino@lisa.casino
  • Report abuse
Report abuse

New promises for disk space

  • Overview 42
  • Commits 5
  • Changes 7

Adding two new promises:

  • monitor_partition_space: is intended to be used on erp5. This promise detects bugs/anomalies by observing the behavior of partitions. For example, if a user suddenly uses a lot of disk space (related to a bug), then the promise returns an error. A threshold is set by default but can be changed from the SR. (the promise uses the folder table from the database)
  • check_free_disk_space: by default, has the same behavior as the current promise. Possibility to add parameters from the SR which are by default set to False:
    • display_prediction: uses ARIMA from the statsmodels library. Allows to predict the behavior of the total disk space (uses the disk table of the database) in 10 days by default. If in the last of the predicted days, the remaining space is smaller than the threshold (by default 5% of the disk size), then the promise returns a warning.
    • display_partition: if the current disk size is smaller than the threshold, then the promise returns an error and the 3 biggest partitions of the computer. (this option uses the folder table from the database

Both promises use pandas, numpy and check_free_disk_space also uses statsmodels (and therefore scipy).

To use these libraries, we need to change slapos.cfg as we can see in this commit https://lab.nexedi.com/lisa.casino/slapos/commit/68831d7a54ea550fc22c59df7ee4cfb312753aed on my personal slapos branch.

Edited Apr 07, 2025 by Thomas Gambier
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: new_check_free_disk_space
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7