Coder Social home page Coder Social logo

Comments (4)

marcelmay avatar marcelmay commented on September 22, 2024

@zefir6 , you could try to reduce the buckets fsimage_user_fsize_bucket buckets for a start , or completely disable file size distribution for users.

Reduce the number of buckets:

# Configure file size distribution buckets, supporting IEC units of KiB, MiB, GiB, TiB, PiB
fileSizeDistributionBuckets: ['0','1MiB', '32MiB', '128MiB', '1GiB']

Disable any file size distribution on user level:

skipFileDistributionForUserStats : true

The file size distribution on user level is quite useful for catching culprits that create too many small files on HDFS though...

from hadoop-hdfs-fsimage-exporter.

zefir6 avatar zefir6 commented on September 22, 2024

Hey, thanks for reply :)
Regardless of how I set that option, I still get hundreds of lines like this:

fsimage_group_blocks{group_name="group.name",} 0.0
fsimage_user_blocks{user_name="user.name",} 0.0

(and the same for many other attributes)

According to my count, with every skip enabled, every user (even if he has one file), generates 15 lines in the exporter. I was just considering editing the code and trying to cut out the bit that generates user & group labels (as thats about peak of my java skills :) )

from hadoop-hdfs-fsimage-exporter.

marcelmay avatar marcelmay commented on September 22, 2024

Can you provide me the output of number of metrics?

sort_desc(count({__name__=~"fsimage_.*"}) by (__name__))

Usually the mentioned before histogram metrics for file size distribution have a real impact (number of users X number of buckets ...).

from hadoop-hdfs-fsimage-exporter.

marcelmay avatar marcelmay commented on September 22, 2024

... and the config if possible

from hadoop-hdfs-fsimage-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.