Comments (4)
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.
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.
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.
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)
- IndexError: list index out of range HOT 3
- can't run it with python < 3.9 HOT 1
- Add ability to handle invoking the Ceph client via Cephadm? HOT 1
- no trace found for 2147483647 in default~hdd HOT 6
- Please consider type datacenter as a root bucket HOT 1
- JSON TypeError on show command when json output is used. HOT 4
- ./placementoptimizer.py showremapped balks at cluster topology changes HOT 3
- Feature request: take bluestore_min_alloc_size into account HOT 3
- KeyError: 66 (in used += self.cluster.osd_transfer_remainings[osdid]) HOT 5
- ZeroDivisionError: division by zero (osd_objs_acting) HOT 3
- RuntimeError: pg 18.6a to be moved to osd.117 is misplaced with -198781.0<0 objects already transferred
- ./placementoptimizer.py showremapped --by-osd throws KeyError if there is recovery
- key error - on healthy cluster
- it's breaking CRUSH rule HOT 3
- Sorting in heterogeneous clusters
- OSD utilization is very different from ceph osd df HOT 2
- crush root X not known HOT 8
- Failing when using --source-osds
- The "balance" subcommand does not balance if there was a recent "upmap-remapped.py" run
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 ceph-balancer.