-
Notifications
You must be signed in to change notification settings - Fork 23
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
All the fixes #339
All the fixes #339
Conversation
4f32165
to
922bf2a
Compare
922bf2a
to
45b191e
Compare
@@ -215,6 +215,14 @@ impl AsyncRedisStorage { | |||
.clone() | |||
.incr::<&str, i32, u64>("LIMITADOR_LIVE_CHECK", 1) | |||
.await | |||
.map_err(|err| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is_alive(&self)
isn't used anymore afaict... but there is the .then
wrt liveness_latency... So... what shall we do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't found a #[allow(dead_code)]
that might affect this (not complaining), also, method is_alive
is not found in any other part of the project than here (method definition)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adam-cattermole what you recon we do? 🔥 the metric? Call it from a dedicated Future
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reckon we just burn the metric/method. We can add this back if needed but for now we could just use the datastore_latency
from the batcher calls to redis (I know even this metric isn't perfect due to size of batch etc). If we decide we want this down the line it shouldn't be too hard to add it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good to me, with the exception of cargo not complaining for the unused method is_alive
. Maybe @adam-cattermole would have a saying on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
If you test this in
INFO
level log as such:And then start the driver, you'd get a first log for the priority flush:
Then further for the per second flushes:
Then shut redis down:
No more logs for the duration of the partition, restart redis, and...