wrote cluster nodes method. not complete, and has still bugs in heart-beating.