aurora-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhitao Li <zhitaoli...@gmail.com>
Subject Review Request 45177: Prototype of setting DiscoveryInfo.
Date Tue, 22 Mar 2016 20:10:00 GMT

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

Review request for Aurora.


Repository: aurora


Description
-------

Prototype of setting DiscoveryInfo.

Disclaimer: this just shows how easy it is to pipe this information, not seeking to commit
the code as is.


Diffs
-----

  src/main/java/org/apache/aurora/scheduler/mesos/MesosTaskFactory.java 20cbd419dcb988f2c7ba72c8acbe6fee90d02248


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


Testing
-------

Use the vagrant environment to start the example in http_example.aurora, and observe the following
in master's state.json:

```
curl 192.168.33.7:5050/state | jq . | less
....
"tasks": [
{
"discovery": {
"environment": "test",
"name": "vagrant.test.http_example.1",
"ports": {
"ports": [
{
"name": "http",
"number": 31648
}
]
},
"visibility": "CLUSTER"
},
"executor_id": "thermos-vagrant-test-http_example-1-69c3908a-e8cd-44a7-a824-dd87ef5920f0",
"framework_id": "770e194c-6366-41f2-8a2d-e2c616aa9490-0000",
"id": "vagrant-test-http_example-1-69c3908a-e8cd-44a7-a824-dd87ef5920f0",
"name": "vagrant/test/http_example",
"resources": {
"cpus": 0.4,
"disk": 64,
"mem": 32,
"ports": "[31648-31648]"
},
...
....
```


Thanks,

Zhitao Li


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