Skip to content

Instantly share code, notes, and snippets.

View loren's full-sized avatar

Loren Siebert loren

  • San Francisco
  • 17:33 (UTC -07:00)
View GitHub Profile
@loren
loren / stdout
Created March 20, 2017 17:40
Problem with master re-election under ZenDiscovery
[2017-03-20T17:16:35,559][TRACE][o.e.d.z.MasterFaultDetection] [master-0-node] [master] [{master-2-node}{3jmeBAXdQlG9McfMB3J3Xg}{Nnyc66TvQCKwyEHQahpwbg}{10.0.0.89}{10.0.0.89:9300}] transport disconnected
[2017-03-20T17:16:35,560][DEBUG][o.e.d.z.MasterFaultDetection] [master-0-node] [master] stopping fault detection against master [{master-2-node}{3jmeBAXdQlG9McfMB3J3Xg}{Nnyc66TvQCKwyEHQahpwbg}{10.0.0.89}{10.0.0.89:9300}], reason [master failure, transport disconnected]
[2017-03-20T17:16:35,562][INFO ][o.e.d.z.ZenDiscovery ] [master-0-node] master_left [{master-2-node}{3jmeBAXdQlG9McfMB3J3Xg}{Nnyc66TvQCKwyEHQahpwbg}{10.0.0.89}{10.0.0.89:9300}], reason [transport disconnected]
[2017-03-20T17:16:35,563][WARN ][o.e.d.z.ZenDiscovery ] [master-0-node] master left (reason = transport disconnected), current nodes: nodes:
{master-2-node}{3jmeBAXdQlG9McfMB3J3Xg}{Nnyc66TvQCKwyEHQahpwbg}{10.0.0.89}{10.0.0.89:9300}, master
{ingest-0-node}{KuOUQ9bIRDquPo9ksxCOsQ}{zcrLSPVFTF2Xt9_v5IK_1w}{10.0.1.11}{10.0.1.11:1
@pytest.mark.sanity
@pytest.mark.recovery
def test_change_constraint():
install.uninstall(PACKAGE_NAME)
options = {
"service": {
"spec_file": "examples/marathon_constraint.yml"
},
"hello": {
"count": num_private_agents,
@loren
loren / test_kibana.py
Created May 22, 2017 20:30
Once ELASTIC-84 is done
import pytest
import shakedown
import sdk_install as install
import sdk_tasks as tasks
import sdk_utils as utils
from tests.config import (
wait_for_expected_nodes_to_exist,
check_kibana_adminrouter_integration,
DEFAULT_TASK_COUNT,
package com.mesosphere.sdk.scheduler.plan.strategy;
import com.mesosphere.sdk.scheduler.plan.Interruptible;
import com.mesosphere.sdk.scheduler.plan.PodInstanceRequirement;
import com.mesosphere.sdk.scheduler.plan.Step;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;