Get desktop application:
View/edit binary Protocol Buffers messages
* Task manager interface
Get the info of a task in job.
DEPRECATED by peloton.api.v0.task.svc.GetTaskRequest.
DEPRECATED by peloton.api.v0.task.svc.GetTaskResponse.
DEPRECATED by repeated TaskInfo
Returns all active and completed tasks of the given instance.
List all task info in a job.
DEPRECATED by peloton.api.v0.task.svc.ListTasksRequest.
DEPRECATED by peloton.api.v0.task.svc.ListTasksResponse.
Start a set of tasks for a job. Will be no-op for tasks that are currently running.
DEPRECATED by peloton.api.v0.task.svc.StartTasksRequest.
DEPRECATED by peloton.api.v0.task.svc.StartTasksResponse.
Stop a set of tasks for a job. Will be no-op for tasks that are currently stopped.
DEPRECATED by peloton.api.v0.task.svc.StopTasksRequest. If no ranges specified, then stop all the tasks in the job.
DEPRECATED by peloton.api.v0.task.svc.StopTasksResponse.
Restart a set of tasks for a job. Will start tasks that are currently stopped.
DEPRECATED by peloton.api.v0.task.svc.RestartTasksRequest.
DEPRECATED by peloton.api.v0.task.svc.RestartTasksResponse.
Query task info in a job, using a set of filters.
DEPRECATED by peloton.api.v0.task.svc.QueryTasksRequest.
DEPRECATED by peloton.api.v0.task.svc.QueryTasksResponse.
BrowseSandbox returns list of file paths inside sandbox.
DEPRECATED by peloton.api.v0.task.svc.BrowseSandboxRequest.
Get the sandbox path of a particular task of an instance. This should be set to the mesos task id in the runtime of the task for which the sandbox is being requested. If not provided, the path of the latest task is returned.
DEPRECATED by peloton.api.v0.task.svc.BrowseSandboxResponse.
Mesos Master hostname and port.
Debug only method. Allows user to load task runtime state from DB and re-execute the action associated with current state.
DEPRECATED by peloton.api.v0.task.svc.RefreshTasksRequest.
DEPRECATED by peloton.api.v0.task.svc.RefreshTasksResponse.
(message has no fields)
Debug only method. Get the cache of a task stored in Peloton.
DEPRECATED by peloton.api.task.svc.GetTaskCacheRequest.
The job ID to look up the task.
The instance ID of the task to get.
DEPRECATED by peloton.api.task.svc.GetTaskCacheResponse.
The task runtime of the task.
The labels of the task.
GetPodEvents returns pod events (state transition for a pod), in reverse chronological order. pod is singular instance of a Peloton job.
* Request message for TaskService.GetPodEvents method.
The job ID of the task
The instance ID of the task
Defines the number of unique run ids for which the pod events will be returned. If a specific run id is requested, using runId, then this defaults to 1. Defaults to 10 otherwise.
Unique identifier to fetch pod events of an instance for a particular run. This is an optional parameter, if unset limit number of run ids worth of pod events will be returned.
* Response message for TaskService.GetPodEvents method. Return errors: INTERNAL: if failed to get task events for internal errors.
DeletePodEvents, deletes the pod events for provided request, which is for a jobID + instanceID + less than equal to runID. Response will be successful or error on unable to delete events for input.
* Request message for TaskService.DeletePodEvents method.
The job ID of the task
The instance ID of the task
deletes the run less than equal to runId.
* Response message for TaskService.DeletePodEvents method. Return errors: INTERNAL: if failed to delete task events for internal errors.
(message has no fields)
* AndConstraint represents a logical 'and' of constraints.
Used in:
* Failures for browsing sandbox files requests to mesos call.
Used in:
Used in:
* Constraint represents a host label constraint or a related tasks label constraint. This is used to require that a host have certain label constraints or to require that the tasks already running on the host have certain label constraints.
Used in:
, , , ,Used in:
Reserved for compatibility.
Used in:
* Health check configuration for a task
Used in:
Whether the health check is enabled.
Start time wait in seconds. Zero or empty value would use default value of 15 from Mesos.
Interval in seconds between two health checks. Zero or empty value would use default value of 10 from Mesos.
Max number of consecutive failures before failing health check. Zero or empty value would use default value of 3 from Mesos.
Health check command timeout in seconds. Zero or empty value would use default value of 20 from Mesos.
Only applicable when type is `COMMAND`.
Only applicable when type is 'HTTP'.
Used in:
Health check command to be executed. Note that this command by default inherits all environment varibles from the task it's monitoring, unless `unshare_environments` is set to true.
If set, this check will not share the environment variables of the task.
HTTP health check to be executed. Sends a GET request to scheme://<host>:port/path. Host is not configurable and is resolved automatically.
Used in:
Currently http and https are supported.
Port to send the HTTP GET.
The request path.
Used in:
Reserved for future compatibility of new types.
Command line based health check
HTTP endpoint based health check
GRPC endpoint based health check
* HealthState is the health check state of a task
Used in:
,Default value.
If the health check config is not enabled in the task config, the initial value of the health state is DISABLED.
If the health check config is enabled in the task config, the initial value of the health state is HEALTH_UNKNOWN.
In a Mesos event, If the healthy field is true and the reason field is REASON_TASK_HEALTH_CHECK_STATUS_UPDATED the health state of the task is HEALTHY
In a Mesos event, If the healthy field is false and the reason field is REASON_TASK_HEALTH_CHECK_STATUS_UPDATED the health state of the task is UNHEALTHY
DEPRECATED by google.rpc.OUT_OF_RANGE error.
Used in:
, , , ,Entity ID of the job
Instance count of the job
* Task InstanceID range [from, to)
Used in:
, , , , , , , , , , , , , , ,* LabelConstraint represents a constraint on the number of occurrences of a given label from the set of host labels or task labels present on the host.
Used in:
Determines which labels the constraint should apply to.
Determines which constraint there should be on the number of occurrences of the label.
The label which this defines a constraint on: For Kind == HOST, each attribute on Mesos agent is transformed to a label, with `hostname` as a special label which is always inferred from agent hostname and set.
A limit on the number of occurrences of the label.
* Condition represents a constraint on the number of occurrences of the label.
Used in:
Reserved for compatibility.
* Kind represents whatever the constraint applies to the labels on the host or to the labels of the tasks that are located on the host.
Used in:
Reserved for compatibility.
Used in:
* OrConstraint represents a logical 'or' of constraints.
Used in:
* Persistent volume configuration for a task.
Used in:
Volume mount path inside container.
Volume size in MB.
* Pod event of a Peloton pod instance.
Used in:
The task ID of the task event.
Actual state of an instance
Goal State of an instance
The time when the event was created. The time is represented in RFC3339 form with UTC timezone.
The config version currently used by the runtime.
The desired config version that should be used by the runtime.
The agentID for the task
The host on which the task is running
Short human friendly message explaining state.
The short reason for the task event
The previous task ID of the pod event.
The health check result of the task
The desired mesos task ID of the task event.
* Network port configuration for a task
Used in:
Name of the network port, e.g. http, tchannel. Required field.
Static port number if any. If unset, will be dynamically allocated by the scheduler
Environment variable name to be exported when running a task for this port. Required field for dynamic port.
* Preemption policy for a task
Used in:
This policy defines if the task should be restarted after it is preempted. If set to true the task will not be rescheduled after it is preempted. If set to false the task will be rescheduled. Defaults to false This only takes effect if the task is preemptible.
* Type represents whether the instance is preemptible. If so, it might be scheduled using elastic resources from other resource pools and subject to preemption when the demands of other resource pools increase. If it is non-preemptible it will be scheduled using the reserved resources only. This can override the preemptible sla configuration at the job level.
Used in:
Used in:
* QuerySpec specifies the list of query criteria for tasks. All indexed fields should be part of this message. And all fields in this message have to be indexed too.
Used in:
,DEPRECATED: use QueryJobRequest.pagination instead. The spec of how to do pagination for the query results.
List of task states to query the tasks. Will match all tasks if the list is empty.
List of task names to query the tasks. Will match all names if the list is empty.
List of hosts to query the tasks. Will match all hosts if the list is empty.
* Resource configuration for a task.
Used in:
, , ,CPU limit in number of CPU cores
Memory limit in MB
Disk limit in MB
File descriptor limit
GPU limit in number of GPUs
* Restart policy for a task.
Used in:
Max number of task failures can occur before giving up scheduling retry, no backoff for now. Default 0 means no retry on failures.
* Runtime info of an task instance in a Job
Used in:
, ,Runtime status of the task
The mesos task ID for this instance
The time when the instance starts to run. Will be unset if the instance hasn't started running yet. The time is represented in RFC3339 form with UTC timezone.
The time when the instance is completed. Will be unset if the instance hasn't completed yet. The time is represented in RFC3339 form with UTC timezone.
The name of the host where the instance is running
Dynamic ports reserved on the host while this instance is running
The desired state of the task which should be eventually reached by the system.
The message that explains the current state of a task such as why the task is failed. Only track the latest one if the task has been retried and failed multiple times.
The reason that explains the current state of a task. Only track the latest one if the task has been retried and failed multiple times. See Mesos TaskStatus.Reason for more details.
The number of times the task has failed after retries.
persistent volume id
The config version currently used by the runtime.
The desired config version that should be used by the runtime.
the id of mesos agent on the host to be launched.
Revision of the current task info.
The mesos task id of the previous task run of the instance.
The resource usage for this task. The map key is each resource kind in string format and the map value is the number of unit-seconds of that resource used by the job. Example: if a task that uses 1 CPU and finishes in 10 seconds, this map will contain <"cpu":10>
The result of the health check
The desired mesos task ID for this instance
Termination status of the task. Set only if the task is in a non-successful terminal state such as KILLED or FAILED.
The name of the host where the instance should be running on upon restart. It is used for best effort in-place update/restart.
Used in:
Used in:
* Task configuration for a given job instance Note that only add string/slice/ptr type into TaskConfig directly due to the limitation of go reflection inside our task specific config logic.
Used in:
, ,Name of the task
List of user-defined labels for the task
Resource config of the task
Container config of the task.
Command line config of the task
Custom executor config of the task.
Health check config of the task
List of network ports to be allocated for the task
Constraint on the attributes of the host or labels on tasks on the host that this task should run on. Use `AndConstraint`/`OrConstraint` to compose multiple constraints if necessary.
Task restart policy on failures
Persistent volume config of the task.
Preemption policy of the task
Whether this is a controller task. A controller is a special batch task which controls other tasks inside a job. E.g. spark driver tasks in a spark job will be a controller task.
This is used to set the amount of time between when the executor sends the SIGTERM message to gracefully terminate a task and when it kills it by sending SIGKILL. If you do not set the grace period duration the default is 30 seconds.
Whether the instance is revocable. If so, it might be scheduled using revocable resources and subject to preemption when there is resource contention on the host. This can override the revocable configuration at the job level.
* Task event of a Peloton task instance.
Used in:
The task ID of the task event.
The task state of the task event.
Short human friendly message explaining state.
The time when the event was created. The time is represented in RFC3339 form with UTC timezone.
The source that generated the task event.
The host on which the task is running
The short reason for the task event
The agentID for the task
The previous mesos task ID of the task event.
The health check result of the task
The desired mesos task ID of the task event.
Describes the source of the task event
Used in:
DEPRECATED by google.rpc.INTERNAL error.
* Info of a task instance in a Job
Used in:
, , , , , , ,The numerical ID assigned to this instance. Instance IDs must be unique and contiguous within a job. The ID is in the range of [0, N-1] for a job with instance count of N.
Job ID of the task
Configuration of the task
Runtime info of the instance
* Task not running error.
Used in:
* Error when TaskStart failed.
Used in:
* Runtime states of a task instance
Used in:
, , ,Reserved for future compatibility of new states.
The task is being initialized
The task is pending and waiting for resources
The task has been allocated with resources and ready for placement
The task is being placed to a host based on its resource requirements and constraints
The task has been assigned to a host matching the resource requirements and constraints
The task is taken from resmgr to be launched
The task is being launched in Job manager TODO: We need to correct the numbering
The task is being started by Mesos agent
The task is running on a Mesos host
The task terminated with an exit code of zero
The task terminated with a non-zero exit code
The task is lost
The task is being preempted by another one on the node
The task is being killed
Execution of the task was terminated by the system
The task is to be deleted after termination
Placement engine is reserving host for the task
DEPRECATED by google.rpc.INTERNAL error.
Used in:
TerminationStatus contains details about termination of a task. It mainly contains Peloton-specific reasons for termination.
Used in:
Reason for termination.
If non-zero, exit status when the container terminated.
Name of signal received by the container when it terminated.
Reason lists various causes for a task termination
Used in:
Default value.
Task was killed because a stop request was received from a client.
Task failed. See also TerminationStatus.exit_code, TerminationStatus.signal and ContainerStatus.message.
Task was killed to put the host in to maintenance.
Task was killed to reclaim resources allocated to it.
Task was killed due to deadline tracker exceeding task timeout
Task was killed for update
Task was killed for restart
Task was killed for sla aware restart