Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Only submit keep alive requests during periods of inactivity #36

Open
kuujo opened this issue Oct 26, 2015 · 0 comments
Open

Only submit keep alive requests during periods of inactivity #36

kuujo opened this issue Oct 26, 2015 · 0 comments

Comments

@kuujo
Copy link
Member

kuujo commented Oct 26, 2015

Currently, clients submit keep alive requests at an interval that is a fixed fraction of the session timeout. This places an unnecessary burden on the cluster, particularly if many clients are connected and frequently submitting commands. Command entries have all the necessary information (namely session ID and timestamp) to double as keep alive entries. Clients should only submit keep alive requests if they haven't submitted a command for some fraction of the session timeout.

Chubby takes an interesting approach to reducing the frequency of keep alive requests. Rather than committing and immediately responding to session keep alives, Chubby waits until near the end of the required interval to respond to the client, and the client immediately sends another keep alive request. So, I suppose these are two different approaches that could be taken.

@kuujo kuujo changed the title only submit keep alive requests during periods of inactivity Only submit keep alive requests during periods of inactivity Oct 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant