# Alerts and emails

## Alerts

| Alert          | Starts out alerting when                                                            |
| -------------- | ----------------------------------------------------------------------------------- |
| Disk space     | Over 80% used, as soon as a reading shows it, and again at 95%, where deploys stop  |
| Memory         | Over 95% used for 4 minutes                                                         |
| Processor      | Over 90% busy for 10 minutes                                                        |
| Load           | Over 1.5 per core for 15 minutes                                                    |
| Apps answering | An app's domain doesn't answer, or answers with a server error, two checks in a row |
| Cron jobs      | A job exits with an error, or doesn't start within 2 minutes of when it's due       |

Coresmith reads each server every minute, and checks each app every 5 minutes. Load is the server's 5-minute load average divided by its processor threads. Above 1, work is queuing for the processor.

Each alert emails once when it opens and once when it closes. [Get alerts when something goes wrong](/docs/servers/alerts) covers changing them.

## Emails

| Email           | Sent when                                                                                                                      | Starts on |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------- |
| Deploy failed   | Any step of a deploy fails.                                                                                                    | Always on |
| Disk warnings   | A server's disk passes its limit, again at 95%, and when it's back to normal.                                                  | Yes       |
| Server problems | A server stops answering or passes a limit, an app stops answering or runs out of memory, or a certificate is about to expire. | Yes       |
| Provisioning    | A server is ready, its setup stops partway, or its provider can't create, resize or destroy it.                                | Yes       |
| Toggle changes  | Someone stops, starts or puts an app into maintenance.                                                                         | Yes       |
| Weekly digest   | The week's deploys, rollbacks and warnings, every Monday.                                                                      | No        |

Each person picks theirs under **Settings**, **Notifications**, and gets them only about servers and apps they can see. Deploy failed can't be turned off.

Owners also get billing emails on Coresmith Cloud: a trial about to end, a plan starting or ending, and a payment that failed.
