Skip to content

Instantly share code, notes, and snippets.

{
"container": {
"type": "DOCKER",
"docker": {
"image": "mesosphere/marathon",
"network": "HOST",
"forcePullImage": "false"
}
},
"id": "mom-alex-state-explosion-02-marathon",
@rukletsov
rukletsov / gist:a2dc6853d22a087f2194
Created April 24, 2015 13:41
IRC #mesos log 24.04.2015
[10:37:29] <Bateau_> so, i want to run updates on one slave. do i just run "stop mesos-slave" and then apply the updates? or do i need to do some other manual steps to migrate running instances to other slaves?
[10:38:50] tombar (~tombar@r167-57-14-114.dialup.adsl.anteldata.net.uy) joined the channel
[10:43:29] tombar (~tombar@r167-57-14-114.dialup.adsl.anteldata.net.uy) left IRC (Ping timeout: 265 seconds)
[10:45:50] everpeac1 (~everpeace@e0109-106-188-15-224.uqwimax.jp) joined the channel
[10:47:45] Disconnected
[10:56:19] rukletsov (~rukletsov@tmo-101-17.customers.d1-online.com) joined the channel
[10:56:19] Topic is Apache Mesos | http://mesos.apache.org | Logs: http://wilderness.apache.org/channels/
[10:56:19] Set by dlester on 13 Feb 2014 19:29:46 CET
[10:56:22] -ChanServ- This channel is publicly logged.
[10:56:27] Mode is +cnt
@rukletsov
rukletsov / quota_handler.cpp
Created August 5, 2015 14:43
Stages in request handlers
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
@rukletsov
rukletsov / events.txt
Created August 5, 2015 19:37
Mesos events for scale test
task_id launched from slave from master
sleep.85aac838-3b81-11e5-b4d1-02dc296a86a5 14:51:58.521535 14:52:07.358990 14:52:07.322428
sleep.85b21b39-3b81-11e5-b4d1-02dc296a86a5 14:51:58.521817 14:52:06.730839 14:52:06.692287
sleep.85b2906a-3b81-11e5-b4d1-02dc296a86a5 14:51:58.522081 14:52:07.044289 14:52:07.005450
sleep.85b2de8b-3b81-11e5-b4d1-02dc296a86a5 14:51:58.522362 14:52:09.336323 14:52:09.298487
sleep.85b353bc-3b81-11e5-b4d1-02dc296a86a5 14:51:58.522696 14:52:08.017459 14:52:07.979398
sleep.85b3c8ed-3b81-11e5-b4d1-02dc296a86a5 14:51:58.522982 14:52:08.879017 14:52:08.841212
sleep.85b43e1e-3b81-11e5-b4d1-02dc296a86a5 14:51:58.523293 14:52:08.954941 14:52:08.916658
sleep.85b48c3f-3b81-11e5-b4d1-02dc296a86a5 14:51:58.523602 14:52:09.339210 14:52:09.304236
sleep.85b50170-3b81-11e5-b4d1-02dc296a86a5 14:51:58.523915 14:52:08.303628 14:52:08.265440
@rukletsov
rukletsov / mesos-events-run2.txt
Created August 6, 2015 12:45
Mesos events for task launch requests. Note the delta between a task arrives to a slave and the TASK_RUNNING updates is generated.
task_id to master to slave from slave from master
sleep.909d79cc-3c14-11e5-b4d1-02dc296a86a5 08:24:32.835054 08:24:32.835737 08:24:33.858212 08:24:33.868335
sleep.909dc7ed-3c14-11e5-b4d1-02dc296a86a5 08:24:32.835434 08:24:32.836601 08:24:33.554606 08:24:33.556511
sleep.909e160e-3c14-11e5-b4d1-02dc296a86a5 08:24:32.835783 08:24:32.836854 08:24:33.638943 08:24:33.639623
sleep.909e642f-3c14-11e5-b4d1-02dc296a86a5 08:24:32.836145 08:24:32.837138 08:24:33.720504 08:24:33.721006
sleep.909e8b40-3c14-11e5-b4d1-02dc296a86a5 08:24:32.836571 08:24:32.846952 08:24:33.563817 08:24:33.564216
sleep.909ed961-3c14-11e5-b4d1-02dc296a86a5 08:24:32.836935 08:24:32.864303 08:24:33.870812 08:24:33.872100
sleep.909f2782-3c14-11e5-b4d1-02dc296a86a5 08:24:32.837352 08:24:32.882287 08:24:33.961563 08:24:33.962138
sleep.909f75a3-3c14-11e5-b4d1-02dc296a86a5 08:24:32.837755 08:24:32.882725
@rukletsov
rukletsov / mesos-master-crash-run3.log
Created August 6, 2015 13:52
Leading master crashes and losing its leadership.
core@ip-10-0-6-51 ~ $ journalctl -u mesos-master | head -n 451 | tail -n 250
Aug 06 12:29:21 ip-10-0-6-51.eu-central-1.compute.internal mesos-master[1785]: I0806 12:29:21.534900 1785 master.cpp:402] Master allowing unauthenticated slaves to register
Aug 06 12:29:21 ip-10-0-6-51.eu-central-1.compute.internal mesos-master[1785]: I0806 12:29:21.540319 1794 master.cpp:1298] Successfully attached file '/var/log/mesos/mesos-master.INFO'
Aug 06 12:29:21 ip-10-0-6-51.eu-central-1.compute.internal mesos-master[1785]: I0806 12:29:21.540338 1795 contender.cpp:131] Joining the ZK group
Aug 06 12:29:21 ip-10-0-6-51.eu-central-1.compute.internal mesos-master[1785]: I0806 12:29:21.551249 1794 contender.cpp:247] New candidate (id='1') has entered the contest for leadership
Aug 06 12:29:21 ip-10-0-6-51.eu-central-1.compute.internal mesos-master[1785]: I0806 12:29:21.551951 1791 detector.cpp:138] Detected a new leader: (id='1')
Aug 06 12:29:21 ip-10-0-6-51.eu-central-1.compute.internal mesos-master[1785]: I0806 12:29:21.5
@rukletsov
rukletsov / mesos-slave-crash-run3.log
Created August 6, 2015 14:35
Mesos slave crashes after (or during) recovery.
Aug 06 13:08:09 ip-10-0-1-131.eu-central-1.compute.internal mesos-slave[27983]: I0806 13:08:09.891953 27988 status_update_manager.cpp:205] Recovering executor 'sleep.05b309d1-3c39-11e5-9b33-02740c52824d' of framework 20150806-122923-839254026-5050-1959-0001
Aug 06 13:08:09 ip-10-0-1-131.eu-central-1.compute.internal mesos-slave[27983]: W0806 13:08:09.892014 27988 status_update_manager.cpp:244] No updates found for task sleep.05b309d1-3c39-11e5-9b33-02740c52824d of framework 20150806-122923-839254026-5050-1959-0001
Aug 06 13:08:09 ip-10-0-1-131.eu-central-1.compute.internal mesos-slave[27983]: I0806 13:08:09.892077 27988 status_update_manager.cpp:205] Recovering executor 'sleep.fa217576-3c38-11e5-9b33-02740c52824d' of framework 20150806-122923-839254026-5050-1959-0001
Aug 06 13:08:09 ip-10-0-1-131.eu-central-1.compute.internal mesos-slave[27983]: W0806 13:08:09.892108 27988 status_update_manager.cpp:244] No updates found for task sleep.fa217576-3c38-11e5-9b33-02740c52824d of framework 20150806-122923-839254026
core@ip-10-0-1-131 /var/log/mesos $ grep "Got assigned" mesos-slave.ip-10-0-1-131.eu-central-1.compute.internal.invalid-user.log.INFO.20150806-123029.1299 | wc -l
400
@rukletsov
rukletsov / ReserveThenUnreserve.cpp
Created August 31, 2015 15:54
ReservationTest.ReserveThenUnreserve with bookkeeping check.
// This tests that a framework can send back a Reserve offer operation
// as a response to an offer, which updates the resources in the
// allocator and results in the reserved resources being reoffered to
// the framework. The framework then sends back an Unreserved offer
// operation to unreserve the reserved resources. Finally, We test
// that the framework receives the unreserved resources.
TEST_F(ReservationTest, ReserveThenUnreserve)
{
FrameworkInfo frameworkInfo = DEFAULT_FRAMEWORK_INFO;
frameworkInfo.set_role("role");
title layout
Apache Mesos - Release Guide
documentation

Release Guide

This guide describes the process of doing an official release of Mesos.