Skip to content

Instantly share code, notes, and snippets.

@rodrickbrown
Last active May 27, 2016 12:50
Show Gist options
  • Select an option

  • Save rodrickbrown/33a0bae5a73d62a0722b21bb58b1f169 to your computer and use it in GitHub Desktop.

Select an option

Save rodrickbrown/33a0bae5a73d62a0722b21bb58b1f169 to your computer and use it in GitHub Desktop.
I0527 12:38:37.445116 51736 exec.cpp:143] Version: 0.28.1
I0527 12:38:37.447388 51749 exec.cpp:217] Executor registered on slave ed03b83f-1696-45ef-b0c9-6d4e0307b5bc-S16
Generating RSA private key, 2048 bit long modulus
..............................................+++
...............................+++
e is 65537 (0x10001)
Signature ok
subject=/CN=*
Getting Private key
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ACL_ONLY_WITH_PATH_AND_AUTH
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ACL_WITH_AUTH
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ROUTING_ONLY
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ROUTING_ONLY_WITH_PATH
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_ACL_WITH_AUTH
marathon_lb: setting default value for HAPROXY_BACKEND_REDIRECT_HTTP_TO_HTTPS_WITH_PATH
marathon_lb: setting default value for HAPROXY_BACKEND_HTTP_OPTIONS
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_AUTH_REQUEST_ONLY
marathon_lb: setting default value for HAPROXY_BACKEND_TCP_HEALTHCHECK_OPTIONS
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_AUTH_ACL_ONLY
marathon_lb: setting default value for HAPROXY_BACKEND_STICKY_OPTIONS
marathon_lb: setting default value for HAPROXY_USERLIST_HEAD
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ACL_WITH_PATH
marathon_lb: setting default value for HAPROXY_FRONTEND_BACKEND_GLUE
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ACL_WITH_AUTH_AND_PATH
marathon_lb: setting default value for HAPROXY_HTTP_BACKEND_PROXYPASS
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_ACL_ONLY_WITH_PATH
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ACL
marathon_lb: overriding HAPROXY_HEAD from templates/HAPROXY_HEAD
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_ROUTING_ONLY_WITH_PATH_AND_AUTH
marathon_lb: setting default value for HAPROXY_HTTP_BACKEND_REDIR
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_HEAD
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ACL_ONLY_WITH_PATH
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_HEAD
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_ACL_WITH_AUTH_AND_PATH
marathon_lb: setting default value for HAPROXY_BACKEND_HTTP_HEALTHCHECK_OPTIONS
marathon_lb: setting default value for HAPROXY_HTTP_BACKEND_REVPROXY
marathon_lb: setting default value for HAPROXY_BACKEND_HSTS_OPTIONS
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_APPID_ACL
marathon_lb: setting default value for HAPROXY_BACKEND_SERVER_OPTIONS
marathon_lb: setting default value for HAPROXY_BACKEND_HEAD
marathon_lb: setting default value for HAPROXY_BACKEND_SERVER_TCP_HEALTHCHECK_OPTIONS
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_ACL_WITH_PATH
marathon_lb: setting default value for HAPROXY_BACKEND_REDIRECT_HTTP_TO_HTTPS
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ACL_ONLY
marathon_lb: setting default value for HAPROXY_BACKEND_SERVER_HTTP_HEALTHCHECK_OPTIONS
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ROUTING_ONLY_WITH_PATH_AND_AUTH
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_APPID_HEAD
marathon_lb: setting default value for HAPROXY_HTTPS_FRONTEND_ACL
marathon_lb: setting default value for HAPROXY_HTTP_FRONTEND_ROUTING_ONLY_WITH_AUTH
marathon_lb: setting default value for HAPROXY_FRONTEND_HEAD
marathon_lb: starting event processor thread
marathon_lb: SSE Active, trying fetch events from http://master.mesos:8080/v2/events
marathon_lb: fetching apps
marathon_lb: GET http://master.mesos:8080/v2/apps?embed=apps.tasks
marathon_lb: got apps ['/staging/portal-rest-service', '/staging/originator-service', '/mesos/mesos-kafka-framework', '/qa/model-service', '/qa/trade-data-server', '/staging/account-service', '/qa/conflation-service', '/qa/analytics-service', '/mesos/spark-notebook', '/production/kafkadirectconsumer/hdfs-raw-data', '/staging/model-service', '/production/kafkadirectconsumer/es-note', '/production/model-service', '/production/portal-rest-service', '/staging/index-service', '/production/haproxy/marathon-lb', '/chris/analytics-service', '/production/kafkadirectconsumer/es-trades', '/production/account-service', '/production/analytics-service', '/production/kafkadirectconsumer/es-services', '/qa/originator-service', '/staging/conflation-service', '/mesos/spark-mesos-shuffle-service', '/production/originator-service', '/production/index-service', '/production/conflation-service', '/staging/analytics-service', '/qa/index-service', '/mesos/sparkr-mesos-shuffle-service', '/mesos/mesos-dns-service', '/production/kafkadirectconsumer/hdfs-log-aggregator']
marathon_lb: generating config
marathon_lb: configuring app /production/account-service
marathon_lb: frontend at *:10032 with backend production_account-service_10032
marathon_lb: adding virtual host for app with id /production/account-service
marathon_lb: backend server 172.1.121.79:31240 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31328 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/account-service
marathon_lb: frontend at *:10034 with backend production_account-service_10034
marathon_lb: backend server 172.1.121.79:31242 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31330 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/account-service
marathon_lb: frontend at *:31802 with backend production_account-service_31802
marathon_lb: backend server 172.1.121.79:31241 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31329 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/analytics-service
marathon_lb: frontend at *:10019 with backend production_analytics-service_10019
marathon_lb: adding virtual host for app with id /production/analytics-service
marathon_lb: backend server 172.1.122.83:31561 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31074 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/analytics-service
marathon_lb: frontend at *:10021 with backend production_analytics-service_10021
marathon_lb: backend server 172.1.122.83:31563 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31076 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/analytics-service
marathon_lb: frontend at *:31805 with backend production_analytics-service_31805
marathon_lb: backend server 172.1.122.83:31562 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31075 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/conflation-service
marathon_lb: frontend at *:10010 with backend production_conflation-service_10010
marathon_lb: adding virtual host for app with id /production/conflation-service
marathon_lb: backend server 172.1.122.83:31714 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31665 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/conflation-service
marathon_lb: frontend at *:10025 with backend production_conflation-service_10025
marathon_lb: backend server 172.1.122.83:31716 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31667 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/conflation-service
marathon_lb: frontend at *:31801 with backend production_conflation-service_31801
marathon_lb: backend server 172.1.122.83:31715 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31666 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/haproxy/marathon-lb
marathon_lb: frontend at *:10010 with backend production_haproxy_marathon-lb_10010
marathon_lb: backend server 172.1.34.13:31392 on prod-rstudio-1.aws.orchardplatform.com
marathon_lb: configuring app /production/index-service
marathon_lb: frontend at *:10029 with backend production_index-service_10029
marathon_lb: backend server 172.1.122.83:31593 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31572 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/index-service
marathon_lb: frontend at *:10031 with backend production_index-service_10031
marathon_lb: backend server 172.1.122.83:31595 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31574 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/index-service
marathon_lb: frontend at *:31803 with backend production_index-service_31803
marathon_lb: backend server 172.1.122.83:31594 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: backend server 172.1.4.180:31573 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/model-service
marathon_lb: frontend at *:10016 with backend production_model-service_10016
marathon_lb: adding virtual host for app with id /production/model-service
marathon_lb: backend server 172.1.121.79:31877 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31702 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/model-service
marathon_lb: frontend at *:10018 with backend production_model-service_10018
marathon_lb: backend server 172.1.121.79:31879 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31704 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/model-service
marathon_lb: frontend at *:31804 with backend production_model-service_31804
marathon_lb: backend server 172.1.121.79:31878 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31703 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/originator-service
marathon_lb: frontend at *:10022 with backend production_originator-service_10022
marathon_lb: adding virtual host for app with id /production/originator-service
marathon_lb: backend server 172.1.121.79:31726 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31129 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/originator-service
marathon_lb: frontend at *:10024 with backend production_originator-service_10024
marathon_lb: backend server 172.1.121.79:31728 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31131 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/originator-service
marathon_lb: frontend at *:31800 with backend production_originator-service_31800
marathon_lb: backend server 172.1.121.79:31727 on prod-mesos-s-10.aws.orchardplatform.com
marathon_lb: backend server 172.1.122.83:31130 on prod-mesos-s-11.aws.orchardplatform.com
marathon_lb: configuring app /production/portal-rest-service
marathon_lb: frontend at *:10026 with backend production_portal-rest-service_10026
marathon_lb: adding virtual host for app with id /production/portal-rest-service
marathon_lb: backend server 172.1.4.180:31446 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/portal-rest-service
marathon_lb: frontend at *:10028 with backend production_portal-rest-service_10028
marathon_lb: backend server 172.1.4.180:31448 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: configuring app /production/portal-rest-service
marathon_lb: frontend at *:31806 with backend production_portal-rest-service_31806
marathon_lb: backend server 172.1.4.180:31447 on prod-mesos-s-12.aws.orchardplatform.com
marathon_lb: reading running config from /marathon-lb/haproxy.cfg
marathon_lb: couldn't open config file for reading
marathon_lb: running config is different from generated config - reloading
marathon_lb: writing config to temp file /tmp/tmpab498n9a
marathon_lb: checking config with command: ['haproxy', '-f', '/tmp/tmpab498n9a', '-c']
marathon_lb: haproxy returned non-zero when checking config
marathon_lb: skipping reload: config not valid
marathon_lb: updating tasks finished, took 0.0733497142791748 seconds
marathon_lb: received event of type event_stream_attached
marathon_lb: condition wait expired
marathon_lb: fetching apps
marathon_lb: GET http://master.mesos:8080/v2/apps?embed=apps.tasks
marathon_lb: Unexpected error!
Traceback (most recent call last):
File "/marathon-lb/marathon_lb.py", line 1172, in do_reset
self.__apps = get_apps(self.__marathon)
File "/marathon-lb/marathon_lb.py", line 951, in get_apps
apps = marathon.list()
File "/marathon-lb/marathon_lb.py", line 201, in list
params={'embed': 'apps.tasks'})["apps"]
File "/marathon-lb/marathon_lb.py", line 188, in api_req
return self.api_req_raw(method, path, self.__auth, **kwargs).json()
File "/marathon-lb/marathon_lb.py", line 180, in api_req_raw
if 'message' in response.json():
File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 812, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
cat ../production/account-server.json
{
"id": "production/account-service",
"cmd": "env && /opt/orchard/production/account-server/bin/run_jar.sh",
"cpus": 1.0,
"mem": 4096,
"disk": 1000,
"user": "orchard",
"instances": 3,
"constraints": [
[
"hostname","UNIQUE"
],
[
"rack", "LIKE", "ms"
]
],
"requirePorts": false,
"portDefinitions": [
{ "port": 0, "protocol": "tcp", "name": "jmx" },
{ "port": 0, "protocol": "tcp", "name": "service" },
{ "port": 0, "protocol": "tcp", "name": "health" }
],
"labels": {
"HAPROXY_GROUP": "production",
"HAPROXY_1_PORT": "31802",
"ENV": "production"
},
"maxLaunchDelaySeconds": 3,
"backoffFactor": 1.20,
"healthChecks": [
{
"gracePeriodSeconds": 3,
"intervalSeconds": 5,
"maxConsecutiveFailures": 3,
"protocol": "HTTP",
"path": "/health",
"indexPort": 0,
"timeoutSeconds": 5
}
],
"upgradeStrategy": {
"minimumHealthCapacity": 1,
"maximumOverCapacity": 0.1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment