isomer.database.components module

Database maintenance components

class BackupManager(*args, **kwargs)[source]

Bases: isomer.component.ConfigurableComponent

Regularly creates backups of collections

__init__(*args, **kwargs)[source]

Check for configuration issues and instantiate a component

backup(*args)[source]

Perform a regular backup

configprops = {'interval': {'default': 86400, 'description': 'Interval in seconds to create Backup', 'title': 'Backup interval', 'type': 'integer'}}
class Maintenance(*args, **kwargs)[source]

Bases: isomer.component.ConfigurableComponent

Regularly checks a few basic system maintenance tests like used storage space of collections and other data

__init__(*args, **kwargs)[source]

Check for configuration issues and instantiate a component

configprops = {'interval': {'default': 43200, 'description': 'Interval in seconds to check maintenance conditions', 'title': 'Check interval', 'type': 'integer'}, 'locations': {'default': {}, 'properties': {'cache': {'default': {}, 'properties': {'minimum': {'default': 524288000, 'description': 'Minimum free cache space to alert on', 'title': 'Minimum cache space', 'type': 'integer'}}, 'type': 'object'}, 'lib': {'default': {}, 'properties': {'minimum': {'default': 52428800, 'description': 'Minimum free library space to alert on', 'title': 'Minimum library space', 'type': 'integer'}}, 'type': 'object'}, 'local': {'default': {}, 'properties': {'minimum': {'default': 52428800, 'description': 'Minimum free local file storage space to alert on', 'title': 'Minimum local storage space', 'type': 'integer'}}, 'type': 'object'}}, 'type': 'object'}}
maintenance_check(*args)[source]

Perform a regular maintenance check