过载服务器的HTTP状态代码 [英] HTTP status code for overloaded server

查看:143
本文介绍了过载服务器的HTTP状态代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我的网站的服务器负载过大.
我应该发送哪个HTTP状态代码给访问我网站的Googlebot?

Some hours my web site's server has too much load.
Which HTTP status code should I send to the Googlebot that visits my website?

" 269晚些时候回叫"是否适合这种情况,或者 503服务不可用?或者您还有其他建议吗?

Is "269 Call Back Later" this suitable for this case, or 503 Service Unavailable or do you have any more suggestions?

推荐答案

503表示该服务暂时不可用,因此适合在服务器超载时使用. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

503 means the service is temporarily unavailable so it is appropriate to use while the server is overloaded. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Wikipedia文章将269定义为必须异步处理的请求的初始响应. 269表示请求已在服务器的队列"中添加了一些内容,服务器将尽快获得响应,而503表示服务器将不会记住"该请求.

The Wikipedia article defines 269 as the initial response for a request that must be processed asynchronously. 269 means the request added something to the server's "queue" of things to do and the server will have a response available as soon as possible, whereas 503 means the server will not "remember" the request.

不过,我从未听说过269,而Google的第一个结果就是这个问题,其次是Wikipedia文章.

I've never heard of 269, though, and the first Google result for it is this question, followed by the Wikipedia article.

这篇关于过载服务器的HTTP状态代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆