set max processes for slaves and add timeout when handing synchronize requests.