kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

slow message loading when topic is compacted and filter is oldest

Open wanis-fahmy opened this issue 1 year ago • 10 comments

Issue submitter TODO list

  • [X] I've looked up my issue in FAQ
  • [X] I've searched for an already existing issues here
  • [X] I've tried running main-labeled docker image and the issue still persists there
  • [X] I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

We have several compacted (cleanup policy: compact) topics in our clusters, when we try to load messages in any of them using the "oldest" filter, it takes a significant amount of time to load (around 1 minute or more). Worthy to note that this doesn't occur when selecting the "newest" filter.

The topic size is around 17MB.

We monitored the CPU and memory of kafbat and increased it significantly in efforts to get a faster load time, but it didn't help. The app logs and console logs looks normal

We have significantly larger topics that are not compacted and they load the messages instantly, regardless of which filter.

Expected behavior

messages in compacted topics are loaded faster, like normal topics that have delete cleanup policy

Your installation details

running the latest main 1196f9f docker image deployed in EKS as a normal k8s deployment without helm.

Steps to reproduce

create a compacted topic and load it with some significant data

Screenshots

Bild Bild (1)

Logs

No response

Additional context

No response

wanis-fahmy avatar May 30 '24 09:05 wanis-fahmy

Hi wanisfahmyDE! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

github-actions[bot] avatar May 30 '24 09:05 github-actions[bot]

Similar problem we noticed: for compact topics, oldest is working fine for us. But when we switched to use newest, it took forever to load.

xuyuanz avatar Jun 05 '24 08:06 xuyuanz

@Haarolean this should be fixed due to https://github.com/kafbat/kafka-ui/pull/406

iliax avatar Jun 05 '24 08:06 iliax

@Haarolean this should be fixed due to #406

@wanisfahmyDE @xuyuanz please verify, the image is available under ghcr.io/kafbat/kafka-ui:main

Haarolean avatar Jun 10 '24 10:06 Haarolean

Further user feedback is requested. Please reply within 7 days or we might close the issue.

kapybro[bot] avatar Jun 10 '24 10:06 kapybro[bot]

hey @Haarolean, yes the image is ghcr.io/kafbat/kafka-ui:main. the commit SHA is 1196f9f

wanis-fahmy avatar Jun 10 '24 11:06 wanis-fahmy

Thanks for the additional feedback! We'll get back to your issue soon.

kapybro[bot] avatar Jun 10 '24 11:06 kapybro[bot]

@wanisfahmyDE so does it work now?

Haarolean avatar Jun 10 '24 12:06 Haarolean

no it doesn't, I created the issue when we were running already on ghcr.io/kafbat/kafka-ui:main

wanis-fahmy avatar Jun 10 '24 12:06 wanis-fahmy

yes switched to use kafka-ui:main. Now it loading forever for "oldest" messages.

xuyuanz avatar Jun 11 '24 01:06 xuyuanz

Similar problem we noticed: for compact topics, oldest is working fine for us. But when we switched to use newest, it took forever to load. yes switched to use kafka-ui:main. Now it loading forever for "oldest" messages.

Exact same thing we are facing, we are Newest takes forever with helm chart version 1.4.5. When switched to main, it was the other way round.

SubhraB avatar Sep 26 '24 21:09 SubhraB

Probly 'other way around' issue is related to #249, lol. I'll hide these comments as this is most likely unrelated. This issue is open which means we haven't fixed that, yet. Please upvote the issue and stay tuned!

Haarolean avatar Sep 27 '24 22:09 Haarolean