- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 50288 个
- 通用积分
- 83.6906
- 学术水平
- 253 点
- 热心指数
- 300 点
- 信用等级
- 208 点
- 经验
- 41518 点
- 帖子
- 3256
- 精华
- 14
- 在线时间
- 766 小时
- 注册时间
- 2006-5-4
- 最后登录
- 2022-11-6
|
Logging and debugging
- How to do it...
- When Mesos is installed from pre-built packages, the logs are by default
- stored in /var/log/mesos/. When installing from a source build, storing logs is
- disabled by default. To change the log store location, we need to edit
- /etc/default/mesos and set the LOGS variable to the desired destination. For
- some reason, mesos-init-wrapper does not transfer the contents of
- /etc/mesos/log_dir to the --log_dir flag. That's why we need to set the log's
- destination in the environment variable.
- Remember that only Mesos logs will be stored there. Logs from third-party
- applications (for example, ZooKeeper) will still be sent to STDERR.
- Changing the default logging level can be done in one of two ways: by
- specifying the --logging_level flag or by sending a request and changing the
- logging level at runtime for a specific period of time.
- For example, to change the logging level to INFO, just put it in the following
- code:
- /etc/mesos/logging_level
- echo INFO > /etc/mesos/logging_level
- The possible levels are INFO, WARNING, and ERROR.
- For example, to change the logging level to the most verbose for 15 minutes
- for debug purposes, we need to send the following request to the
- logging/toggle endpoint:
- curl -v -X POST localhost:5050/logging/toggle?level=3\&duration=15mins
复制代码
|
|