Github user janisz commented on the issue:

    https://github.com/apache/mesos/pull/233
  
    * [x] The global tasks table
    * [x] The framework-specific task table (when clicking into a framework)
    * [x] The executor-specific task table within an agent (when clicking into 
an agent, then a framework, then an executor)
    
    > I'm also a bit curious about whether it's a good idea to re-use the 
health string as a class, since it seems easy to break vs only specifying the 
display string in the html page.
    
    I removed CSS. I'm not sure if red/green looks good in Mesos blue palette. 
@lilysamimi Any idea how to present health state?
    
    
    
![health](https://user-images.githubusercontent.com/1616386/30836142-9be5fd48-a25c-11e7-98ee-a58ff094ea53.png)
    
    
    
    <details>
    
    I used Marathon to deploy 3 applications with 3 types of health state.
    
    ```
     curl -X PUT -d@health_groups.json localhost:8080/v2/groups/
    ```
    
    ```json
    {
       "apps":[
          {
             "id":"/apache",
             "cmd":"sleep 1000",
             "cpus":1,
             "mem":128,
             "disk":0,
             "instances":1,
             "healthChecks":[
                {
                   "gracePeriodSeconds":1,
                   "intervalSeconds":1,
                   "maxConsecutiveFailures":300,
                   "command":{
                      "value":"true"
                   },
                   "protocol":"COMMAND"
                }
             ]
          },
          {
             "id":"/tomcat",
             "cmd":"sleep 1000",
             "cpus":1,
             "mem":128,
             "disk":0,
             "instances":1,
             "healthChecks":[
                {
                   "gracePeriodSeconds":1,
                   "intervalSeconds":1,
                   "maxConsecutiveFailures":300,
                   "command":{
                      "value":"false"
                   },
                   "protocol":"COMMAND"
                }
             ]
          },
          {
             "id":"/mysql",
             "cmd":"sleep 1000",
             "cpus":1,
             "mem":128,
             "disk":0,
             "instances":1
          }
       ]
    }
    ```
    
    </details>


---

Reply via email to