-
Notifications
You must be signed in to change notification settings - Fork 3.7k
file_space_handler extremely verbose message. #9649
Comments
@deckb Thank you for reporting this!
(also, I'm working to reproduce this problem and try different options). |
I'm not sure I want to change how often the check is performed just how often the warning message is posted. Something like
The message would be every minute. Is that too confusing? |
Yes, thank you for reminding that checking and warning need separate interval settings. I think Also, your alternative suggestion is to set the interval by every n bytes/KiB/MiB. Does it mean the warning is output every time the available space is |
That would work as well. The way I described was a bit clunky and even as I wrote it I didn't love my answer.
Yes that is exactly right.
If easy to do both I would say both. If one or the other I would choose the time interval. |
@deckb After discussion with other developers, I think your initial suggestion above is better than setting the warning interval in seconds. The option's name hasn't been finalized, and I'm considering something like Also, multiple options may confuse the users, so I'd prefer to not adding another option |
That makes a ton of sense.
I think it is too long. Imagine typing that on the command-line :). I think as long as the comment/description is clear the name could be left as Something like: |
Thank you. Also, what do you think is an appropriate upper limit for |
What is the thought process behind having an upper limit? |
@deckb My initial thought is to prevent a user input a huge number (by accident or not), which makes the warning interval too long to be useful (e.g. if the monitor interval is 2 sec, and the warning interval is set to be 100000, then it's more than two days). Do you think such hard-coded upper limit is necessary for user? Thanks. |
Yes that makes a ton of sense. I do think that 200 seconds is too short. How does either a 15 minutes sound? |
Yes, I think 15 minute is good. When using the default 2-sec monitor interval, 15 minutes means the upper limit is 450. I will use this number. |
Resolved in #9826 |
When the threshold is hit there starts to be message every 2 seconds alerting that there will be an issue at some point. It would be nice to have a configuration option that limits the output of this message to a certain cadence or if the message would output every n bytes/KiB/MiB
eos/plugins/resource_monitor_plugin/include/eosio/resource_monitor_plugin/file_space_handler.hpp
Line 113 in 9244231
The text was updated successfully, but these errors were encountered: