mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Mahler" <benjamin.mah...@gmail.com>
Subject Re: Review Request 37023: Add an endpoint that exposes component flags.
Date Tue, 13 Oct 2015 21:32:21 GMT

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

Ship it!


Looks great, I made some minor comments about keeping the HELP constants consistent. But since
the existing help strings are static PODs, I've updated them to become static functions and
I've updated your patch to follow the same style. Thanks!


src/master/master.cpp (lines 125 - 130)
<https://reviews.apache.org/r/37023/#comment160233>

    Looks like this should be a static function in Http called FLAGS_HELP, to be consistent,
although we still need to make the others functions rather than static strings.



src/master/master.cpp (lines 128 - 129)
<https://reviews.apache.org/r/37023/#comment160231>

    No need to wrap here.
    
    How about:
    
    "Exposes the master's flag configuration."



src/slave/slave.cpp (lines 121 - 126)
<https://reviews.apache.org/r/37023/#comment160232>

    Ditto here


- Ben Mahler


On Oct. 13, 2015, 2:47 a.m., haosdent huang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37023/
> -----------------------------------------------------------
> 
> (Updated Oct. 13, 2015, 2:47 a.m.)
> 
> 
> Review request for mesos and Ben Mahler.
> 
> 
> Bugs: MESOS-3104
>     https://issues.apache.org/jira/browse/MESOS-3104
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Add an endpoint that exposes component flags.
> 
> 
> Diffs
> -----
> 
>   src/master/http.cpp 4b9f9ed005a4af2897171659d15168955cc60660 
>   src/master/master.hpp 9d957519bb0f717526af9b2717dc870fae93c20f 
>   src/master/master.cpp 6bee4f351c3fd0fb72f64bbc863968e4786b318b 
>   src/slave/http.cpp f9cf7bbe81b7fe9637de9a8d66329c16a7e1a89b 
>   src/slave/slave.hpp 18be4f8188ad34ef4d0aa4b5eba241053d071476 
>   src/slave/slave.cpp d1c9977feeb30ad43586a4560eed155865d27a6c 
> 
> Diff: https://reviews.apache.org/r/37023/diff/
> 
> 
> Testing
> -------
> 
> manual test wich mesos-local.
> ```
> $ curl http://localhost:5050/master/flags 2>/dev/null|jq .
> {
>   "flags": {
>     "allocation_interval": "1secs",
>     "allocator": "HierarchicalDRF",
>     "authenticate": "false",
>     "authenticate_slaves": "false",
>     "authenticators": "crammd5",
>     "framework_sorter": "drf",
>     "help": "true",
>     "initialize_driver_logging": "true",
>     "log_auto_initialize": "true",
>     "logbufsecs": "0",
>     "logging_level": "INFO",
>     "max_slave_ping_timeouts": "5",
>     "quiet": "false",
>     "recovery_slave_removal_limit": "100%",
>     "registry": "replicated_log",
>     "registry_fetch_timeout": "1mins",
>     "registry_store_timeout": "5secs",
>     "registry_strict": "false",
>     "root_submissions": "true",
>     "slave_ping_timeout": "15secs",
>     "slave_reregister_timeout": "10mins",
>     "user_sorter": "drf",
>     "version": "false",
>     "webui_dir": "/home/haosdent/mesos/build/../src/webui",
>     "work_dir": "/tmp/mesos",
>     "zk_session_timeout": "10secs"
>   }
> }
> ```
> 
> ```
> $ curl http://localhost:5050/slave(1)/flags 2>/dev/null|jq .
> {
>   "flags": {
>     "authenticatee": "crammd5",
>     "cgroups_cpu_enable_pids_and_tids_count": "false",
>     "cgroups_enable_cfs": "false",
>     "cgroups_hierarchy": "/sys/fs/cgroup",
>     "cgroups_limit_swap": "false",
>     "cgroups_root": "mesos",
>     "container_disk_watch_interval": "15secs",
>     "containerizers": "mesos",
>     "default_role": "*",
>     "disk_watch_interval": "1mins",
>     "docker": "docker",
>     "docker_kill_orphans": "true",
>     "docker_remove_delay": "6hrs",
>     "docker_socket": "/var/run/docker.sock",
>     "docker_stop_timeout": "0ns",
>     "enforce_container_disk_quota": "false",
>     "executor_registration_timeout": "1mins",
>     "executor_shutdown_grace_period": "5secs",
>     "fetcher_cache_dir": "/tmp/mesos/fetch",
>     "fetcher_cache_size": "2GB",
>     "frameworks_home": "",
>     "gc_delay": "1weeks",
>     "gc_disk_headroom": "0.1",
>     "hadoop_home": "",
>     "help": "false",
>     "initialize_driver_logging": "true",
>     "isolation": "posix/cpu,posix/mem",
>     "launcher_dir": "/home/haosdent/mesos/build/src",
>     "logbufsecs": "0",
>     "logging_level": "INFO",
>     "oversubscribed_resources_interval": "15secs",
>     "perf_duration": "10secs",
>     "perf_interval": "1mins",
>     "qos_correction_interval_min": "0ns",
>     "quiet": "false",
>     "recover": "reconnect",
>     "recovery_timeout": "15mins",
>     "registration_backoff_factor": "1secs",
>     "resource_monitoring_interval": "1secs",
>     "revocable_cpu_low_priority": "true",
>     "sandbox_directory": "/mnt/mesos/sandbox",
>     "strict": "true",
>     "switch_user": "true",
>     "version": "false",
>     "work_dir": "/tmp/mesos/0"
>   }
> }
> ```
> 
> 
> Thanks,
> 
> haosdent huang
> 
>


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