You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2015/04/08 00:03:13 UTC
[jira] [Commented] (MESOS-2353) Improve performance of the master's
state.json endpoint for large clusters.
[ https://issues.apache.org/jira/browse/MESOS-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14484179#comment-14484179 ]
Benjamin Mahler commented on MESOS-2353:
----------------------------------------
[~alex-mesos]: yes. The improvement on large clusters is less significant, only ~ 15%:
{noformat: title=before}
$ /usr/bin/time curl -s master:5050/state.json > /dev/null
23.00 real 0.02 user 0.08 sys
$ /usr/bin/time curl -s master:5050/state.json > /dev/null
22.56 real 0.02 user 0.09 sys
$ /usr/bin/time curl -s master:5050/state.json > /dev/null
21.96 real 0.02 user 0.09 sys
{noformat}
{noformat:title=after}
$ /usr/bin/time curl -s master:5050/state.json > /dev/null
18.65 real 0.02 user 0.10 sys
$ /usr/bin/time curl -s master:5050/state.json > /dev/null
18.85 real 0.02 user 0.09 sys
$ /usr/bin/time curl -s master:5050/state.json > /dev/null
18.36 real 0.02 user 0.08 sys
{noformat}
> Improve performance of the master's state.json endpoint for large clusters.
> ---------------------------------------------------------------------------
>
> Key: MESOS-2353
> URL: https://issues.apache.org/jira/browse/MESOS-2353
> Project: Mesos
> Issue Type: Improvement
> Components: master
> Reporter: Benjamin Mahler
> Assignee: Benjamin Mahler
> Labels: newbie, scalability, twitter
>
> The master's state.json endpoint consistently takes a long time to compute the JSON result, for large clusters:
> {noformat}
> $ time curl -s -o /dev/null localhost:5050/master/state.json
> Mon Jan 26 22:38:50 UTC 2015
> real 0m13.174s
> user 0m0.003s
> sys 0m0.022s
> {noformat}
> This can cause the master to get backlogged if there are many state.json requests in flight.
> Looking at {{perf}} data, it seems most of the time is spent doing memory allocation / de-allocation. This ticket will try to capture any low hanging fruit to speed this up. Possibly we can leverage moves if they are not already being used by the compiler.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)