Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

容器日志显示延迟很大。 #1650

Closed
hewenhong opened this issue Dec 9, 2019 · 11 comments
Closed

容器日志显示延迟很大。 #1650

hewenhong opened this issue Dec 9, 2019 · 11 comments
Assignees
Milestone

Comments

@hewenhong
Copy link

@hewenhong hewenhong commented Dec 9, 2019

Describe the bug(描述下问题)
点击容器日志后,无法实时获取容器日志,延迟大概2-3分钟。

Versions used(KubeSphere/Kubernetes的版本)
KubeSphere: 2.1
Kubernetes: (If KubeSphere installer used, you can skip this)

Environment(环境的硬件配置)
How many nodes and their hardware configuration:

3 masters: 8cpu/16g
12 nodes: 8cpu/16g

To Reproduce(复现步骤)
Steps to reproduce the behavior:
点击部署的应用,查看日志。存在延迟比较严重,建议实时日志使用kubectl log tailf 去获取日志。
历史日志信息,建议留存在es 中。

Expected behavior(预期行为)
日志延迟在2-3分钟

@zryfish

This comment has been minimized.

Copy link
Contributor

@zryfish zryfish commented Dec 9, 2019

/area logging
/kind feature
/milestone 2.1.1

@ks-ci-bot ks-ci-bot added this to the 2.1.1 milestone Dec 9, 2019
@huanggze

This comment has been minimized.

Copy link
Member

@huanggze huanggze commented Dec 12, 2019

/assign @justahole

@justahole

This comment has been minimized.

Copy link

@justahole justahole commented Jan 10, 2020

/assign @huanggze 延迟这么高,前端也没有啥办法。3.0 正在路上,这几天会出一个用旧版API的版本

@rayzhou2017

This comment has been minimized.

Copy link
Contributor

@rayzhou2017 rayzhou2017 commented Jan 14, 2020

这个问题是怎么计划的?

@calvinyv

This comment has been minimized.

Copy link
Contributor

@calvinyv calvinyv commented Jan 14, 2020

容器日志详情页日志通过k8s原生api获取
日志检索控制台走ks monitoring api获取
@huanggze 对否?

@benjaminhuo

This comment has been minimized.

Copy link
Contributor

@benjaminhuo benjaminhuo commented Jan 14, 2020

@rayzhou2017 @calvinyv 是的容器日志详情页走 k8s 原生 api, 其他的走原路线 es。
这个问题陈豪@justahole 会在 2.1.1 改好

@huanggze

This comment has been minimized.

Copy link
Member

@huanggze huanggze commented Jan 15, 2020

是的。因为从 fluent bit 采集日志、转发到 es、es 分片建立索引 到前段可查有个延迟(不是查询延迟)。所以最新的容器页日志会采用 k8s log api,其他不变

@zheng1

This comment has been minimized.

Copy link
Member

@zheng1 zheng1 commented Feb 3, 2020

@benjaminhuo 这个问题在 2.1.1 是否已经修复?

@leoendless

This comment has been minimized.

Copy link

@leoendless leoendless commented Feb 3, 2020

这个应该已经修复了,最新的 dev installer 里可以验证,直接调用的 k8s log api

@benjaminhuo

This comment has been minimized.

Copy link
Contributor

@benjaminhuo benjaminhuo commented Feb 10, 2020

Snip20200210_22

Verified in the latest 2.1.1 dev build.
Container logs can be seen without the logging module enabled.

@benjaminhuo

This comment has been minimized.

Copy link
Contributor

@benjaminhuo benjaminhuo commented Feb 10, 2020

Verified and closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
10 participants
You can’t perform that action at this time.