Summary of occasional Website access failures
1. The website is occasionally inaccessible recently, so it cannot be accessed several times a day, and it will take 2 minutes. As follows:
2. cause:
The server has a security configuration. If there are 50 accesses to the same URL within 3 seconds, the server will be blocked for 2 minutes. The website's profile picture adopts the same URL. Therefore, a page can be connected to up to 50 URLs to set a security policy. This causes shielding for 2 minutes.
3. Detailed analysis:
The website has a user's profile picture, which uses the same URL address and different parameters. Therefore, it is a single page with multiple URLs. Ordinary websites do not have this phenomenon. Our website is special.
I thought it was a DNS resolution problem and could not find the server. Later I thought that the browser had a dns cache, and the local dns server had a cache. It should not be a dns problem! You have transferred the dns to the paid version and 86400 seconds.
Later I thought it was a network problem between cdn and the original server. They were put together, and then cdn used the bgp line, with the ping value less than 5 ms.
I think the server is slow, restart nginx, and check the network status.
The last three methods are useless: 1. Buy a better dns manufacturer, 2. Change the cdn manufacturer, and 3. Add the nginx cluster node.
The result was that this morning, the LAN was obviously inaccessible, and other users were fine.
Focus on starting from every detail .!!!!!!!!!!!!!!!
4. Locate the problem
The problem has occurred for 10 days. It is always a while, and most of the time is good. Today, our company's LAN problem is particularly obvious.
Therefore, an investigation is conducted based on this condition. This is the idea of troubleshooting and a clue is taken to investigate.
We use the same IP address for external access in the Intranet. The server reduces the number of triggers, and a large number of accesses are immediately blocked. This is obviously the reason. Although repeated connections will go through the cache, there will also be many connections directly connected to the server.
5. Summarize the ideas for solving the problem:
To troubleshoot a web fault, you must check the http status code and http Response Header. When the request cannot be accessed, you can obtain the http status code and http response header. Immediately find the problem.
6. Conclusion:
If you are looking for a manufacturer or employee in the future, you need to check whether he will solve the problem for you seriously. Other large manufacturers will not focus on your problem (because each website has its own particularity) you cannot provide better services for your features.
7. Attach Common commands:
Curl-I http://baidu.com viewing http Response Headers
Google F12 -- source: view the URLs opened by the website.