Skip to content

mesos-slave job from mesos/3

Github source: d46100e3 or master branch

Properties

mesos

principal

Mesos principal

secret

Mesos secret

slave

attributes

Attributes of machine

Default
""
authenticatee

Authenticatee implementation to use when authenticating against the master

Default
crammd5
cgroups_enable_cfs

Cgroups feature flag to enable hard limits on CPU resources via the CFS bandwidth limiting subfeature

Default
false
cgroups_hierarchy

The path to the cgroups hierarchy root

Default
/sys/fs/cgroup
cgroups_limit_swap

Cgroups feature flag to enable memory limits on both memory and swap instead of just memory

Default
false
cgroups_root

Name of the root cgroup

Default
mesos
container_disk_watch_interval

The interval between disk quota checks for containers

Default
15secs
default_role

Default role

Default
'*'
disk_watch_interval

Periodic time interval (e.g., 10secs, 2mins, etc) to check the disk usage

Default
1mins
docker
remove_delay

The amount of time to wait before removing docker containers

Default
6hrs
sandbox_directory

The absolute path for the directory in the container where the sandbox is mapped to

Default
/mnt/mesos/sandbox
stop_timeout

The time as a duration for docker to wait after stopping an instance before it kills that instance

Default
0ns
enforce_container_disk_quota

Whether to enable disk quota enforcement for containers

Default
false
executor_registration_timeout

Amount of time to wait for an executor to register with the slave before considering it hung and shutting it down

Default
5mins
executor_shutdown_grace_period

Amount of time to wait for an executor to shut down

Default
5secs
gc_delay

Maximum amount of time to wait before cleaning up executor directories

Default
1weeks
gc_disk_headroom

Adjust disk headroom used to calculate maximum executor directory age

Default
"0.1"
group

Group which will own the Apache Mesos Slave services

Default
vcap
initialize_driver_logging

Whether to automatically initialize google logging of scheduler and/or executor drivers

Default
true
isolation

Apache Mesos Slave isolation mechanism (process, cgroups)

Default
cgroups/cpu,cgroups/mem
logbufsecs

How many seconds to buffer log messages for

Default
0
loglevel

Log message at or above this level; possible values: ‘INFO’, ‘WARNING’, ‘ERROR’;

Default
INFO
logrotate
frequency

Frequency to run logrotate for Mesos Slave log files (crontab five time and date fields)

Default
0 * * * *
rotate

Number of times Mesos Slave log files are rotated before being removed

Default
"7"
size

Size before Mesos Slave log files are rotated

Default
10M
perf_duration

Duration of a perf stat sample

Default
10secs
perf_events

List of command-separated perf events to sample for each container when using the perf_event isolator

Default
""
perf_interval

Interval between the start of perf stat samples

Default
1mins
port

Port where Apache Mesos Slave will listen on

Default
5051
recover

Whether to recover Apache Mesos Slaves status updates and reconnect with old executors (reconnect, cleanup)

Default
reconnect
recovery_timeout

Amount of time alloted for the Apache Mesos Slaves to recover

Default
15mins
registration_backoff_factor

Registration backoff factor

Default
1secs
resource_monitoring_interval

Periodic time interval for monitoring executor resource usage

Default
1secs
resources

Total consumable resources per slave, in the form ‘name(role):value;name(role):value…’

Default
""
strict

Whether to do Apache Mesos Slaves recovery in strict mode

Default
true
subsystems

List of comma-separated cgroup subsystems to run the slave binary

Default
cpu,memory
switch_user

Whether to run tasks as the user who submitted them rather than the user running the slave

Default
false
user

User which will own the Apache Mesos Slave services

Default
root

zk_state

Path in ZooKeeper for storing Apache Mesos state

Default
mesos

zookeeper

client_port

Port at which the clients will connect to Apache Zookeeper

Default
2181

servers

List of all Apache Zookeeper server host IP/hostnames

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/mesos-slave/ directory (learn more).

  • bin/job_properties.sh (from bin/job_properties.sh.erb)
  • bin/mesos_slave_ctl (from bin/mesos_slave_ctl.erb)
  • config/credentials (from config/credentials.erb)
  • config/logrotate.conf (from config/logrotate.conf.erb)
  • config/mesos_slave_logrotate.cron (from config/mesos_slave_logrotate.cron.erb)
  • config/zoo_mesos.cfg (from config/zoo_mesos.cfg.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.