You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Michael Park <mp...@apache.org> on 2016/01/05 00:53:07 UTC

Re: Review Request 41595: mesos: Updated `Master::Http::state` to use `jsonify`.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/
-----------------------------------------------------------

(Updated Jan. 4, 2016, 11:53 p.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

Rebase


Repository: mesos


Description
-------

See summary.


Diffs (updated)
-----

  src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
  src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
  src/master/http.cpp deb0c8f9852dc0eec1e8c0ff35c684f982e8b110 

Diff: https://reviews.apache.org/r/41595/diff/


Testing
-------

# Some preliminery numbers

These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).

### Before

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 683.138216ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 550.636939ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 632.835236ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 584.035771ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 688.404348ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 666.713683ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 3.916201532secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 3.362618796secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 3.126815189secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 3.079956539secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 3.222014521secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 3.286657158secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 7.332592151secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 6.998751033secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 6.807456891secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 6.371190971secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 6.613739531secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 7.200492733secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 14.977313945secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 14.657804222secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 13.973765739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 14.205684739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 13.862711917secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 13.318292374secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 23.50264888secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 22.636817049secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 22.425003707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
```

### After

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 139.617795ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 171.210248ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 160.723562ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 168.967341ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 225.533202ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 186.785564ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 694.018365ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 768.719434ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 911.135941ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 898.358181ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 967.070956ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 921.661398ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 1.632949533secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 1.846994838secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 1.754788998secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 1.996761506secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 1.835763056secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 1.871073805secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 3.169145217secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 3.577511707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 3.68911716secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 3.775534974secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 3.849741727secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 3.904906724secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 5.058526864secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 5.442018636secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 5.530495291secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
```


Thanks,

Michael Park


Re: Review Request 41595: mesos: Updated `Master::Http::state` to use `jsonify`.

Posted by Mesos ReviewBot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review112759
-----------------------------------------------------------


Bad patch!

Reviews applied: [41593]

Failed command: ./support/apply-review.sh -n -r 41593

Error:
 2016-01-05 04:00:47 URL:https://reviews.apache.org/r/41593/diff/raw/ [27498/27498] -> "41593.patch" [1]
Total errors found: 0
Checking 2 files
Error: Commit message summary (the first line) must start with a capital letter.

- Mesos ReviewBot


On Jan. 4, 2016, 11:53 p.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 4, 2016, 11:53 p.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp deb0c8f9852dc0eec1e8c0ff35c684f982e8b110 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.

> On Jan. 14, 2016, 5:08 a.m., Alexander Rojas wrote:
> > I was wondering what the results of the benchmark would be with an optimized build.

The tests are already performed with an optimized build.


- Michael


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review114416
-----------------------------------------------------------


On Jan. 6, 2016, 2:48 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2016, 2:48 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp d7afa2af989eebfc9039b3681f087ce570f601d5 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Alexander Rojas <al...@mesosphere.io>.

> On Jan. 14, 2016, 6:08 a.m., Alexander Rojas wrote:
> > I was wondering what the results of the benchmark would be with an optimized build.
> 
> Michael Park wrote:
>     The tests are already performed with an optimized build.

So, are we moving towards optimized builds? because AFAIK our artifacts are not build with the `--enable-optimized` flag.


- Alexander


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review114416
-----------------------------------------------------------


On Jan. 15, 2016, 8:41 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 15, 2016, 8:41 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp bcafc7aff89659a68352f3876ce6042f8b34bd5d 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Alexander Rojas <al...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review114416
-----------------------------------------------------------


I was wondering what the results of the benchmark would be with an optimized build.

- Alexander Rojas


On Jan. 6, 2016, 3:48 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2016, 3:48 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp d7afa2af989eebfc9039b3681f087ce570f601d5 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/
-----------------------------------------------------------

(Updated Jan. 15, 2016, 1:27 p.m.)


Review request for mesos and Benjamin Hindman.


Bugs: MESOS-4238
    https://issues.apache.org/jira/browse/MESOS-4238


Repository: mesos


Description
-------

See summary.


Diffs
-----

  src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
  src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
  src/master/http.cpp bcafc7aff89659a68352f3876ce6042f8b34bd5d 

Diff: https://reviews.apache.org/r/41595/diff/


Testing
-------

# Some preliminery numbers

These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).

### Before

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 683.138216ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 550.636939ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 632.835236ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 584.035771ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 688.404348ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 666.713683ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 3.916201532secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 3.362618796secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 3.126815189secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 3.079956539secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 3.222014521secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 3.286657158secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 7.332592151secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 6.998751033secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 6.807456891secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 6.371190971secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 6.613739531secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 7.200492733secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 14.977313945secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 14.657804222secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 13.973765739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 14.205684739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 13.862711917secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 13.318292374secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 23.50264888secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 22.636817049secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 22.425003707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
```

### After

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 139.617795ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 171.210248ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 160.723562ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 168.967341ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 225.533202ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 186.785564ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 694.018365ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 768.719434ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 911.135941ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 898.358181ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 967.070956ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 921.661398ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 1.632949533secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 1.846994838secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 1.754788998secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 1.996761506secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 1.835763056secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 1.871073805secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 3.169145217secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 3.577511707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 3.68911716secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 3.775534974secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 3.849741727secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 3.904906724secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 5.058526864secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 5.442018636secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 5.530495291secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
```


Thanks,

Michael Park


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/
-----------------------------------------------------------

(Updated Jan. 15, 2016, 1:23 p.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

Added `TaskInfo.container`


Repository: mesos


Description
-------

See summary.


Diffs (updated)
-----

  src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
  src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
  src/master/http.cpp bcafc7aff89659a68352f3876ce6042f8b34bd5d 

Diff: https://reviews.apache.org/r/41595/diff/


Testing
-------

# Some preliminery numbers

These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).

### Before

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 683.138216ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 550.636939ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 632.835236ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 584.035771ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 688.404348ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 666.713683ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 3.916201532secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 3.362618796secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 3.126815189secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 3.079956539secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 3.222014521secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 3.286657158secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 7.332592151secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 6.998751033secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 6.807456891secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 6.371190971secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 6.613739531secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 7.200492733secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 14.977313945secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 14.657804222secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 13.973765739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 14.205684739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 13.862711917secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 13.318292374secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 23.50264888secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 22.636817049secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 22.425003707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
```

### After

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 139.617795ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 171.210248ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 160.723562ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 168.967341ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 225.533202ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 186.785564ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 694.018365ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 768.719434ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 911.135941ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 898.358181ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 967.070956ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 921.661398ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 1.632949533secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 1.846994838secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 1.754788998secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 1.996761506secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 1.835763056secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 1.871073805secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 3.169145217secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 3.577511707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 3.68911716secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 3.775534974secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 3.849741727secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 3.904906724secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 5.058526864secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 5.442018636secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 5.530495291secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
```


Thanks,

Michael Park


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/
-----------------------------------------------------------

(Updated Jan. 15, 2016, 7:41 a.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

Addressed BenH's comments.


Repository: mesos


Description
-------

See summary.


Diffs (updated)
-----

  src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
  src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
  src/master/http.cpp bcafc7aff89659a68352f3876ce6042f8b34bd5d 

Diff: https://reviews.apache.org/r/41595/diff/


Testing
-------

# Some preliminery numbers

These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).

### Before

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 683.138216ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 550.636939ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 632.835236ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 584.035771ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 688.404348ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 666.713683ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 3.916201532secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 3.362618796secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 3.126815189secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 3.079956539secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 3.222014521secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 3.286657158secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 7.332592151secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 6.998751033secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 6.807456891secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 6.371190971secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 6.613739531secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 7.200492733secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 14.977313945secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 14.657804222secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 13.973765739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 14.205684739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 13.862711917secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 13.318292374secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 23.50264888secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 22.636817049secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 22.425003707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
```

### After

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 139.617795ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 171.210248ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 160.723562ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 168.967341ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 225.533202ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 186.785564ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 694.018365ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 768.719434ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 911.135941ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 898.358181ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 967.070956ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 921.661398ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 1.632949533secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 1.846994838secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 1.754788998secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 1.996761506secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 1.835763056secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 1.871073805secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 3.169145217secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 3.577511707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 3.68911716secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 3.775534974secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 3.849741727secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 3.904906724secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 5.058526864secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 5.442018636secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 5.530495291secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
```


Thanks,

Michael Park


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.

> On Jan. 14, 2016, 4:25 a.m., Benjamin Hindman wrote:
> > src/master/http.cpp, line 112
> > <https://reviews.apache.org/r/41595/diff/4/?file=1183576#file1183576line112>
> >
> >     s/Type_Name/Type::Name/ here?

Double checked, it's not one of those unfortunately: https://developers.google.com/protocol-buffers/docs/reference/cpp-generated?hl=en#enum


- Michael


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review114402
-----------------------------------------------------------


On Jan. 6, 2016, 2:48 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2016, 2:48 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp d7afa2af989eebfc9039b3681f087ce570f601d5 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.

> On Jan. 14, 2016, 4:25 a.m., Benjamin Hindman wrote:
> > src/master/http.cpp, lines 135-146
> > <https://reviews.apache.org/r/41595/diff/4/?file=1183576#file1183576line135>
> >
> >     A basic comment that implies that a `Summary` representation is for the '/state-summary' endpoints and `Full` representation is for the '/state' endpoints (or maybe in the future for any "summary" endpoint) would be great. ;-)

Added comments over both of these.


> On Jan. 14, 2016, 4:25 a.m., Benjamin Hindman wrote:
> > src/master/http.cpp, line 175
> > <https://reviews.apache.org/r/41595/diff/4/?file=1183576#file1183576line175>
> >
> >     I can't remember what the outcome of our converation about this was, but do you even need the `Full` representation? Could you just have a `void json(JSON::ObjectWriter* writer, const Slave& slave)` work without needing to explicitly use `Full`? If we need `Full` in addition to `Summary` a comment above over `Full` that explains that for others would be great!

We don't "need" it per se, but for now I think it makes sense to be explicit about which one at the callsite. If we were to get rid of the summary endpoints later on, it would make sense at that point to get rid of `Summary<T>` and collapse `Full<T>` into `T`.


- Michael


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review114402
-----------------------------------------------------------


On Jan. 15, 2016, 7:41 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 15, 2016, 7:41 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp bcafc7aff89659a68352f3876ce6042f8b34bd5d 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review114402
-----------------------------------------------------------

Ship it!



src/master/http.cpp (line 112)
<https://reviews.apache.org/r/41595/#comment175244>

    s/Type_Name/Type::Name/ here?



src/master/http.cpp (line 116)
<https://reviews.apache.org/r/41595/#comment175243>

    { on newline please.



src/master/http.cpp (lines 135 - 146)
<https://reviews.apache.org/r/41595/#comment175245>

    A basic comment that implies that a `Summary` representation is for the '/state-summary' endpoints and `Full` representation is for the '/state' endpoints (or maybe in the future for any "summary" endpoint) would be great. ;-)



src/master/http.cpp (line 175)
<https://reviews.apache.org/r/41595/#comment175246>

    I can't remember what the outcome of our converation about this was, but do you even need the `Full` representation? Could you just have a `void json(JSON::ObjectWriter* writer, const Slave& slave)` work without needing to explicitly use `Full`? If we need `Full` in addition to `Summary` a comment above over `Full` that explains that for others would be great!


- Benjamin Hindman


On Jan. 6, 2016, 2:48 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2016, 2:48 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp d7afa2af989eebfc9039b3681f087ce570f601d5 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Mesos ReviewBot <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/#review114432
-----------------------------------------------------------


Bad patch!

Reviews applied: [41593]

Failed command: ./support/apply-review.sh -n -r 41593

Error:
 2016-01-14 07:41:12 URL:https://reviews.apache.org/r/41593/diff/raw/ [40207/40207] -> "41593.patch" [1]
error: patch failed: 3rdparty/libprocess/3rdparty/stout/include/Makefile.am:42
error: 3rdparty/libprocess/3rdparty/stout/include/Makefile.am: patch does not apply

- Mesos ReviewBot


On Jan. 6, 2016, 2:48 a.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41595/
> -----------------------------------------------------------
> 
> (Updated Jan. 6, 2016, 2:48 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> See summary.
> 
> 
> Diffs
> -----
> 
>   src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
>   src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
>   src/master/http.cpp d7afa2af989eebfc9039b3681f087ce570f601d5 
> 
> Diff: https://reviews.apache.org/r/41595/diff/
> 
> 
> Testing
> -------
> 
> # Some preliminery numbers
> 
> These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).
> 
> ### Before
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 683.138216ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 550.636939ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 632.835236ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 584.035771ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 688.404348ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 666.713683ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 3.916201532secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 3.362618796secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 3.126815189secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 3.079956539secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 3.222014521secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 3.286657158secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 7.332592151secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 6.998751033secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 6.807456891secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 6.371190971secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 6.613739531secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 7.200492733secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 14.977313945secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 14.657804222secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 13.973765739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 14.205684739secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 13.862711917secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 13.318292374secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 23.50264888secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 22.636817049secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 22.425003707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
> ```
> 
> ### After
> 
> ```
> [==========] Running 36 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
> Added 1000 slaves and 1 frameworks
> Received state.json response in 139.617795ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
> Added 1000 slaves and 50 frameworks
> Received state.json response in 171.210248ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
> Added 1000 slaves and 100 frameworks
> Received state.json response in 160.723562ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
> Added 1000 slaves and 200 frameworks
> Received state.json response in 168.967341ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
> Added 1000 slaves and 500 frameworks
> Received state.json response in 225.533202ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
> Added 1000 slaves and 1000 frameworks
> Received state.json response in 186.785564ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
> Added 5000 slaves and 1 frameworks
> Received state.json response in 694.018365ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
> Added 5000 slaves and 50 frameworks
> Received state.json response in 768.719434ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
> Added 5000 slaves and 100 frameworks
> Received state.json response in 911.135941ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
> Added 5000 slaves and 200 frameworks
> Received state.json response in 898.358181ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
> Added 5000 slaves and 500 frameworks
> Received state.json response in 967.070956ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
> Added 5000 slaves and 1000 frameworks
> Received state.json response in 921.661398ms
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
> Added 10000 slaves and 1 frameworks
> Received state.json response in 1.632949533secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
> Added 10000 slaves and 50 frameworks
> Received state.json response in 1.846994838secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
> Added 10000 slaves and 100 frameworks
> Received state.json response in 1.754788998secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
> Added 10000 slaves and 200 frameworks
> Received state.json response in 1.996761506secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
> Added 10000 slaves and 500 frameworks
> Received state.json response in 1.835763056secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
> Added 10000 slaves and 1000 frameworks
> Received state.json response in 1.871073805secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
> Added 20000 slaves and 1 frameworks
> Received state.json response in 3.169145217secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
> Added 20000 slaves and 50 frameworks
> Received state.json response in 3.577511707secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
> Added 20000 slaves and 100 frameworks
> Received state.json response in 3.68911716secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
> Added 20000 slaves and 200 frameworks
> Received state.json response in 3.775534974secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
> Added 20000 slaves and 500 frameworks
> Received state.json response in 3.849741727secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
> Added 20000 slaves and 1000 frameworks
> Received state.json response in 3.904906724secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
> Added 30000 slaves and 1 frameworks
> Received state.json response in 5.058526864secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
> Added 30000 slaves and 50 frameworks
> Received state.json response in 5.442018636secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
> [ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
> Added 30000 slaves and 100 frameworks
> Received state.json response in 5.530495291secs
> [       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
> ```
> 
> 
> Thanks,
> 
> Michael Park
> 
>


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/
-----------------------------------------------------------

(Updated Jan. 6, 2016, 2:48 a.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

Rebased.


Repository: mesos


Description
-------

See summary.


Diffs (updated)
-----

  src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
  src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
  src/master/http.cpp d7afa2af989eebfc9039b3681f087ce570f601d5 

Diff: https://reviews.apache.org/r/41595/diff/


Testing
-------

# Some preliminery numbers

These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).

### Before

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 683.138216ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 550.636939ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 632.835236ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 584.035771ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 688.404348ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 666.713683ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 3.916201532secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 3.362618796secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 3.126815189secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 3.079956539secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 3.222014521secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 3.286657158secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 7.332592151secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 6.998751033secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 6.807456891secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 6.371190971secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 6.613739531secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 7.200492733secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 14.977313945secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 14.657804222secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 13.973765739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 14.205684739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 13.862711917secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 13.318292374secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 23.50264888secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 22.636817049secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 22.425003707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
```

### After

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 139.617795ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 171.210248ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 160.723562ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 168.967341ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 225.533202ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 186.785564ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 694.018365ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 768.719434ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 911.135941ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 898.358181ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 967.070956ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 921.661398ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 1.632949533secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 1.846994838secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 1.754788998secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 1.996761506secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 1.835763056secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 1.871073805secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 3.169145217secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 3.577511707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 3.68911716secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 3.775534974secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 3.849741727secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 3.904906724secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 5.058526864secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 5.442018636secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 5.530495291secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
```


Thanks,

Michael Park


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/
-----------------------------------------------------------

(Updated Jan. 5, 2016, 10:39 p.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

Used `Representation`.


Repository: mesos


Description
-------

See summary.


Diffs (updated)
-----

  src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
  src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
  src/master/http.cpp deb0c8f9852dc0eec1e8c0ff35c684f982e8b110 

Diff: https://reviews.apache.org/r/41595/diff/


Testing
-------

# Some preliminery numbers

These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).

### Before

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 683.138216ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 550.636939ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 632.835236ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 584.035771ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 688.404348ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 666.713683ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 3.916201532secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 3.362618796secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 3.126815189secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 3.079956539secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 3.222014521secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 3.286657158secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 7.332592151secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 6.998751033secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 6.807456891secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 6.371190971secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 6.613739531secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 7.200492733secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 14.977313945secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 14.657804222secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 13.973765739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 14.205684739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 13.862711917secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 13.318292374secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 23.50264888secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 22.636817049secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 22.425003707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
```

### After

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 139.617795ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 171.210248ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 160.723562ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 168.967341ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 225.533202ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 186.785564ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 694.018365ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 768.719434ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 911.135941ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 898.358181ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 967.070956ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 921.661398ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 1.632949533secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 1.846994838secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 1.754788998secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 1.996761506secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 1.835763056secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 1.871073805secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 3.169145217secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 3.577511707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 3.68911716secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 3.775534974secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 3.849741727secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 3.904906724secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 5.058526864secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 5.442018636secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 5.530495291secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
```


Thanks,

Michael Park


Re: Review Request 41595: Updated `Master::Http::state` to use `jsonify` in mesos.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41595/
-----------------------------------------------------------

(Updated Jan. 5, 2016, 10:18 a.m.)


Review request for mesos and Benjamin Hindman.


Summary (updated)
-----------------

Updated `Master::Http::state` to use `jsonify` in mesos.


Repository: mesos


Description
-------

See summary.


Diffs
-----

  src/common/http.hpp 4f4cbf6e53588b72204f9628dea5696c71eb66a5 
  src/common/http.cpp 7165551321bedb8a4d711a64d0d6d8fd15215424 
  src/master/http.cpp deb0c8f9852dc0eec1e8c0ff35c684f982e8b110 

Diff: https://reviews.apache.org/r/41595/diff/


Testing
-------

# Some preliminery numbers

These numbers are from my Ubuntu VM on my Mac OS X with @vinodkone's benchmark test: [r40844](https://reviews.apache.org/r/40844/).

### Before

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 683.138216ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (1436 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 550.636939ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (1474 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 632.835236ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1491 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 584.035771ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1431 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 688.404348ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1586 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 666.713683ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1590 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 3.916201532secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (7852 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 3.362618796secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (8315 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 3.126815189secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (7153 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 3.079956539secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (7534 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 3.222014521secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (8129 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 3.286657158secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (8133 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 7.332592151secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (15639 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 6.998751033secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (17175 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 6.807456891secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (15974 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 6.371190971secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (15772 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 6.613739531secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (16527 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 7.200492733secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (18180 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 14.977313945secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (33446 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 14.657804222secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (36402 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 13.973765739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (35004 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 14.205684739secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (34901 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 13.862711917secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (35509 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 13.318292374secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (35513 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 23.50264888secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (52767 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 22.636817049secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (57984 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 22.425003707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (58428 ms)
```

### After

```
[==========] Running 36 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 36 tests from SlaveAndFrameworkCount/MasterState_BENCHMARK_Test
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0
Added 1000 slaves and 1 frameworks
Received state.json response in 139.617795ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/0 (840 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1
Added 1000 slaves and 50 frameworks
Received state.json response in 171.210248ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/1 (940 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2
Added 1000 slaves and 100 frameworks
Received state.json response in 160.723562ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/2 (1016 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3
Added 1000 slaves and 200 frameworks
Received state.json response in 168.967341ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/3 (1044 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4
Added 1000 slaves and 500 frameworks
Received state.json response in 225.533202ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/4 (1139 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5
Added 1000 slaves and 1000 frameworks
Received state.json response in 186.785564ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/5 (1114 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6
Added 5000 slaves and 1 frameworks
Received state.json response in 694.018365ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/6 (4263 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7
Added 5000 slaves and 50 frameworks
Received state.json response in 768.719434ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/7 (4681 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8
Added 5000 slaves and 100 frameworks
Received state.json response in 911.135941ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/8 (5039 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9
Added 5000 slaves and 200 frameworks
Received state.json response in 898.358181ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/9 (5727 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10
Added 5000 slaves and 500 frameworks
Received state.json response in 967.070956ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/10 (5625 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11
Added 5000 slaves and 1000 frameworks
Received state.json response in 921.661398ms
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/11 (6076 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12
Added 10000 slaves and 1 frameworks
Received state.json response in 1.632949533secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/12 (10613 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13
Added 10000 slaves and 50 frameworks
Received state.json response in 1.846994838secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/13 (10768 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14
Added 10000 slaves and 100 frameworks
Received state.json response in 1.754788998secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/14 (11160 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15
Added 10000 slaves and 200 frameworks
Received state.json response in 1.996761506secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/15 (11688 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16
Added 10000 slaves and 500 frameworks
Received state.json response in 1.835763056secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/16 (12967 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17
Added 10000 slaves and 1000 frameworks
Received state.json response in 1.871073805secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/17 (12664 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18
Added 20000 slaves and 1 frameworks
Received state.json response in 3.169145217secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/18 (19615 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19
Added 20000 slaves and 50 frameworks
Received state.json response in 3.577511707secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/19 (23335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20
Added 20000 slaves and 100 frameworks
Received state.json response in 3.68911716secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/20 (25335 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21
Added 20000 slaves and 200 frameworks
Received state.json response in 3.775534974secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/21 (24704 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22
Added 20000 slaves and 500 frameworks
Received state.json response in 3.849741727secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/22 (25947 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23
Added 20000 slaves and 1000 frameworks
Received state.json response in 3.904906724secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/23 (27580 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24
Added 30000 slaves and 1 frameworks
Received state.json response in 5.058526864secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/24 (32109 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25
Added 30000 slaves and 50 frameworks
Received state.json response in 5.442018636secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/25 (35728 ms)
[ RUN      ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26
Added 30000 slaves and 100 frameworks
Received state.json response in 5.530495291secs
[       OK ] SlaveAndFrameworkCount/MasterState_BENCHMARK_Test.State/26 (37867 ms)
```


Thanks,

Michael Park