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

IPX fails sometimes under high load #253

Open
capraruioan opened this issue Jan 9, 2025 · 0 comments
Open

IPX fails sometimes under high load #253

capraruioan opened this issue Jan 9, 2025 · 0 comments
Labels

Comments

@capraruioan
Copy link

Environment

Node v20
Nuxt image 1.8.0
IPX 2.1.0

Reproduction

Not possible to offer a reproduction because it happens on high traffic environments

Describe the bug

We just deployed in production a news website, so we have high traffic.. All generated images are cached so we don't hit ipx everytime

However, some images are failing with a 502 error sometimes

I did a test with this piece of come

for (var i = 0; i <= 200; i++) {
	ff(i)

}

function ff(i) {
	setTimeout(() => {
		var img = document.createElement('img');
		document.body.appendChild(img);
		img.src =  '/_ipx/f_webp&enlarge_true&fit_cover&s_680x420/link_to_image?qq=' + Date.now() + '-' + Math.random();
	}, i * 50)
}

On staging env where is low traffic we have 200/200 successful requests
On production we have about 10/200 failed images when requesting directly on the nuxt app and we have 10-20 failed when requesting through the cache layer

Anyone else encountered this?

Additional context

No response

Logs

No response

@capraruioan capraruioan added the bug label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant