add redis g_lock to disallow two servers at the same time