To handle peer churn require Each peer to know the IP address of its K successors. Large K provides reliability to K-1 peers leaving at the same time.
Each peer knows the key-values pairs of its K predecessors
Each peer periodically pings its K successors and predecessors to see if they are still alive.