introduce leaseweight scheduler, make failover persistent