Skip to content

fix(redis): Do not PING on every connection access [INC-192]#1394

Merged
jan-auer merged 3 commits intomasterfrom
release/fix-redis-ping
Aug 9, 2022
Merged

fix(redis): Do not PING on every connection access [INC-192]#1394
jan-auer merged 3 commits intomasterfrom
release/fix-redis-ping

Conversation

@jan-auer
Copy link
Copy Markdown
Member

@jan-auer jan-auer commented Aug 8, 2022

The vast majority of Redis commands issued by Relay is PING. This
command is used internally to verify that the connection is still alive.
The pooled connection implementation runs this check every time a
connection is grabbed from the pool.

This behavior can be disabled via test_on_check_out.

See INC-192

@jan-auer jan-auer changed the title fix(redis): Do not PING on every connection access fix(redis): Do not PING on every connection access [INC-192] Aug 8, 2022
@jan-auer
Copy link
Copy Markdown
Member Author

jan-auer commented Aug 8, 2022

Still needs verification that Relay can handle a move of the Redis primary.

* master:
  fix(store): Serialize default transaction source (#1387)
  feat(schema): Add missing fields to DeviceContext (#1383)
  ref(server): Split EnvelopeManager file into smaller parts (#1388)
  ref(metrics): Remove `light_normalize` in favor of `light_normalize_event` (#1385)
@jan-auer jan-auer marked this pull request as ready for review August 8, 2022 20:57
@jan-auer jan-auer requested review from a team and beezz August 8, 2022 20:57
@jan-auer jan-auer self-assigned this Aug 8, 2022
Copy link
Copy Markdown
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know what happens when we check out an unhealthy connection after this change?

@jan-auer
Copy link
Copy Markdown
Member Author

jan-auer commented Aug 9, 2022

@beezz is going to test this with me today, and I'm going to do more research. r2d2 has additional connection checks, though we haven't validated the behavior for that case.

@jan-auer jan-auer merged commit 32b43a7 into master Aug 9, 2022
@jan-auer jan-auer deleted the release/fix-redis-ping branch August 9, 2022 06:46
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.

2 participants