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

Sse uses too much cpu #1325

Open
Barre opened this issue Sep 5, 2024 · 1 comment
Open

Sse uses too much cpu #1325

Barre opened this issue Sep 5, 2024 · 1 comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working

Comments

@Barre
Copy link

Barre commented Sep 5, 2024

When a user reaches a page on my website that uses sse, the CPU gets pinned to 100% usage and does not go down until the process is restarted.

Example endpoint: https://api.merklemap.com/live-domains

image

To Reproduce
Steps to reproduce the behavior:

  1. Produce an endpoint that produce data over sse (or proxy to the api above).
  2. Observe the cpu usage

If it's an issue with Cloudflare Tunnel:

ID                                   NAME      CREATED              CONNECTIONS               
e87feb54-2f48-4377-a0fe-2a8e97272530 merklemap 2024-09-04T16:39:25Z 1xams08, 1xams15, 2xhel01 

With default settings.

Environment and versions

Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
  • Architecture: AMD EPYC 9454P
  • cloudflared version 2024.8.3 (built 2024-08-22-1348 UTC)
@Barre Barre added Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working labels Sep 5, 2024
@flpydsk
Copy link

flpydsk commented Oct 22, 2024

SSE is a undocumented feature on CF and not guaranteed to work. while cloudflared should not do that its not something that should be relied on or used in prod. use web sockets instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants