mesos / kibana

Kibana on Mesos
Apache License 2.0
27 stars 9 forks source link

Restart on failure #5

Closed frankscholten closed 8 years ago

sadovnikov commented 8 years ago

tested. It works

2016-01-20 09:40:40.198  INFO 25871 --- [     Thread-305] o.a.m.kibana.scheduler.KibanaScheduler   : Task kibana-0 is in state TASK_FAILED
2016-01-20 09:40:40.198  INFO 25871 --- [     Thread-305] o.a.m.kibana.scheduler.KibanaScheduler   : Unregistering task kibana-0 due to state: TASK_FAILED
2016-01-20 09:40:40.201  INFO 25871 --- [     Thread-305] o.a.m.k.s.SchedulerConfiguration         : Unregistered task kibana-0
2016-01-20 09:40:40.510  INFO 25871 --- [     Thread-306] o.a.m.kibana.scheduler.KibanaScheduler   : Offered 2 offers
2016-01-20 09:40:40.510  INFO 25871 --- [     Thread-306] o.a.m.kibana.scheduler.KibanaScheduler   : Offer 06952e70-6ac3-44d2-8647-c5375444f863-O729 is acceptable. (got 0.7 cpus, 6591.0 memory and 998 ports)
2016-01-20 09:40:40.510  INFO 25871 --- [     Thread-306] o.a.m.kibana.scheduler.KibanaScheduler   : Offer 06952e70-6ac3-44d2-8647-c5375444f863-O730 is acceptable. (got 1.0 cpus, 6943.0 memory and 1001 ports)
2016-01-20 09:40:40.510  INFO 25871 --- [     Thread-306] o.a.m.kibana.scheduler.KibanaScheduler   : A total of 2 offers were deemed acceptable.
2016-01-20 09:40:40.510  INFO 25871 --- [     Thread-306] o.a.m.kibana.scheduler.KibanaScheduler   : ElasticSearch http://172.17.0.7:33000/ is missing 1 tasks. Attempting to spin up required tasks.
2016-01-20 09:40:40.510  INFO 25871 --- [     Thread-306] o.a.m.k.s.SchedulerConfiguration         : Task value: "kibana-1"
 received port 33002.
2016-01-20 09:40:40.511  INFO 25871 --- [     Thread-306] o.a.m.k.s.SchedulerConfiguration         : Now running task kibana-1 for ElasticSearchhttp://172.17.0.7:33000/
2016-01-20 09:40:41.347  INFO 25871 --- [     Thread-307] o.a.m.kibana.scheduler.KibanaScheduler   : Task kibana-1 is in state TASK_RUNNING
sadovnikov commented 8 years ago
MacBook-Pro-2:~ vik$ docker ps
CONTAINER ID        IMAGE                                                   COMMAND                  CREATED             STATUS              PORTS                          NAMES
fe88d5820fc1        kibana:4.3.1                                            "/docker-entrypoint.s"   9 minutes ago       Up 9 minutes        0.0.0.0:33000->5601/tcp        mesos-06952e70-6ac3-44d2-8647-c5375444f863-S0.7e73f162-3a46-4220-b201-d795129fc84c
8b5756dcca08        mesosphere/marathon:v0.13.0                             "./bin/start --master"   19 minutes ago      Up 19 minutes       0.0.0.0:8080->8080/tcp         minimesos-marathon-4267176887-4239667679
39a5591be89e        containersol/mesos-agent:0.25.0-0.2.70.ubuntu1404.b1    "/usr/local/bin/mesos"   19 minutes ago      Up 19 minutes       5051/tcp, 33000/tcp            minimesos-agent-4267176887-1563300385
025dc2e167a2        containersol/mesos-agent:0.25.0-0.2.70.ubuntu1404.b1    "/usr/local/bin/mesos"   19 minutes ago      Up 19 minutes       5051/tcp, 33000/tcp            minimesos-agent-4267176887-1410817119
a543b4b58c3a        containersol/mesos-agent:0.25.0-0.2.70.ubuntu1404.b1    "/usr/local/bin/mesos"   19 minutes ago      Up 19 minutes       5051/tcp, 33000/tcp            minimesos-agent-4267176887-2846916033
8fa9e05a1bd9        containersol/mesos-master:0.25.0-0.2.70.ubuntu1404.b1   "mesos-master --regis"   20 minutes ago      Up 19 minutes       0.0.0.0:5050->5050/tcp         minimesos-master-4267176887-1326466111
16875bb6bc68        jplock/zookeeper:3.4.6                                  "/opt/zookeeper/bin/z"   20 minutes ago      Up 20 minutes       2181/tcp, 2888/tcp, 3888/tcp   minimesos-zookeeper-4267176887-1222798336

MacBook-Pro-2:~ vik$ docker rm -f fe88d5820fc1
fe88d5820fc1

MacBook-Pro-2:~ vik$ docker ps
CONTAINER ID        IMAGE                                                   COMMAND                  CREATED              STATUS              PORTS                          NAMES
d8a2851a9650        kibana:4.3.1                                            "/docker-entrypoint.s"   About a minute ago   Up About a minute   0.0.0.0:33002->5601/tcp        mesos-06952e70-6ac3-44d2-8647-c5375444f863-S1.3b036591-a712-45dd-ba86-58df12017879
8b5756dcca08        mesosphere/marathon:v0.13.0                             "./bin/start --master"   22 minutes ago       Up 22 minutes       0.0.0.0:8080->8080/tcp         minimesos-marathon-4267176887-4239667679
39a5591be89e        containersol/mesos-agent:0.25.0-0.2.70.ubuntu1404.b1    "/usr/local/bin/mesos"   22 minutes ago       Up 22 minutes       5051/tcp, 33000/tcp            minimesos-agent-4267176887-1563300385
025dc2e167a2        containersol/mesos-agent:0.25.0-0.2.70.ubuntu1404.b1    "/usr/local/bin/mesos"   22 minutes ago       Up 22 minutes       5051/tcp, 33000/tcp            minimesos-agent-4267176887-1410817119
a543b4b58c3a        containersol/mesos-agent:0.25.0-0.2.70.ubuntu1404.b1    "/usr/local/bin/mesos"   22 minutes ago       Up 22 minutes       5051/tcp, 33000/tcp            minimesos-agent-4267176887-2846916033
8fa9e05a1bd9        containersol/mesos-master:0.25.0-0.2.70.ubuntu1404.b1   "mesos-master --regis"   22 minutes ago       Up 22 minutes       0.0.0.0:5050->5050/tcp         minimesos-master-4267176887-1326466111
16875bb6bc68        jplock/zookeeper:3.4.6                                  "/opt/zookeeper/bin/z"   22 minutes ago       Up 22 minutes       2181/tcp, 2888/tcp, 3888/tcp   minimesos-zookeeper-4267176887-1222798336