You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dex won't read analyst system.profile from secondary (KeyError: 'supported') #26
Traceback (most recent call last):
File "/usr/local/bin/dex", line 233, in <module>
main(sys.argv[1:])
File "/usr/local/bin/dex", line 206, in main
return md.analyze_profile()
File "/usr/local/lib/python2.7/dist-packages/dex/dex.py", line 162, in analyze_profile
profile_parser)
File "/usr/local/lib/python2.7/dist-packages/dex/dex.py", line 101, in _process_query
if parsed['supported']:
KeyError: 'supported'
Log in to a secondary, set slaveOk(), setProfilingLevel(2)
Run loadtests
setProfilingLevel(0)
Run Dex from a remote machine with -p -n
Additional info:
Dex installed today, using pip, from Github repo.
MongoDB 2.4.8 running on all repset nodes.
If I change the hostname to one of the other nodes, I get no error, but also no data as the system.profile collection doesn't exist there.
I tried changing the PRIMARY_PREFERRED to NEAREST in dex.py and analyser.py, but no change in behaviour.
I'm going to export the collection and import it into the master, but any help here would be appreciated - I don't like having to turn on profiling globally.
Activity
meersjo commentedon Apr 30, 2014
We did more tests, now with setProfilingLevel(1) on all nodes; Dex now gives the same error on all the nodes. Analysis using mongodb.log does work.
meersjo commentedon Apr 30, 2014
Dex 0.6 (using simply "pip install dex") does work with system.profile, but only on the primary of course.