Skip to content

Lock shard session heartbeat#6683

Merged
harshit-gangal merged 10 commits intovitessio:masterfrom
planetscale:lock-heartbeat
Sep 15, 2020
Merged

Lock shard session heartbeat#6683
harshit-gangal merged 10 commits intovitessio:masterfrom
planetscale:lock-heartbeat

Conversation

@harshit-gangal
Copy link
Copy Markdown
Member

@harshit-gangal harshit-gangal commented Sep 9, 2020

This is to keep the connection alive on tablet to keep holding the lock that the current session hold.
Heartbeat will get triggered only if the session is active i.e. it receives a query for execution and also based on when the last time heartbeat was sent to tablet (currently it is 5 sec).
This is put under a flag lock_heartbeat_time

@harshit-gangal harshit-gangal marked this pull request as ready for review September 14, 2020 13:10
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…n held and trigger time returns true

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
@harshit-gangal harshit-gangal merged commit be2cde1 into vitessio:master Sep 15, 2020
@askdba askdba added this to the v8.0 milestone Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants