Cloud auto scaling state machine inspired by bacterial cells