楼主: Reader's
1773 11

【独家发布】Apache Mesos Cookbook [推广有奖]

  • 0关注
  • 0粉丝

已卖:1521份资源

博士生

59%

还不是VIP/贵宾

-

TA的文库  其他...

可解釋的機器學習

Operations Research(运筹学)

国际金融(Finance)

威望
0
论坛币
41198 个
通用积分
2.6173
学术水平
7 点
热心指数
5 点
信用等级
5 点
经验
2201 点
帖子
198
精华
1
在线时间
36 小时
注册时间
2015-6-1
最后登录
2024-3-3

楼主
Reader's 发表于 2017-8-13 01:20:13 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
  1. Apache Mesos Cookbook
  2. By 作者: David Blomquist – Tomasz Janiszewski

  3. ISBN-10 书号: 178588462X

  4. ISBN-13 书号: 9781785884627

  5. Release 出版日期: 2017-08-04

  6. pages 页数: (247)

  7. List Price: $34.99
复制代码

本帖隐藏的内容

Apache Mesos Cookbook.pdf (2.5 MB, 需要: 5 个论坛币)

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Cookbook apache mesos Book Cook

本帖被以下文库推荐

沙发
军旗飞扬(未真实交易用户) 在职认证  发表于 2017-8-13 06:25:56
谢谢楼主分享!

藤椅
Lisrelchen(真实交易用户) 发表于 2017-8-14 06:40:13
【独家发布】Apache Mesos Cookbook
1 个回复 - 141 次查看**** 本内容被作者隐藏 ****2017-8-13 01:20 - Reader's - winbugs专版

Apache Mesos Essentials
8 个回复 - 692 次查看2015-9-2 10:02 - Nicolle - winbugs专版

Mesos in Action
4 个回复 - 210 次查看**** 本内容被作者隐藏 ****2017-1-23 08:15 - Lisrelchen - winbugs专版

Building Applications on Mesos
3 个回复 - 214 次查看**** 本内容被作者隐藏 **** **** 本内容被作者隐藏 ****2017-1-23 08:30 - Lisrelchen - winbugs专版

Big Data SMACK: A Guide to Apache Spark, Mesos, Akka, Cassandra, and Kafka
1 个回复 - 474 次查看内容隐藏需要,请点击进去查看2016-8-21 11:53 - Nicolle - Forum

[Lecture Notes]Datacenter Management with Apache Mesos
2 个回复 - 1193 次查看**** 本内容被作者隐藏 ****2015-4-3 22:25 - Lisrelchen - HLM专版(试行)

求文献Communities and beyond: Mesoscopic analysis of a large social network with
4 个回复 - 437 次查看内容隐藏需要,请点击进去查看2015-1-20 09:57 - hyjkimi - 求助成功区


板凳
Lisrelchen(真实交易用户) 发表于 2017-8-14 06:47:44

Logging and debugging

  1. How to do it...
  2. When Mesos is installed from pre-built packages, the logs are by default
  3. stored in /var/log/mesos/. When installing from a source build, storing logs is
  4. disabled by default. To change the log store location, we need to edit
  5. /etc/default/mesos and set the LOGS variable to the desired destination. For
  6. some reason, mesos-init-wrapper does not transfer the contents of
  7. /etc/mesos/log_dir to the --log_dir flag. That's why we need to set the log's
  8. destination in the environment variable.
  9. Remember that only Mesos logs will be stored there. Logs from third-party
  10. applications (for example, ZooKeeper) will still be sent to STDERR.
  11. Changing the default logging level can be done in one of two ways: by
  12. specifying the --logging_level flag or by sending a request and changing the
  13. logging level at runtime for a specific period of time.
  14. For example, to change the logging level to INFO, just put it in the following
  15. code:
  16. /etc/mesos/logging_level
  17. echo INFO > /etc/mesos/logging_level
  18. The possible levels are INFO, WARNING, and ERROR.
  19. For example, to change the logging level to the most verbose for 15 minutes
  20. for debug purposes, we need to send the following request to the
  21. logging/toggle endpoint:
  22. curl -v -X POST localhost:5050/logging/toggle?level=3\&duration=15mins
复制代码

报纸
Lisrelchen(真实交易用户) 发表于 2017-8-14 06:48:34

Monitoring

  1. How to do it...
  2. Monitoring is enabled by default. Mesos does not provide any way to
  3. automatically push metrics to the registry. However, it exposes them as a
  4. JSON that can be periodically pulled and saved into the metrics registry:
  5. 1. Install Diamond using following command:
  6. pip install diamond
  7. 2. If additional packages are required to install them, run:
  8. sudo apt-get install python-pip python-dev build-essential.
  9. pip (Pip Installs Packages) is a Python package manager
  10. used to install software written in Python.
  11. 3. Configure the metrics handler and interval. Open
  12. /etc/diamond/diamond.conf and ensure that there is a section for graphite
  13. configuration:
  14. [handler_graphite]
  15. class = handlers.GraphiteHandler
  16. host = <graphite.host>
  17. port = <graphite.port>
  18. Remember to replace graphite.host and graphite.port with
  19. real graphite details.
  20. 4. Enable the default Mesos Collector. Create configuration files diamondsetup
  21. -C MesosCollector. Check whether the configuration has proper
  22. values and edit them if needed. The configuration can be found in
  23. /etc/diamond/collectors/MesosCollector.conf. On master, this file should
  24. look like this:
  25. enabled = True
  26. host = localhost
  27. port = 5050
  28. Download from finelybook www.finelybook.com
  29. 112
复制代码

地板
Lisrelchen(真实交易用户) 发表于 2017-8-14 06:49:24

Setting attributes for agents

  1. How to do it...
  2. Let's assume our cluster contains agents with SSD and HDD drives. Disk
  3. resources will unify SSD and HDD, but from the user's perspective they are
  4. different and some tasks need to be run on SSD. We can label agents with the
  5. disk attributes hdd or ssd, depending on the disk type, hence allowing the user
  6. to decide which disk should be used for the job.
  7. To create an attribute, we need to place the file in /etc/mesos-slave/attributes.
  8. The following command will create this directory:
  9. mkdir -p /etc/mesos-slave/attributes
  10. The filename will be the attribute label and the content will be a value. To
  11. create the disk:ssd attribute, simply create a file with the following contents:
  12. echossd> /etc/mesos-slave/attributes/disk
复制代码

7
Lisrelchen(真实交易用户) 发表于 2017-8-14 06:50:35

Defining roles and resources

  1. How to do it...
  2. Roles are part of the resources definition. We define resources and roles for
  3. each agent. For example, we want to change the default port range to 51000-
  4. 52000 and the offered disk space to 4096 GB. To do this, we need to explicitly
  5. override the default values. You need to edit /etc/mesos-slave/resources and
  6. put the desired resources:
  7. echo 'disk(*):4096; ports(*):[51000-52000]'> /etc/mesos-slave/resources
  8. In a similar way, we can define other resources such as CPUs, memory, or
  9. GPUs just by adding the corresponding entry. The preceding configuration
  10. defines the default roles - (*).
  11. To assign the resource to a specific role, put the role name after the resource
  12. in brackets. For example, we want to run role development and test on one
  13. cluster. We want to distinguish ports offered to these roles. The development
  14. tasks will be run on ports 31000-32000 and be tested on 41000-42000. To do it, we
  15. define the following resources:
  16. echo 'ports(develop):[31000-32000]; ports(test):[41000-42000]'> /etc/mesos-slave/resources
  17. With multiple frameworks deployed on Mesos, there is a chance that some of
  18. them are more important than others and should receive resource offers more
  19. often. We can achieve this with weighted roles.
  20. Weights are configured with roles and mean what fraction of offers should be
  21. presented to frameworks with the given role. Offers will be presented
  22. proportionally more often to frameworks with higher weights. By default,
  23. each role has a weight of 1 but this could be changed using the Weights
  24. operator API.
复制代码

8
lianqu(未真实交易用户) 发表于 2017-8-15 09:28:40

9
sean_xrg(未真实交易用户) 发表于 2017-8-24 07:22:34
谢谢分享.

10
janne2011(未真实交易用户) 发表于 2017-9-2 15:22:29
ganxiefenxianga

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-10 23:16