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 2014/12/19 19:50:38 UTC
mesos git commit: Added protobuf protocol for communicating persisted
resources between master and slave.
Repository: mesos
Updated Branches:
refs/heads/master 37000fbe3 -> 0b5693635
Added protobuf protocol for communicating persisted resources between
master and slave.
Review: https://reviews.apache.org/r/28723
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0b569363
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0b569363
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0b569363
Branch: refs/heads/master
Commit: 0b569363573164ae6f320af18b6796be1d414b04
Parents: 37000fb
Author: Jie Yu <yu...@gmail.com>
Authored: Thu Dec 4 14:55:33 2014 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Fri Dec 19 10:50:04 2014 -0800
----------------------------------------------------------------------
src/messages/messages.proto | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/0b569363/src/messages/messages.proto
----------------------------------------------------------------------
diff --git a/src/messages/messages.proto b/src/messages/messages.proto
index 6b261f7..16043dd 100644
--- a/src/messages/messages.proto
+++ b/src/messages/messages.proto
@@ -245,6 +245,12 @@ message FrameworkErrorMessage {
message RegisterSlaveMessage {
required SlaveInfo slave = 1;
+ // Resources that are persisted by the slave. It includes persistent
+ // disk resources currently, and may include dynamically reserved
+ // resources in the future. Persisted resources need to be
+ // explicitly released by the framework.
+ repeated Resource persisted_resources = 3;
+
// NOTE: This is a hack for the master to detect the slave's
// version. If unset the slave is < 0.21.0.
// TODO(bmahler): Do proper versioning: MESOS-986.
@@ -258,6 +264,13 @@ message ReregisterSlaveMessage {
// 0.22.0: Remove this field.
optional SlaveID slave_id = 1;
required SlaveInfo slave = 2;
+
+ // Resources that are persisted by the slave. It includes persistent
+ // disk resources currently, and may include dynamically reserved
+ // resources in the future. Persisted resources need to be
+ // explicitly released by the framework.
+ repeated Resource persisted_resources = 7;
+
repeated ExecutorInfo executor_infos = 4;
repeated Task tasks = 3;
repeated Archive.Framework completed_frameworks = 5;
@@ -315,6 +328,17 @@ message UpdateFrameworkMessage {
}
+// This message is sent to the slave whenever there is an acquisition
+// or release of a persistent resource (e.g., persistent disk or
+// dynamic reservation).
+message UpdateResourcesMessage {
+ // Resources that need to be persisted on the slave. It includes
+ // persistent disk resources currently, and may include dynamically
+ // reserved resources in the future.
+ repeated Resource persisted_resources = 1;
+}
+
+
message RegisterExecutorMessage {
required FrameworkID framework_id = 1;
required ExecutorID executor_id = 2;