Giter Site home page Giter Site logo

Comments (4)

TheJJ avatar TheJJ commented on August 26, 2024

Can you please send me the output of ceph osd dump --format json? It seems it's not json :) You can send a mail to jj at sft.lol

from ceph-balancer.

TheJJ avatar TheJJ commented on August 26, 2024

It appears to be caused by inf used as invalid json values...

"read_balance":
{"score_acting":inf,
"score_stable":inf,
"optimal_score":0,
"raw_score_acting":3,
"raw_score_stable":3,
"primary_affinity_weighted":0.99999600648880005,
"average_primary_affinity":1,
"average_primary_affinity_weighted":1}

Hmm, it should probably be fixed in upstream-ceph, but we can hopefully hack around this bug somehow.
Python's json parser doesn't allow inf, it just accepts Infinity, so my first attempt in dc654ec is to just convert the value...

Can you please test and send me placementoptimizer.py gather yourfile.xz also via mail? then i can see if reef produces more funny output which I haven't tested so far (don't have a reef cluster yet :))

from ceph-balancer.

golpa avatar golpa commented on August 26, 2024

Have a look at this bug report we encountered the same problem. Do you have a lot of OSDs and is the pool causing the inf only stored on very few of them? If so, the workaround that worked for us is to increase the number of OSDs the pool is stored on. We did this by increasing the PG count until num OSDs / total OSDs was greater than .005

from ceph-balancer.

TheJJ avatar TheJJ commented on August 26, 2024

dc654ec seems to be good enough, but it would of course be better if ceph emitted compliant json... but I think its ok for now. Thanks for the state dump again!

from ceph-balancer.

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.