Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

mesos (16) Versions 1.0.5

Installs/Configures Apache Mesos

Policyfile
Berkshelf
Knife
cookbook 'mesos', '= 1.0.5', :supermarket
cookbook 'mesos', '= 1.0.5'
knife supermarket install mesos
knife supermarket download mesos
README
Dependencies
Quality -%

Mesos Cookbook

Build Status

Description

Application cookbook for installing the Apache Mesos cluster manager.
Mesos provides efficient resource isolation and sharing across distributed
applications, or frameworks. This cookbook installs Mesos via packages
provided by Mesosphere.

Requirements

Chef 11.4.0+

This cookbook assumes you will be running a ZooKeeper ensemble for production
use of Mesos.

The following cookbooks are dependencies:

  • apt
  • java
  • zookeeper (used for discovering ZooKeeper ensembles via Netflix Exhibitor)
  • docker

Platform:

Tested on

  • Ubuntu 12.04
  • Ubuntu 13.04
  • Amazon Linux 2013/09
  • CentOS 6

Attributes

  • node['mesos']['version'] - Mesosphere Mesos package version. Default: '0.15.0'.
  • node['mesos']['cluster_name'] - Human readable name for the cluster, displayed in the webui. Default: 'MyMesosCluster'.
  • node['mesos']['port'] - Port to listen on. Default: 5050.
  • node['mesos']['logs_dir'] - Location to put log files. Default: '/var/log/mesos'.
  • node['mesos']['work_dir'] - Where to place framework work directories. Default: '/tmp/mesos'
  • node['mesos']['isolation_type'] - Isolation mechanism, may be one of: process, cgroups. Default: 'process'.
  • node['mesos']['zookeeper_server_list'] - List of ZooKeeper hostnames or IP addresses. Default: [].
  • node['mesos']['zookeeper_port'] - ZooKeeper port. Default: 2181.
  • node['mesos']['zookeeper_path'] - ZooKeeper path. Default: 'mesos'.
  • node['mesos']['zookeeper_exhibitor_discovery'] - Flag to enable ZooKeeper ensemble discovery via Netflix Exhibitor. Default: false.
  • node['mesos']['zookeeper_exhibitor_url'] - Netflix Exhibitor ZooKeeper ensemble url.
  • node['mesos']['set_ec2_hostname'] - If true and running in ec2, set hostname to public dns name. Default: true.
  • node['mesos']['python_egg'] - URL of mesos python egg to download
  • node['mesos']['slave']['checkpoint'] - Enable slave recovery. Default: 'true'.
  • node['mesos']['slave']['strict'] - If true, any recovery error is fatal. Default: 'false'.
  • node['mesos']['slave']['recover'] - Whether to recover status updates and reconnect with old executors. Default: 'reconnect'

Recipes

default

The default mesos recipe will run mesos::install.

install

The install recipe pulls down the specified version of the mesosphere mesos
package and installs it. It also configures to stop both mesos-master and
mesos-slave init files so that they don't automatically start on server
restart.

master

The master recipe runs mesos::install as well as creating several
mesos-master configuration files that are used at startup. This recipe also
uses the zookeeper attributes and/or exhibitor attributes to configure the
mesos-master using zookeeper. Lastly it sets the mesos-master init config to
'start' so that mesos-master is started on server restart.

slave

The slave recipe runs mesos::install as well as creating several
mesos-slave configuration files that are used at startup. This recipe also
uses the zookeeper attributes and/or exhibitor attributes to configure the
mesos-slave using zookeeper. Lastly it sets the mesos-slave init config to
'start' so that mesos-slave is started on server restart.

docker

The docker recipe installs docker via Brian Flad's docker cookbook as well
as Jason Dusek's mesos-docker script as a mesos executor. After running
this recipe on a mesos slave you should be able to run the mesos-docker
examples listed in Jason Dusek's docker on mesos blog post.

Usage

Here is a sample role for configuring a Mesos master in a ZooKeeper backed
production mode.

chef_type:           role
default_attributes:
description:
env_run_lists:
json_class:          Chef::Role
name:                mesos_master
override_attributes:
  mesos:
    version: 0.15.0
    cluster_name: mesos-sandbox
    zookeeper_server_list: [ '203.0.113.2', '203.0.113.3', '203.0.113.4' ]
    zookeeper_port: 2181
    zookeeper_path: 'mesos-sandbox'
run_list:
  recipe[mesos::master]

Here is a sample role for creating a Mesos slave node with a seperate ZooKeeper
ensemble dynamically discovered via Netflix Exhibitor:
YAML
chef_type: role
default_attributes:
description:
env_run_lists:
json_class: Chef::Role
name: mesos_slave
override_attributes:
mesos:
version: 0.15.0
cluster_name: mesos-sandbox
zookeeper_path: 'mesos'
zookeeper_exhibitor_discovery: true
zookeeper_exhibitor_url: 'http://zk-exhibitor-endpoint.example.com:8080'
run_list:
recipe[mesos::slave]

Here is a sample role for creating a Mesos slave node running the experimental
docker executor. This node is also dynamically configured via zookeeper and
exhibitor. (Note: this recipe only works with Ubuntu 13.04 as of now.)
YAML
chef_type: role
default_attributes:
description:
env_run_lists:
json_class: Chef::Role
name: mesos_slave_docker
override_attributes:
mesos:
version: 0.15.0
cluster_name: mesos-sandbox
zookeeper_path: 'mesos'
zookeeper_exhibitor_discovery: true
zookeeper_exhibitor_url: 'http://zk-exhibitor-endpoint.example.com:8080'
run_list:
recipe[mesos::docker]

Development

Please see the [Contributing](CONTRIBUTING.md) Guidelines.

License and Author

Copyright 2014 Medidata Solutions Worldwide

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

No quality metric results found