1. init the replicator 2. retry when fail to register worker and appmaster 3. refine the log