update queue_demo to have a scale up and down threshold (seperately))