Apache Mesos

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(RENDLER)
第21行: 第21行:
 
*通过 Web 界面查看集群状态;
 
*通过 Web 界面查看集群状态;
 
*新版本将支持更多功能。
 
*新版本将支持更多功能。
 +
 +
==生态==
 +
[[Mesos ecosystem]]
  
 
==指南==
 
==指南==
第41行: 第44行:
 
  $ cd hostfiles
 
  $ cd hostfiles
 
  $ bin/make-pdf
 
  $ bin/make-pdf
 
==Debian==
 
*[https://github.com/mesosphere/mesos-deb-packaging Mesos Debian packaging]
 
 
==语言/软件==
 
 
===[[Scala]]===
 
*[https://github.com/nokia/mesos-scala-api Scala API for Mesos]
 
*[[Marathon]]容器管理器
 
*[https://github.com/magneticio/vamp Vamp(Very Awesome Microservices Platform)]
 
*[https://github.com/mesosphere/chaos Chaos] A lightweight framework for writing [[REST]] services in Scala.
 
 
===[[Python]]===
 
[https://docs.mesosphere.com/1.10/gui/dashboard/ DC/OS Dashboard]
 
 
===[[Erlang]]===
 
*[https://github.com/mdevilliers/erlang-mesos erlang-mesos]
 
*[https://github.com/basho-labs/mesos-erlang Mesos Erlang library]
 
 
===[[Akka]]===
 
*[https://github.com/drexin/akka-mesos akka-mesos] Non-blocking driver for Apache Mesos based on Akka.
 
 
===Redis===
 
*[https://github.com/mesos/mr-redis Redis on Mesos]
 
 
===RabbitMQ===
 
*[https://github.com/alenkacz/marathon-rabbitmq-autoscale marathon-rabbitmq-autoscale]
 
*[https://github.com/ekesken/docker-rabbitmq docker-rabbitmq]
 
 
===Kafka===
 
*[https://github.com/mesos/kafka Kafka on Mesos]
 
*[https://github.com/mesosphere/universe/tree/version-3.x/repo/packages/K/kafka Kafka package] [https://github.com/mesosphere/universe/tree/version-3.x/repo/packages/K/kafka-manager/0 Kafka-manager package]
 
 
===Elasticsearch===
 
*[https://github.com/mesos/elasticsearch Elasticsearch on Mesos]
 
 
===Spark===
 
*[https://docs.mesosphere.com/services/spark/ DC/OS Apache Spark]
 
*[https://github.com/mesos/spark Spark on Mesos]
 
*[http://docs.huihoo.com/apache/mesos/Running-Apache-Spark-on-Mesos.pdf Running Apache Spark on Mesos]
 
*[[Apache Zeppelin]] [https://docs.mesosphere.com/1.10/tutorials/iot_pipeline/ Deploying a Load-Balanced Data Pipeline]
 
 
===Storm===
 
*[https://github.com/mesos/storm Storm on Mesos]
 
 
===Hadoop===
 
*[https://github.com/mesos/hadoop Hadoop on Mesos]
 
*[http://myriad.incubator.apache.org/ YARN on Mesos]
 
 
===Cassandra===
 
*[https://mesosphere.github.io/cassandra-mesos/ Cassandra on Mesos]
 
*[https://docs.mesosphere.com/services/cassandra/ DC/OS Apache Cassandra]
 
*[https://docs.mesosphere.com/1.7/usage/tutorials/cassandra/ How to use Apache Cassandra]
 
*[https://github.com/mesosphere/universe/tree/version-3.x/repo/packages/C/cassandra Cassandra package]
 
 
===Jenkins===
 
*[https://github.com/jenkinsci/mesos-plugin Jenkins on Mesos]
 
*[https://docs.mesosphere.com/1.10/tutorials/deploy-on-marathon/ Deploying Marathon Apps with Jenkins]
 
*[https://github.com/mesosphere/universe/tree/version-3.x/repo/packages/J/jenkins Jenkins package]
 
 
===[[Gitlab]]===
 
*[https://github.com/mesosphere/universe/tree/version-3.x/repo/packages/G/gitlab Gitlab package]
 
 
===VM===
 
*[http://www.cnblogs.com/nongchaoer/p/6410923.html 使用 Mesos 管理虚拟机]
 
 
===Marathon===
 
[[Marathon]]容器部署管理,支持[[Docker]]。
 
*[https://github.com/mesosphere/marathon Marathon on Mesos]
 
*[https://docs.mesosphere.com/1.7/usage/service-discovery/marathon-lb/ Marathon-LB] is based on [[HAProxy]], a rapid proxy and load balancer.[https://github.com/mesosphere/universe/tree/version-3.x/repo/packages/M/marathon-lb Marathon-LB package]
 
*[https://segmentfault.com/a/1190000006141890 Mesos大神Tim实录分享 | 解读Mesos 1.0 + 更长久的Mesos Containerizer]
 
 
===Kubernetes===
 
*[https://kubernetes.io/docs/getting-started-guides/mesos/ Kubernetes on Mesos]
 
*[https://github.com/mesosphere/dcos-kubernetes-quickstart Kubernetes on DC/OS]
 
 
===Chronos===
 
*[https://github.com/mesos/chronos Chronos on Mesos]
 
 
===Singularity===
 
*[https://github.com/HubSpot/Singularity Singularity on Mesos]
 
 
===Aurora===
 
[[Apache Aurora]]是一个Mesos框架,管理长期运行的服务和任务计划。
 
 
===RENDLER===
 
*[https://github.com/mesosphere/RENDLER RENDLER] [[web crawler]]
 
 
===[[Ceph]]===
 
*[https://github.com/Intel-bigdata/ceph-mesos Ceph on Mesos]
 
*[https://www.sdnlab.com/16755.html 基于Docker、Mesos、Ceph全新技术栈的三地三中心容灾体系之大二层网络]
 
 
===[[Prometheus]]===
 
[https://github.com/mesosphere/mesos_exporter Prometheus Mesos Exporter]
 
 
==人工智能==
 
*[https://mesosphere.com/blog/tensorflow-gpu-support-deep-learning/ Distributed TensorFlow on Any Infrastructure with Mesosphere DC/OS]
 
*[https://mesosphere.com/blog/deep-learning-pytorch-gpus/ Deep Learning with PyTorch and GPUs on DC/OS]
 
*[https://github.com/douban/tfmesos TFMesos]
 
*[[Apache SINGA]] on Mesos
 
  
 
==发行版==
 
==发行版==

2018年1月26日 (五) 02:32的版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Apache Mesos Thanks, Wikipedia.

Apache Mesos 是一个分布式、集群管理系统和框架,被称为是分布式系统的内核。

目录

新闻

简介

Mesos是分布式操作系统内核,Mesos是以与Linux内核同样的原则而创建的,不同点仅仅是在于抽象的层面。Mesos内核运行在每一个机器上,同时通过 API 为各种应用提供跨数据中心和云的资源管理调度能力。这些应用包括HadoopSparkKafkaElasticsearch。还可配合框架 Marathon 来管理大规模的Docker等容器化应用。

Mesos特性:

  • 可扩展到10000个节点;
  • 使用 ZooKeeper 实现 Master 和 Slave 的容错;
  • 支持 Docker 容器;
  • 使用 Linux 容器实现本地任务隔离;
  • 多资源调度能力(内存,CPU、磁盘、端口);
  • 提供 JavaPythonC++等多种语言 APIs;
  • 通过 Web 界面查看集群状态;
  • 新版本将支持更多功能。

生态

Mesos ecosystem

指南

OS X

brew install mesos

演示

安装一个 mesos-demo 虚拟机

$ wget http://downloads.mesosphere.io/demo/mesos.box  // 注: 此文件有2.8G
$ vagrant box add --name mesos-demo mesos.box
$ git clone https://github.com/mesosphere/RENDLER.git
$ cd RENDLER
$ vagrant up
http://10.141.141.10:5050/ // Mesos
http://10.141.141.10:8080 // Marathon
$ vagrant ssh
$ cd hostfiles/python
$ python rendler.py http://mesosphere.io 127.0.1.1:5050 42
<Ctrl+C> to stop...
$ cd hostfiles
$ bin/make-pdf

发行版

DC/OS指南

DC/OS 介绍

安装

本地安装DC/OS集群

vagrant plugin install vagrant-hostmanager
git clone https://github.com/dcos/dcos-vagrant
cd dcos-vagrant
cp VagrantConfig-1m-1a-1p.yaml VagrantConfig.yaml
vagrant up 或 vagrant up --debug

/etc/hosts

192.168.65.90 m1.dcos
192.168.65.111 a1.dcos
192.168.65.60 p1.dcos
192.168.65.50 boot.dcos
ssh [email protected]
http://m1.dcos/
ci/dcos-install-cli.sh

常见问题,boot超时,调整config.vm.boot_timeout数值,修改Vagrantfile文件。

 Vagrant.configure("2") do |config|
 config.vm.boot_timeout = 600

An error occurred in the underlying SSH library that Vagrant uses.The error message is shown below. In many cases, errors from this library are caused by ssh-agent issues. Try disabling your SSH agent or removing some keys and try again.

升级VirtualBox到5.1.x以上,然后

vagrant destroy  
vagrant up

VirtualBox: mount.vboxsf: mounting failed with the error: No such device

vagrant plugin install vagrant-vbguest
vagrant vbguest

[boot] GuestAdditions versions on your host (5.1.30) and guest (5.1.18) do not match.

vagrant plugin install vagrant-vbguest 或 vagrant vbguest --do install
vagrant box update

访问master IPs的Private SSH Key在/Users/huihoo/.vagrant.d/insecure_private_key 或 dcos-vagrant/.vagrant/dcos/private_key_vagrant

cp <path-to-key> genconf/ssh_key && chmod 0600 genconf/ssh_key

运行 sudo bash dcos_generate_config.sh --postflight 出现的错误:detect_ip returned stderr: Device "eth0" does not exist

CentOS 7.x系统中网卡命名规则被重新定义,可能会是”enp0s8”等,CentOS下找不到eth0设备的解决方法

cd /etc/sysconfig/network-scripts/
sudo touch ifcfg-eth0 样本
NAME=eth0
DEVICE=eth0
IPADDR=192.168.65.111
NETMASK=255.255.255.0
NETWORK=192.168.65.0
GATEWAY=192.168.65.1
BROADCAST=192.168.65.255
ONBOOT=yes
USERCTL=yes
BOOTPROTO=static
HWADDR=08:00:27:c1:f9:cc

Unable to login to your DC/OS cluster. Clusters must be connected to the internet.

Examples

DC/OS examples

命令行

$ dcos marathon app list
$ docker images
$ docker run mesosphere/mesos_exporter -master http://localhost:5050
$ docker run mesosphere/mesos_exporter -slave http://localhost:5051

Universe

安装、使用Mesosphere Universe包仓库。

构建本地Universe

$ wget https://downloads.mesosphere.com/universe/public/local-universe.tar.gz // 有9.1G
$ docker load < local-universe.tar.gz
...
$ dcos package repo add local-universe http://m1.dcos:8082/repo 
...

项目

Mesos ecosystem

文档

用户

图集

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱