twitter-archive / mysos

Cotton (formerly known as Mysos)
https://incubator.apache.org/projects/cotton.html
589 stars 67 forks source link

Fill in ExecutorInfo.name and ExecutorInfo.source. #29

Closed xujyan closed 9 years ago

xujyan commented 9 years ago

For #26. This allows external metrics tracking/reporting programs to group Mysos tasks.

xujyan commented 9 years ago

Tested on Vagrant. Mesos slave monitor/statistics.json:

[{
executor_id: "mysos-test_cluster257-0",
executor_name: "mysos.task",
framework_id: "20150512-170219-287418560-5050-31379-0000",
source: "vagrant.devcluster.test_cluster257.0",
statistics: {
cpus_limit: 1,
cpus_nr_periods: 53,
cpus_nr_throttled: 0,
cpus_system_time_secs: 0.26,
cpus_throttled_time_secs: 0,
cpus_user_time_secs: 1.91,
mem_anon_bytes: 34701312,
mem_file_bytes: 17117184,
mem_limit_bytes: 536870912,
mem_mapped_file_bytes: 1978368,
mem_rss_bytes: 51916800,
timestamp: 1431735465.64014
}}]
xujyan commented 9 years ago

@vinodkone can you take a look? Thanks!