Skip to content

prometheus: use older node_exporter#84039

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
tbg:node-exporter-downgrade
Jul 7, 2022
Merged

prometheus: use older node_exporter#84039
craig[bot] merged 1 commit intocockroachdb:masterfrom
tbg:node-exporter-downgrade

Conversation

@tbg
Copy link
Copy Markdown
Member

@tbg tbg commented Jul 7, 2022

v1.3.1, the most up to date released version, has a bug that inflates
the bytes written by ~8x for NVMe drives (which in particular includes
the default drives for our GCE roachprod machines). Fundamentally this
is caused by the fact that these devices use a 4K sector size whereas
the kernel will always report based on a 512B sector size.

This took us a while to figure out, and to avoid repeating this exercise
periodically, downgrade node_exporter to 1.2.2, which pre-dates a
refactor that introduces the regression.

See: prometheus/node_exporter#2310

Release note: None

v1.3.1, the most up to date released version, has a bug that inflates
the bytes written by ~8x for NVMe drives (which in particular includes
the default drives for our GCE roachprod machines). Fundamentally this
is caused by the fact that these devices use a 4K sector size whereas
the kernel will always report based on a 512B sector size.

This took us a while to figure out, and to avoid repeating this exercise
periodically, downgrade node_exporter to 1.2.2, which pre-dates a
refactor that introduces the regression.

See: prometheus/node_exporter#2310

Release note: None
@tbg tbg requested a review from a team as a code owner July 7, 2022 21:14
@tbg tbg requested review from a team, renatolabs and srosenberg and removed request for a team and srosenberg July 7, 2022 21:14
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@tbg tbg requested review from nicktrav and removed request for renatolabs July 7, 2022 21:14
Copy link
Copy Markdown
Collaborator

@nicktrav nicktrav left a comment

Choose a reason for hiding this comment

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

Thank you! :lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @tbg)

@tbg
Copy link
Copy Markdown
Member Author

tbg commented Jul 7, 2022

bors r=nicktrav

@srosenberg
Copy link
Copy Markdown
Member

v1.3.1, the most up to date released version, has a bug that inflates the bytes written by ~8x for NVMe drives (which in particular includes the default drives for our GCE roachprod machines). Fundamentally this is caused by the fact that these devices use a 4K sector size whereas the kernel will always report based on a 512B sector size.

This took us a while to figure out, and to avoid repeating this exercise periodically, downgrade node_exporter to 1.2.2, which pre-dates a refactor that introduces the regression.

Yep, I remember pulling some hairs out when I ran into the same issue with fio [1]. I'll also update the packer base image to 1.2.2 so that (soon) teamcity agents will be running it too.

[1] axboe/fio#1325 (comment)

@srosenberg srosenberg self-requested a review July 7, 2022 21:25
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 7, 2022

Build succeeded:

@craig craig bot merged commit 2dd8e76 into cockroachdb:master Jul 7, 2022
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.

4 participants