Support multiple masters with different nodes