Manual:$wgMasterWaitTimeout

Details
How long to wait for a slave to catch up to the master.