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

(Updated Oct. 16, 2016, 5:03 a.m.)


Review request for mesos, Jie Yu and Kevin Klues.


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


Repository: mesos


Description
-------

Add a new flag `temp_dir` when running Mesos in local mode. It is the
parent directory to create the work directory and other directories for
master and agents automatically.


Diffs
-----

  bin/mesos-local-flags.sh.in 5b4553a808dc9f34a15390e69b2f85e95761ec53 
  src/local/flags.hpp c77eff13e7a63630ff6c9428e57f3f6707e1f30f 
  src/local/local.cpp 257179443827ffdfc946ed655a6840fcea70d454 

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


Testing (updated)
-------

```
$ ./src/mesos-local --num_slaves=2
```

```
$ tree /tmp/mesos/local/
/tmp/mesos/local/
??? agent
?   ??? 0
?   ?   ??? runtime_dir
?   ?   ??? work_dir
?   ?       ??? meta
?   ?       ?   ??? boot_id
?   ?       ?   ??? slaves
?   ?       ?       ??? 9a676b40-8118-47ed-a2a2-d6b3e84b9525-S1
?   ?       ?       ?   ??? slave.info
?   ?       ?       ??? latest -> 
/tmp/mesos/local/agent/0/work_dir/meta/slaves/9a676b40-8118-47ed-a2a2-d6b3e84b9525-S1
?   ?       ??? provisioner
?   ??? 1
?       ??? runtime_dir
?       ??? work_dir
?           ??? meta
?           ?   ??? boot_id
?           ?   ??? slaves
?           ?       ??? 9a676b40-8118-47ed-a2a2-d6b3e84b9525-S0
?           ?       ?   ??? slave.info
?           ?       ??? latest -> 
/tmp/mesos/local/agent/1/work_dir/meta/slaves/9a676b40-8118-47ed-a2a2-d6b3e84b9525-S0
?           ??? provisioner
??? master
    ??? work_dir
        ??? replicated_log
            ??? 000004.log
            ??? CURRENT
            ??? LOCK
            ??? LOG
            ??? MANIFEST-000002

20 directories, 9 files
```


Thanks,

haosdent huang

Reply via email to