Comments (6)
In my case, the dashboard was showing the outdated value for hours (and a warning was active too) .
Also, running the bloat calculation query manually did not return the calculated bloat value for that specific index at all (the row was absent). In summary:
- netdata dashboard (both local node and netdata cloud) was showing an outdated value, 72%
- a different bloat calculation query was showing 21%
- netdata's bloat calculation query was omitting that specific index from bloat calculation results
from netdata.
PS PostgreSQL version:
select version();
version
-------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 13.14 (Ubuntu 13.14-1.pgdg22.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit
from netdata.
@cuu508, hey 👋 While go.d.plugin gathers data every update_every
, it collects and calculates bloat statistics less frequently, only every 5 minutes. In between calculations, go.d.plugin relies on the most recently calculated bloat statistics (cached data). This is because the bloat query can be resource-intensive. This 5-minute interval is not configurable at the moment.
from netdata.
@cuu508 I understood that, thanks! I think I fixed it in #17598
a different bloat calculation query was showing 21%
Netdata uses bloat query from bucardo/check_postgres. I am not a Postgres expert, so I can't say which query is better/more correct.
from netdata.
Ah, sorry, I missed the referenced commit!
I compared bucardo's and netdata's bloat calculation queries. They are identical except the netdata version has at the very end:
WHERE sml.relpages - otta > 10 OR ipages - iotta > 10
I think this is the bit responsible for netdata missing bloat data for some of my indexes. I have one particular index for which bucardo's query calculates ibloat as 0.5:
-[ RECORD 91 ]---+-----------------------------------------------------
db | ***
schemaname | public
tablename | api_ping
tups | 108233496
pages | 1469731
otta | 1637553
tbloat | 0.9
wastedpages | 0
wastedbytes | 0
wastedsize | 0 bytes
iname | api_ping_pkey
itups | 107589248
ipages | 522850
iotta | 1000750
ibloat | 0.5
wastedipages | 0
wastedibytes | 0
wastedisize | 0 bytes
totalwastedbytes | 0
But since ipages is lower than iotta, it is omitted from the netdata version.
The other query calculates the bloat as 43% for this same index. (edit:) but some of the calculated bloat values looked wacky, -247% and such. In the bucardo query at least all ibloat values were zero or positive)
from netdata.
@cuu508 bucardos query has this otta/iotta limit (a bit bigger)
## Don't bother with tables or indexes unless they have at least this many bloated pages
my $MINPAGES = 10;
my $MINIPAGES = 15;
See:
from netdata.
Related Issues (20)
- [Bug]: build-static.sh x86_64 fails HOT 2
- [Bug]: Debian native: nightly: Netdata service not started after installation
- [Platform EOL]: centos-stream 8 will be EOL soon.
- [Bug]: latest netdata version (security patch) is missing in opensuse 15.5 repo HOT 2
- Upload source files to sentry.
- [Bug]: apcupsd module is unable to connect to UPS (docker) HOT 3
- [Bug]: ubuntu 22.04 dependencies missing HOT 4
- [Bug]: Ubuntu 22.04 Unmet dependencies HOT 4
- [Bug]: Chart filtering to prometheus appears to be broken HOT 3
- [Bug]: Netdata 1.45.4 fails to build with h2o, cloud and aclk disabled
- [Bug]: go.d/smartctl bad default graphs HOT 1
- [Bug]: Runing netdata plugin from nested directory uses wrong config dir HOT 1
- [Bug]: Increased number of Read/Write operations per second HOT 5
- [question]: my netdata cloud plan does not allow more than 5 active nodes.?earlier plans cancel and +8505USD/YEAR ! HOT 2
- [Bug]: cron netdata-updater script failed HOT 2
- [Feat]: carts for mariadb circular buffers
- [Bug]: Netdata agent that reports offline and then back online
- [Bug]: netdata plugins segfaults after update 1.45.3 to 1.45.4 HOT 7
- [Feat]: rspamd monitoring with netdata HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netdata.