You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/11/25 00:20:10 UTC
mesos git commit: Added agent flags to enable/disable launching an io
switchboard server.
Repository: mesos
Updated Branches:
refs/heads/master 448a88d33 -> bd1bd1eee
Added agent flags to enable/disable launching an io switchboard server.
Review: https://reviews.apache.org/r/53936/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bd1bd1ee
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bd1bd1ee
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/bd1bd1ee
Branch: refs/heads/master
Commit: bd1bd1eeee50dcb23d65dcadb4903822ffd88cfb
Parents: 448a88d
Author: Kevin Klues <kl...@gmail.com>
Authored: Thu Nov 24 16:04:15 2016 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu Nov 24 16:04:15 2016 -0800
----------------------------------------------------------------------
src/slave/flags.cpp | 11 +++++++++++
src/slave/flags.hpp | 1 +
2 files changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/bd1bd1ee/src/slave/flags.cpp
----------------------------------------------------------------------
diff --git a/src/slave/flags.cpp b/src/slave/flags.cpp
index 76609f9..0de15ec 100644
--- a/src/slave/flags.cpp
+++ b/src/slave/flags.cpp
@@ -248,6 +248,17 @@ mesos::internal::slave::Flags::Flags()
"NOTE: This feature is not yet supported on Windows agent, and\n"
"therefore the flag currently does not exist on that platform.",
true);
+
+ add(&Flags::io_switchboard_enable_server,
+ "io_switchboard_enable_server",
+ "If set to `true`, the agent will launch a per-container sidecar\n"
+ "process that runs an HTTP serve to handle incoming\n"
+ "'ATTACH_CONTAINER_INPUT' and 'ATTACH_CONTAINER_OUTPUT' calls on\n"
+ "behalf of a container. If set to 'false', this functionality\n"
+ "will not be available. The default is 'false'.\n"
+ "NOTE: This feature is not yet supported on Windows agent, and\n"
+ "therefore the flag currently does not exist on that platform.",
+ false);
#endif // __WINDOWS__
add(&Flags::frameworks_home,
http://git-wip-us.apache.org/repos/asf/mesos/blob/bd1bd1ee/src/slave/flags.hpp
----------------------------------------------------------------------
diff --git a/src/slave/flags.hpp b/src/slave/flags.hpp
index 3c292ba..c6c3197 100644
--- a/src/slave/flags.hpp
+++ b/src/slave/flags.hpp
@@ -69,6 +69,7 @@ public:
#ifndef __WINDOWS__
bool switch_user;
+ bool io_switchboard_enable_server;
#endif // __WINDOWS__
std::string frameworks_home; // TODO(benh): Make an Option.
Duration registration_backoff_factor;