Memory limit thresholds

You are able to set memory limit thresholds for the jobs of the different components in the a9s Data Service Framework. You can configure two thresholds per job:

  • alert_if_above_mb: The job will alert if memory is above this threshold
  • restart_if_above_mb: The job will restart if memory is above this threshold

Per default the property alert_if_above_mb is set to 2250 and restart_if_above_mb to 2450.

Configuration properties

There are the following properties defined for the different components:

ComponentProperty
a9s Backup Agentbackup-agent.thresholds.alert_if_above_mb
backup-agent.thresholds.restart_if_above_mb
a9s Backup Monitbackup-monit.thresholds.alert_if_above_mb
backup-monit.thresholds.restart_if_above_mb
a9s Backup Manageranynines-backup-manager.thresholds.alert_if_above_mb
anynines-backup-manager.thresholds.restart_if_above_mb
a9s Service Guardcf_service_guard.thresholds.alert_if_above_mb
cf_service_guard.thresholds.restart_if_above_mb
a9s Service Brokeranynines_service_broker.thresholds.alert_if_above_mb
anynines_service_broker.thresholds.restart_if_above_mb
a9s Deployeranynines_bosh_deployer.thresholds.alert_if_above_mb
anynines_bosh_deployer.thresholds.restart_if_above_mb
Elasticsearch SPIelasticsearch-spi.thresholds.alert_if_above_mb
elasticsearch-spi.thresholds.restart_if_above_mb
PostgreSQL SPIpostgresql-spi.thresholds.alert_if_above_mb
postgresql-spi.thresholds.restart_if_above_mb
RabbitMQ SPIrabbitmq-spi.thresholds.alert_if_above_mb
rabbitmq-spi.thresholds.restart_if_above_mb
Redis SPIredis-spi.thresholds.alert_if_above_mb
redis-spi.thresholds.restart_if_above_mb
MySQL SPImysql-spi.thresholds.alert_if_above_mb
mysql-spi.thresholds.restart_if_above_mb
MongoDB SPImongodb-spi.thresholds.alert_if_above_mb
mongodb-spi.thresholds.restart_if_above_mb
LogMe SPIlogme-spi.thresholds.alert_if_above_mb
logme-spi.thresholds.restart_if_above_mb

Configuration

To change the thresholds you can use an Ops file that sets these properties. The following example Ops file changes the default values for the backup-service and can be used as a base for your use case:

- type: replace
  path: /properties/backup-monit/thresholds?
  value:
    alert_if_above_mb:  3500
    restart_if_above_mb: 4096

- type: replace
  path: /properties/anynines-backup-manager/thresholds?
  value:
    alert_if_above_mb:  1024
    restart_if_above_mb: 2048