我使用marathon 0.8.2和中间层码头图片(标签v0.8.2)。我将--logging_level warn
标志传递给守护程序,但我仍然看到所有健康检查都已通过(日志级别INFO)。
47f1eff08164 mesosphere/marathon:v0.8.2 "./bin/start --maste About an hour ago Up About an hour mesos_marathon
docker的一个片段检查:
"CMD": [
"--master",
"zk://zk_host1:2181,zk_host2:2181,zk_host3:2181/mesos",
"--zk",
"zk://zk_host1:2181,zk_host2:2181,zk_host3:2181/marathon",
"--hostname",
"marathon_host",
"--max_tasks_per_offer",
"10",
"--http_port",
"80",
"--logging_level",
"warn"
],
ps
的参数:
java -jar ./bin/../target/marathon-assembly-0.8.2.jar --master zk://zk_host1:2181,zk_host2:2181,zk_host3:2181/mesos --zk zk://zk_host1:2181,zk_host2:2181,zk_host3:2181/marathon --hostname marathon_host --max_tasks_per_offer 10 --http_port 80 --logging_level warn
但是,当我查看docker logs mesos_marathon
时,我看到了很多信息:
[INFO] [06/16/2015 15:49:25.302] [marathon-akka.actor.default-dispatcher-7] [akka:// marathon / user / $ f]收到的健康结果[Healthy(microbot) .edb72ab0-143e-11e5-8fb0-56847afe9799,2015-06-16T15:46:24.346Z,2015-06-16T15:49:25.206Z)]
[INFO] [06/16/2015 15:49:25.302] [marathon-akka.actor.default-dispatcher-7] [akka:// marathon / user / $ f]收到健康结果:[健康( microbot.e6946214-143e-11e5-8fb0-56847afe9799,2015-06-16T15:46:24.346Z,2015-06-16T15:49:25.206Z)]
[INFO] [06/16/2015 15:49:25.302] [marathon-akka.actor.default-dispatcher-7] [akka:// marathon / user / $ f]收到健康结果:[健康( microbot.ea257847-143e-11e5-8fb0-56847afe9799,2015-06-16T15:46:24.346Z,2015-06-16T15:49:25.206Z)]
[INFO] [06/16/2015 15:49:25.302] [marathon-akka.actor.default-dispatcher-7] [akka:// marathon / user / $ f]收到健康结果:[健康( microbot.ff9ac8c5-143e-11e5-8fb0-56847afe9799,2015-06-16T15:46:24.346Z,2015-06-16T15:49:25.207Z)]
[INFO] [06/16/2015 15:49:25.302] [marathon-akka.actor.default-dispatcher-7] [akka:// marathon / user / $ f]收到健康结果:[健康( microbot.edbf8e46-143e-11e5-8fb0-56847afe9799,2015-06-16T15:46:24.346Z,2015-06-16T15:49:25.207Z)]
[INFO] [06/16/2015 15:49:25.303] [marathon-akka.actor.default-dispatcher-7] [akka:// marathon / user / $ f]收到健康结果:[健康( microbot.f888a2eb-143e-11e5-8fb0-56847afe9799,2015-06-16T15:46:24.346Z,2015-06-16T15:49:25.208Z)]
[INFO] [06/16/2015 15:49:25.303] [marathon-akka.actor.default-dispatcher-7] [akka:// marathon / user / $ f]收到健康结果:[健康( microbot.edbc80f0-143e-11e5-8fb0-56847afe9799,2015-06-16T15:46:24.346Z,2015-06-16T15:49:25.208Z)]
我当然错过了一些东西。
答案 0 :(得分:0)
Akka不使用特定的日志记录后端,它只是打印到标准输出。要配置Akka日志记录,请参阅:http://doc.akka.io/docs/akka/snapshot/java/logging.html。
您还可以使用/logging
端点对马拉松日志记录进行更细粒度的控制。因此,请访问<marathon_url>/logging
以在运行时配置Marathon中的日志记录