Closed julman99 closed 10 years ago
Recently added column for locks caused the KeyError. I tried to fix this and other errors caused by missing data from server. I have not upload it to PyPi yet. Can you test in on the master?
Hi!
This is what I get from the master branch
Traceback (most recent call last):
File "./motop", line 4, in <module>
motop.run()
File "/tmp/motop/libmotop/motop.py", line 95, in run
queryScreen.action()
File "/tmp/motop/libmotop/queryscreen.py", line 306, in action
block.reset()
File "/tmp/motop/libmotop/queryscreen.py", line 59, in reset
cells.append([v * 10**6 for v in status.deepget('mem', ('resident', 'mapped'))])
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
I fixed it. Can you test it again?
I released version 4.0 anyway. Thank you for the bug report. I want to support sharded environments and replica sets in the future.
Sorry for not anwering, I totally forgot! I will test this toughly during the holidays and maybe do a pull request supporting sharded environments.
Thanks!
It would be super cool if motop could be configured to connect to a mongos instance. This way it would be super easy to monitor queries accross a cluster.
Right now it crashes with the following message: