This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main.main | |
import io.finch._ | |
import com.twitter.finagle.Http | |
import com.twitter.finagle.http.Response | |
import com.twitter.util.Future | |
import io.circe._ | |
import io.circe.syntax._ | |
import io.finch.circe._ | |
object Main { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./bin/start --master local --zk zk://localhost:2181/marathon | |
MESOS_NATIVE_JAVA_LIBRARY is not set. Searching in /usr/lib /usr/local/lib. | |
MESOS_NATIVE_LIBRARY, MESOS_NATIVE_JAVA_LIBRARY set to '/usr/lib/libmesos.so' | |
[2016-08-22 13:25:09,347] INFO Starting Marathon 1.3.0-RC4/unknown with --master local --zk zk://localhost:2181/marathon (mesosphere.marathon.Main$:main) | |
[2016-08-22 13:25:09,781] WARN Method [public javax.ws.rs.core.Response mesosphere.marathon.api.MarathonExceptionMapper.toResponse(java.lang.Throwable)] is synthetic and is being intercepted by [mesosphere.marathon.DebugModule$MetricsBehavior@70e3f36f]. This could indicate a bug. The method may be intercepted twice, or may not be intercepted at all. (com.google.inject.internal.ProxyFactory:main) | |
[2016-08-22 13:25:09,990] INFO Logging initialized @2115ms (org.eclipse.jetty.util.log:main) | |
[2016-08-22 13:25:10,445] INFO Slf4jLogger started (akka.event.slf4j.Slf4jLogger:marathon-akka.actor.default-dispatcher-3) | |
[2016-08-22 13:25:10,628] INFO Start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MESOS_NATIVE_JAVA_LIBRARY is not set. Searching in /usr/lib /usr/local/lib. | |
MESOS_NATIVE_LIBRARY, MESOS_NATIVE_JAVA_LIBRARY set to '/usr/lib/libmesos.so' | |
[2016-08-22 14:24:16,689] INFO Starting Marathon 1.4.0-SNAPSHOT/547fdeb8612cd0c5b1b44586ac612ddbb8fa9060 with --master local --zk zk://localhost:2181/marathon (mesosphere.marathon.Main$:main) | |
[2016-08-22 14:24:17,131] WARN Method [public javax.ws.rs.core.Response mesosphere.marathon.api.MarathonExceptionMapper.toResponse(java.lang.Throwable)] is synthetic and is being intercepted by [mesosphere.marathon.DebugModule$MetricsBehavior@61f3fbb8]. This could indicate a bug. The method may be intercepted twice, or may not be intercepted at all. (com.google.inject.internal.ProxyFactory:main) | |
[2016-08-22 14:24:17,373] INFO Logging initialized @2309ms (org.eclipse.jetty.util.log:main) | |
[2016-08-22 14:24:17,845] INFO Slf4jLogger started (akka.event.slf4j.Slf4jLogger:marathon-akka.actor.default-dispatcher-5) | |
[2016-08-22 14:24:18,022] WARN session timeout [10000] is less |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ayakovenko-ubuntu:/home/ayakovenko/Public/minuteman# ./rebar3 shell --config app.config.dev | |
===> Verifying dependencies... | |
===> Compiling minuteman | |
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:0] [kernel-poll:false] | |
Eshell V8.0 (abort with ^G) | |
1> ===> The rebar3 shell is a development tool; to deploy applications in production, consider using releases (http://www.rebar3.org/v3.0/docs/releases) | |
15:47:10.536 [debug] Lager installed handler error_logger_lager_h into error_logger [322/500] | |
15:47:10.553 [debug] Supervisor gr_param_sup started gr_param:start_link(gr_lager_default_tracer_params) at pid <0.473.0> | |
15:47:10.553 [debug] Supervisor gr_counter_sup started gr_counter:start_link(gr_lager_default_tracer_counters) at pid <0.474.0> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{auto_skipped, | |
{failed, | |
{minuteman_ct_latency_observer_SUITE,init_per_testcase, | |
{{badmatch, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ayakovenko-ubuntu:minuteman root$ make ct | |
./rebar3 as test ct --sname=me@localhost | |
===> Verifying dependencies... | |
===> Compiling minuteman | |
===> Running Common Test suites... | |
---------------------------------------------------- | |
2016-09-13 11:22:25.913 | |
ct_slave:start returned 'minuteman_ct_latency_observer_SUITE_TEST@ayakovenko-ubuntu' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ py.test -vv -s test_network_api_service.py | |
161017-18:52:47.748 dcostests.dcos _get_hostname() INFO: Test if host `master.mesos` can be resolved. | |
161017-18:52:47.750 dcostests.dcos _make_ca_crt_file() INFO: Attempt to get CA bundle via CA HTTP API | |
/opt/mesosphere/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html | |
InsecureRequestWarning) | |
161017-18:52:48.193 root _wait_for_leader_election() INFO: leader.mesos dns entry is UP! | |
161017-18:52:48.223 root _wait_for_Marathon_up() INFO: Marathon is probably up | |
161017-18:52:48.242 root _wait_for_slaves_to_join() INFO: Sufficient (2 >= ['10.0.7.227', '10.0.0.66']) number of slaves have joined the cluster | |
161017-18:52:48.255 root _wait_for_DCOS_history_up() INFO: DC/OS History is probably up | |
161017-18:52:48.255 root _wait_for_srouter_slaves_endpoints() INFO: Fetching |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ./minuteman/bin/minuteman-env foreground | |
Exec: /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/erts-8.1/bin/erlexec -noshell -noinput +Bd -boot /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/releases/0.0.1/minuteman -mode embedded -config /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/releases/0.0.1/sys.config -boot_var ERTS_LIB_DIR /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/erts-8.1/../lib -args_file /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman/releases/0.0.1/vm.args -- foreground | |
Root: /opt/mesosphere/packages/minuteman--f27eeb8cd1177cb23c011c59940154e695461b4f/minuteman | |
Setup running ... | |
Directories verified. Res = {[ok],[]} | |
Setup finished processing hooks ... | |
20:23:11.347 [warning] Received unknown info: {'EXIT',<0.865.0>,shutdown}, in state: {state,<0.810.0>,#Ref<0.0.1.459>,[],[]} | |
20:23:18.377 [w |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use result::{Result, Error}; | |
use core::marker::PhantomData; | |
pub trait Key: Eq { | |
fn start(&self) -> usize; | |
fn unused(&self) -> bool; | |
} | |
pub trait Val<T: Key>: Sized + Clone { | |
fn key(&self) -> &T; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export RUST_LOG=state=TRACE | |
export RUST_BACKTRACE=1 | |
all: test | |
build: | |
cargo build 2>&1 | head -n 30 | |
loop: | |
while true; do fswatch -1 -r src; make; done | |