SCALEDOWN_THRESHOLD and SCALEUP_THRESHOLD must be in config file