Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memcached: allow to configure write and read buffer size #414

Merged
merged 5 commits into from
Oct 24, 2023

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Oct 23, 2023

What this PR does:
I noticed the memcached client library uses a default 4KB buffer for the read and write. However, in Mimir we transfer way bigger items and I would like to test whether increasing the buffer size will result into better performance. For this reason, I've made it configurable in grafana/gomemcache#15 and I'm proposing to make the configuration option available through YAML / CLI flags (experimental config option).

Which issue(s) this PR fixes:

N/A

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci marked this pull request as ready for review October 23, 2023 15:24
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

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

LGTM, excited to see how this works.

@pracucci pracucci merged commit 7f44a65 into main Oct 24, 2023
3 checks passed
@pracucci pracucci deleted the allow-to-customise-memcached-read-write-buffer branch October 24, 2023 07:31
ying-jeanne pushed a commit that referenced this pull request Nov 2, 2023
* Memcached: allow to configure write and read buffer size

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Fixed TestBackendConfig_Validate

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Revendored gomemcache

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Trigger CI

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Trigger CI

Signed-off-by: Marco Pracucci <marco@pracucci.com>

---------

Signed-off-by: Marco Pracucci <marco@pracucci.com>
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.

None yet

2 participants