-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Apply hashing to remote storage cache key #1030
Apply hashing to remote storage cache key #1030
Conversation
Prevents hitting the memcache 250-char key limit when rendering in cluster setups & using very long metric paths.
FTR this is the traceback one will hit in the wild when this bug is present:
And the "real" traceback when one temporarily nukes the
|
I'm also experiencing a different bug that should be fixed by hashing cache keys. Grafana dashboard sometimes sends render requests with invalid metric name (appends
|
@bitprophet could you resolve merge conflicts, please? |
…e-hashing Conflicts: webapp/graphite/remote_storage.py
Hrm I apparently pushed this without actually updating my source branch (I develop patches against my workplace's internal, stable-thus-old checkout - but usually remember to then rebase against public master before PR'ing), git log was showing me the previous commit was from early 2013. Hilarious? Just merged to latest master, the diff looks identical to me still (though yes - git did think there was some sort of "both updated" situation) so we'll see what Travis says. |
+1 Hit this issue too. Any chance that this will be merged soon? |
Given I barely contribute, I'd like to merge this but would ❤️ a simple 👍 from any other @graphite-project/committers first to make sure I'm not committing a faux pas. An emoji will do! A day or two of silence may be taken as consent :) |
@bitprophet The rationale sounds sensible to me, and the code looks fine − but I’m not familiar enough with the codebase in general for even an emoji on this :-) |
I prefer the bit savings in #1480 but the logic seems ok either way. |
Yep, or this or #1480 - both looks fine. Pick one, ditch another, merge. 👍 |
Merged #1480. |
Prevents hitting the memcache 250-char key limit when rendering very long metric paths in cluster setups.
This looks like it regressed in f18bb3c and since that looks like a squashed merge I can't tell why it was changed during the megacarbon work; presumably it was to update the data used to construct the key. Either way, this change doesn't modify the nature of the key, only ensures it is hashed like all other memcached-using code (eg in
render/views.py
).