ababaian / serratus

Ultra-deep search for novel viruses
http://serratus.io
GNU General Public License v3.0
253 stars 33 forks source link

Increase the autoscaling desired size gradually, plus metrics improvements #81

Closed brietaylor closed 4 years ago

brietaylor commented 4 years ago

The autoscaling features are controlled via the VIRTUAL_ASG_MAX_INCREASE (default = 10 instances) and VIRTUAL_SCALING_INTERVAL (default = 30s) config options, which control the amount (number of instances) and interval (in seconds) of allowed increases. This puts a limit on the rate at which the ASG's desired_size can be increased.

Also added metrics to the scheduler, to display these quantities.

Also added request timing metrics to the scheduler. These are showcased in the "Serratus Scheduler" Grafana dashboard. With these, we should be able to get a better idea of if / where our scheduler is hanging up, by how much, and where to focus improvements.