Feature #7462
CentOS: Add dependency on simplejson
0%
Description
Multiple customers running the calamari host on CentOS are complaining about "Dashboard update timeout" messages with Calamari.
It turns out that CentOS does not have simplejson installed which causes django to fallback on json.
Installing simplejson is a big, big win.
Profiling http://calamari/api/v1/cluster/1/health:
With json:
Ordered by: internal time, call count
ncalls tottime percall cumtime percall filename:lineno(function)
405576/12 1.423 0.000 4.272 0.356 /usr/lib64/python2.6/json/scanner.py:38(iterscan)
19563/19396 1.121 0.000 3.995 0.000 /usr/lib64/python2.6/json/decoder.py:162(JSONObject)
57894/6 1.081 0.000 4.270 0.712 /usr/lib64/python2.6/json/decoder.py:206(JSONArray)
With simplejson:
Ordered by: internal time, call count
ncalls tottime percall cumtime percall filename:lineno(function)
6 0.231 0.038 0.231 0.039 /usr/lib64/python2.6/site-packages/simplejson/decoder.py:376(raw_decode)
1 0.013 0.013 0.013 0.013 /opt/calamari/venv/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py:359(execute)
104/9 0.000 0.000 0.001 0.000 /usr/lib64/python2.6/copy.py:144(deepcopy)
History
#1 Updated by Alexandre Marangone over 5 years ago
- Status changed from New to Closed