错误日志内容
- “The error log you provided shows that the Adaptive Rate Limit Filter in AEM rejected requests to the specified URL due to exhausted server load. The log details include a server load of 674104/750000, inflight requests at 8/200, and a prediction of 85775.”
- AEM中的自适应速率限制过滤器因为服务器负载耗尽而拒绝了对指定URL的请求。日志详细信息包括服务器负载为674104/750000,正在处理的请求(inflight requests)为8/200,以及一个预测值85775。这些数据是分析问题的关键依据。
关键指标解释
- “Server Load: This metric indicates the current usage of server resources relative to a predefined limit. In this instance, the server load approached its maximum capacity.”
- 服务器负载(Server Load)这个指标显示了当前服务器资源使用量相对于预设限制的比例。在这个案例中,服务器负载接近了其最大容量。这意味着服务器几乎已经没有多余的资源来处理更多的请求了。
- “Inflight Requests: This reflects the number of requests being processed concurrently. The log shows this was within the acceptable range (8/200), implying the issue may lie in overall server capacity rather than concurrent requests.”
- 正在处理的请求(Inflight Requests)反映了同时被处理的请求数量。日志显示这个数值在可接受范围内(8/200),这表明问题可能出在整体服务器容量上,而不是同时处理的请求数量上。也就是说,虽然同时处理的请求数量没有超过限制,但服务器的总负载已经接近极限了。
- “Prediction: This suggests anticipated resource usage based on current trends. A high prediction indicates potential resource exhaustion due to increased load.”
- 预测(Prediction)是根据当前趋势预测的资源使用情况。一个高的预测值表明由于负载增加,可能会出现资源耗尽的情况。这进一步说明了服务器面临的压力和可能出现问题的趋势。
建议和参考
- “For a baseline, the recommended rate limit is 500 requests per second (rps), especially for customers unsure of the optimal value. As each site and customer have unique requirements, we do not document a strict limit. I recommend reviewing the following documentation [0], which provides guidance on using CDN logs and dashboards to determine a more accurate rate limiter value.”
- 对于不确定最佳值的客户,推荐的速率为每秒500个请求(rps)。但由于每个网站和客户都有独特的需求,所以并没有一个严格规定的限制。https://experienceleague.adobe.com/zh-hans/docs/experience-manager-learn/cloud-service/security/blocking-dos-attack-using-traffic-filter-rules?lang=en该文档提供了如何使用CDN日志和仪表板来确定更准确的速率限制器值的指导。可以根据实际情况调整速率限制,以避免类似问题再次发生。
上一篇
AEM索引相关下一篇
API Integration