- 
                Notifications
    You must be signed in to change notification settings 
- Fork 495
disk-buffer: add metrics for abandoned disk-buffer files #4402
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
disk-buffer: add metrics for abandoned disk-buffer files #4402
Conversation
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
1a0a967    to
    55de645      
    Compare
  
    Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
55de645    to
    fb0ce04      
    Compare
  
    Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
fb0ce04    to
    55109b7      
    Compare
  
    | Build FAILURE | 
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
55109b7    to
    a78f92f      
    Compare
  
    Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
a78f92f    to
    04c222a      
    Compare
  
    | Build FAILURE | 
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
04c222a    to
    b53df5e      
    Compare
  
    Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
b53df5e    to
    26b05a5      
    Compare
  
    Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
26b05a5    to
    58b374e      
    Compare
  
    | @kira-syslogng do stresstest | 
| Kira-stress-test: Build SUCCESS | 
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.
Nice feature.
For the record: diskq-global-metrics considers buffers abandoned when they are not used in the currently running syslog-ng instance. This is a bit different than what we do in our persist file: we abandon buffers only when 2 consecutive syslog-ng restart does not acquire them.
I think this is not a real problem, I just wanted to mention it.
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
58b374e    to
    bc07f9f      
    Compare
  
    | Rebased to master and fixed all the comments I think. I have not tested it manually yet, but I will do that tomorrow. | 
| @kira-syslogng do stresstest | 
| Kira-stress-test: Build SUCCESS | 
| Tested manually, the behavior looks good to me. | 
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
678366c    to
    8c5a58d      
    Compare
  
    | @kira-syslogng do stresstest | 
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
For force removing clusters. Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
8c5a58d    to
    f5be6f8      
    Compare
  
    Asserting seems a but too strict. As the function can return error, it is enought to use that. Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
f5be6f8    to
    1235215      
    Compare
  
    | I have loosened an assert in  | 
| Kira-stress-test: Build SUCCESS | 
| @kira-syslogng do stresstest | 
| Kira-stress-test: Build SUCCESS | 
| I'm investigating a SIGABRT in disk-buffer when config initialization is not successful (I'm not sure this is related to this PR). Update: unrelated. | 
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.
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
| @alltilla Build on SLES 12 verified. Thanks! | 
Availability is the same as the
disk_queue_dir_available_bytesmetric.Example metrics:
Depends on #4399 and #4356.
Signed-off-by: Attila Szakacs attila.szakacs@axoflow.com
Fixes #4400