add timeout for each rpc call and configure heartbeat timeout with hearbeat_timeout=N