Skip to content

Conversation

@alltilla
Copy link
Collaborator

@alltilla alltilla commented Mar 28, 2023

Availability is the same as the disk_queue_dir_available_bytes metric.

Example metrics:

syslogng_disk_queue_capacity_bytes{abandoned="true",path="/var/syslog-ng/syslog-ng-00000.rqf",reliable="true"} 104853504
syslogng_disk_queue_disk_allocated_bytes{abandoned="true",path="/var/syslog-ng/syslog-ng-00000.rqf",reliable="true"} 273408
syslogng_disk_queue_disk_usage_bytes{abandoned="true",path="/var/syslog-ng/syslog-ng-00000.rqf",reliable="true"} 269312
syslogng_disk_queue_events{abandoned="true",path="/var/syslog-ng/syslog-ng-00000.rqf",reliable="true"} 860

Depends on #4399 and #4356.

Signed-off-by: Attila Szakacs attila.szakacs@axoflow.com

Fixes #4400

alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 28, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 1a0a967 to 55de645 Compare March 28, 2023 14:00
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 28, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 55de645 to fb0ce04 Compare March 28, 2023 14:16
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 28, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from fb0ce04 to 55109b7 Compare March 28, 2023 14:34
@kira-syslogng
Copy link
Contributor

Build FAILURE

alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 28, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 55109b7 to a78f92f Compare March 28, 2023 15:33
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 30, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from a78f92f to 04c222a Compare March 30, 2023 11:22
@kira-syslogng
Copy link
Contributor

Build FAILURE

alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 30, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 04c222a to b53df5e Compare March 30, 2023 11:51
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 30, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from b53df5e to 26b05a5 Compare March 30, 2023 16:51
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Mar 30, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 26b05a5 to 58b374e Compare March 30, 2023 20:14
@alltilla
Copy link
Collaborator Author

@kira-syslogng do stresstest

@kira-syslogng
Copy link
Contributor

Kira-stress-test: Build SUCCESS

@MrAnno MrAnno self-requested a review April 2, 2023 22:24
Copy link
Collaborator

@MrAnno MrAnno left a 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.

alltilla added a commit to alltilla/syslog-ng that referenced this pull request Apr 4, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 58b374e to bc07f9f Compare April 4, 2023 19:08
@alltilla
Copy link
Collaborator Author

alltilla commented Apr 4, 2023

Rebased to master and fixed all the comments I think. I have not tested it manually yet, but I will do that tomorrow.

@MrAnno
Copy link
Collaborator

MrAnno commented Apr 4, 2023

@kira-syslogng do stresstest

@kira-syslogng
Copy link
Contributor

Kira-stress-test: Build SUCCESS

@alltilla
Copy link
Collaborator Author

alltilla commented Apr 5, 2023

Tested manually, the behavior looks good to me.

alltilla added 4 commits April 6, 2023 15:05
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>
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Apr 6, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 678366c to 8c5a58d Compare April 6, 2023 13:05
@alltilla
Copy link
Collaborator Author

alltilla commented Apr 6, 2023

@kira-syslogng do stresstest

alltilla added 7 commits April 6, 2023 15:22
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>
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Apr 6, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from 8c5a58d to f5be6f8 Compare April 6, 2023 13:22
alltilla added 2 commits April 6, 2023 15:29
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>
@alltilla alltilla force-pushed the disk-buffer-abandoned-metrics branch from f5be6f8 to 1235215 Compare April 6, 2023 13:29
@alltilla
Copy link
Collaborator Author

alltilla commented Apr 6, 2023

I have loosened an assert in QDisk, as I am a bit paranoid that if the file gets emptied by something external in a bad split second, we could fail that assert.

@kira-syslogng
Copy link
Contributor

Kira-stress-test: Build SUCCESS

@alltilla
Copy link
Collaborator Author

alltilla commented Apr 6, 2023

@kira-syslogng do stresstest

@kira-syslogng
Copy link
Contributor

Kira-stress-test: Build SUCCESS

@MrAnno MrAnno self-requested a review April 6, 2023 15:29
@MrAnno
Copy link
Collaborator

MrAnno commented Apr 11, 2023

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.

Copy link
Collaborator

@MrAnno MrAnno left a comment

Choose a reason for hiding this comment

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

LGTM.

@MrAnno MrAnno merged commit cc1a3a2 into syslog-ng:master Apr 11, 2023
alltilla added a commit to alltilla/syslog-ng that referenced this pull request Apr 11, 2023
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@czanik
Copy link
Collaborator

czanik commented Apr 11, 2023

@alltilla Build on SLES 12 verified. Thanks!

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.

another SLES 12 post build check fail

4 participants