4_understanding_frameworks

command
v0.0.0-...-bcdecf3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: MIT, Apache-2.0 Imports: 15 Imported by: 0

README

This is simeple framewrok aiming to show how to develop Mesos frameworks against HTTP API.

  1. Download the code git clone https://github.com/janisz/mesos-cookbook.git

  2. Change dir cd mesos-cookbook/4_understanding_frameworks

  3. In scheduler.go change master for your URL

  4. If you want to mimic some other framework create /tmp/framework.json and fill it with FrameworkInfo data:

     {
           "id": "<mesos-framewokr-id>",
           "user": "<framework-user>",
           "name": "<framework-name>",
           "failover_timeout": 3600,
           "checkpoint": true,
           "hostname": "<hostname>",
           "webui_url": "<framework-web-ui>"
     }
    
  5. Run it go run scheduler.go scheduler.pb.go mesos.pb.go

Documentation

Overview

Package main is a generated protocol buffer package.

It is generated from these files:

mesos.proto
scheduler.proto

It has these top-level messages:

FrameworkID
OfferID
AgentID
TaskID
ExecutorID
ContainerID
TimeInfo
DurationInfo
Address
URL
Unavailability
MachineID
MachineInfo
FrameworkInfo
HealthCheck
KillPolicy
CommandInfo
ExecutorInfo
MasterInfo
AgentInfo
Value
Attribute
Resource
TrafficControlStatistics
IpStatistics
IcmpStatistics
TcpStatistics
UdpStatistics
SNMPStatistics
ResourceStatistics
ResourceUsage
PerfStatistics
Request
Offer
InverseOffer
TaskInfo
Task
TaskStatus
Filters
Environment
Parameter
Parameters
Credential
Credentials
RateLimit
RateLimits
Image
Volume
NetworkInfo
ContainerInfo
ContainerStatus
CgroupInfo
Labels
Label
Port
Ports
DiscoveryInfo
WeightInfo
VersionInfo
Flag
Role
Metric
FileInfo
Event
Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL