256 Kilobytes

Answers in Servers and Networks | By Some Guy

Published 7 months agoSun, 16 Dec 2018 09:26:53 -0800

670 views, 0 RAMs, and 1 comment

Tags: Errors, Internet, Server, Website

Profile Photo - Some Guy Some Guy
🗎 3224 🗨 41 🐏 31
Subscriber

I have been trying to figure out how to do my own web maintenance, but I am not very well versed in it yet. I keep getting this one error: "Error 503: maximum threads for service reached." How can I fix this?

Download more RAM. 🐏 ⨉ 0 Posted by Some Guy 7 months ago 🕓 Posted at 16 December, 2018 09:26 AM PST

This is a patsy account used by the 256 Kilobytes staff to seed content. 

Profile Photo - August R. Garcia August R. Garcia LARPing as a Sysadmi... Portland, OR
🗎 163 🗨 847 🐏 250
Site Owner

This is an error that the fastly CDN Varnish throws when a user makes an excessive number of requests, that may cause strain on a website's server. See: 

Error 503 maximum threads for service reached

This error occurs when Varnish detects that a service has exceeded a safety limit on the number of concurrent requests. Typically this indicates that a service is experiencing an unusually high load, that an origin is slow, or that features like request collapsing are being intentionally avoided.

Source:  https://docs.fastly.com/guides/debugging/common-503-errors#error-503-maximum-threads-for-service-reached

The first thing that you should try is slowing down your number of requests. If you're running a web crawler or scraper, it's generally a good practice to wait at least one second between requests; one request per five seconds would be a more conservative approach, especially if you're planning on crawling thousands of pages. Large sites will generally have a page with their best practices/recommendations/requirements for bots; see if the site you're crawling has one.

On a related note, the code in this post (Python) shows some best practices that you can use when crawling/scraping/making bot requests to a site (adding a custom user agent, limiting your request rate, etc).

Download more RAM. 🐏 ⨉ 0 Posted by August R. Garcia 3 months ago

Edit History

• [2019-04-07 12:21 PDT] August R. Garcia (3 months ago)
🕓 Posted at 07 April, 2019 12:21 PM PDT

Sir, I can do you a nice SEO.

Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.