mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haosdent huang <haosd...@gmail.com>
Subject Re: Review Request 46872: Updated quota.md for set quota.
Date Sun, 01 May 2016 05:41:26 GMT

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


Ship it!




Ship It!

- haosdent huang


On May 1, 2016, 2:19 a.m., Guangya Liu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46872/
> -----------------------------------------------------------
> 
> (Updated May 1, 2016, 2:19 a.m.)
> 
> 
> Review request for mesos and Alexander Rukletsov.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> There should be a @ before the json file when setting quota.
> 
> 
> Diffs
> -----
> 
>   docs/quota.md 797e134605381ae576d9aa93875e0314889ab047 
> 
> Diff: https://reviews.apache.org/r/46872/diff/
> 
> 
> Testing
> -------
> 
> root@mesos002:~/test# cat jsonMessageBody
> {
> 	"role": "role1",
> 	"guarantee": [{
> 		"name": "cpus",
> 		"type": "SCALAR",
> 		"scalar": {
> 			"value": 1
> 		}
> 	}, {
> 		"name": "mem",
> 		"type": "SCALAR",
> 		"scalar": {
> 			"value": 128
> 		}
> 	}]
> }
> 
> root@mesos002:~/test# curl -d @jsonMessageBody -X POST http://192.168.56.12:5050/quota
> 
> root@mesos002:~/test# curl -X GET http://192.168.56.12:5050/quota 2>/dev/null|python
-m json.tool
> {
>     "infos": [
>         {
>             "guarantee": [
>                 {
>                     "name": "cpus",
>                     "role": "*",
>                     "scalar": {
>                         "value": 1.0
>                     },
>                     "type": "SCALAR"
>                 },
>                 {
>                     "name": "mem",
>                     "role": "*",
>                     "scalar": {
>                         "value": 128.0
>                     },
>                     "type": "SCALAR"
>                 }
>             ],
>             "role": "role1"
>         }
>     ]
> }
> 
> 
> Thanks,
> 
> Guangya Liu
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message