Artwork

内容由Peter Fisher提供。所有播客内容(包括剧集、图形和播客描述)均由 Peter Fisher 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

117 - Service Unavailable

30:23
 
分享
 

Manage episode 295272504 series 2674787
内容由Peter Fisher提供。所有播客内容(包括剧集、图形和播客描述)均由 Peter Fisher 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In todays podcast we are going to talk about the 503 HTTP Status Code.

Error 503 = Service Unavailable

From the W3C: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.

Causes

  • DDOS attacks will result in high resource usage which will eventually overload the server. As a result the server will respond with a 503 error code.
  • A server might be temporarily un available if it is under going maintenance. Its a server issue and not a client issue. So this wouldn’t be an issue with the HTML or CSS or client sided JavaScript Trouble shooting
  • Check any monitoring dashboards or graphs for resource hungry trends. - Check the logs to find any server related errors.
  • Check the logs for access requests to see if its a spike in traffic.
  • Check if the server is going through an unexpected maintenance
  • Check for firewall config. Perhaps a firewall on the network is preventing traffic from flowing.
  • Check for long running scripts that could be causing memory leaks.
  • Check for disk usage. Perhaps you are running out of swap space if that’s configured.

Solutions

  • Stop any jobs that are running
  • Divert traffic using a load balancer to another server -
  • Scale your application horizontally by bring on other servers/containers to handle the traffic
  • Have an auto scaler which keeps adding or removing servers/containers when needed - Reboot the server/container

Resources:

https://thevaluable.dev/dry-principle-cost-benefit-example/

https://metova.com/dry-programming-practices/

Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

My web development courses

➡️ Learn How to build a JavaScript Tip Calculator

➡️ Learn JavaScript arrays

➡️ Learn PHP arrays

➡️ Learn Python

✉️ Get my weekly newsletter

⏰ My current live coding schedule (Times are BST)

Thursdays 20:00 = Live Podcast YouTube

Sundays 14:30 - Live coding on Twitch

  continue reading

201集单集

Artwork

117 - Service Unavailable

How To Code Well

123 subscribers

published

icon分享
 
Manage episode 295272504 series 2674787
内容由Peter Fisher提供。所有播客内容(包括剧集、图形和播客描述)均由 Peter Fisher 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In todays podcast we are going to talk about the 503 HTTP Status Code.

Error 503 = Service Unavailable

From the W3C: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.

Causes

  • DDOS attacks will result in high resource usage which will eventually overload the server. As a result the server will respond with a 503 error code.
  • A server might be temporarily un available if it is under going maintenance. Its a server issue and not a client issue. So this wouldn’t be an issue with the HTML or CSS or client sided JavaScript Trouble shooting
  • Check any monitoring dashboards or graphs for resource hungry trends. - Check the logs to find any server related errors.
  • Check the logs for access requests to see if its a spike in traffic.
  • Check if the server is going through an unexpected maintenance
  • Check for firewall config. Perhaps a firewall on the network is preventing traffic from flowing.
  • Check for long running scripts that could be causing memory leaks.
  • Check for disk usage. Perhaps you are running out of swap space if that’s configured.

Solutions

  • Stop any jobs that are running
  • Divert traffic using a load balancer to another server -
  • Scale your application horizontally by bring on other servers/containers to handle the traffic
  • Have an auto scaler which keeps adding or removing servers/containers when needed - Reboot the server/container

Resources:

https://thevaluable.dev/dry-principle-cost-benefit-example/

https://metova.com/dry-programming-practices/

Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

My web development courses

➡️ Learn How to build a JavaScript Tip Calculator

➡️ Learn JavaScript arrays

➡️ Learn PHP arrays

➡️ Learn Python

✉️ Get my weekly newsletter

⏰ My current live coding schedule (Times are BST)

Thursdays 20:00 = Live Podcast YouTube

Sundays 14:30 - Live coding on Twitch

  continue reading

201集单集

所有剧集

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南