zulip/scripts/nagios
Alex Vandiver 2a12fedcf1 tornado: Remove explicit tornado_processes setting; compute it.
We can compute the intended number of processes from the sharding
configuration.  In doing so, also validate that all of the ports are
contiguous.

This removes a discrepancy between `scripts/lib/sharding.py` and other
parts of the codebase about if merely having a `[tornado_sharding]`
section is sufficient to enable sharding.  Having behaviour which
changes merely based on if an empty section exists is surprising.

This does require that a (presumably empty) `9800` configuration line
exist, but making that default explicit is useful.

After this commit, configuring sharding can be done by adding to
`zulip.conf`:

```
[tornado_sharding]
9800 =              # default
9801 = other_realm
```

Followed by running `./scripts/refresh-sharding-and-restart`.
2020-09-18 15:13:40 -07:00
..
check-rabbitmq-consumers tornado: Remove explicit tornado_processes setting; compute it. 2020-09-18 15:13:40 -07:00
check-rabbitmq-queue check-rabbitmq-queue: Add a simple algorithm to analyze queue stats. 2020-04-09 13:41:01 -07:00
cron_file_helper.py nagios: Don’t crash on missing cron file. 2020-06-13 16:49:32 -07:00