我们看到来自前端的多个请求每秒多次点击API。这种情况自发布以来一直在发生,虽然我们已经将限制措施作为创可贴以阻止它杀死API,但问题的根源需要进行调查和解决。
限制启动时API日志的示例输出:
{
"timestamp": "2017-06-19 00:14:43,464",
"thread": "38",
"level": "INFO",
"message": "[THROTTLE] request to /api/v1/profile from 203.97.65.100 blocked - quota 2/Second exceeded by 3",
"data": {
"IpAddress": "203.97.65.100"
},
"logger": "Services.Logging.Log4NetThrottleLogger"
},
{
"timestamp": "2017-06-19 00:14:43,467",
"thread": "43",
"level": "INFO",
"message": "[THROTTLE] request to /api/v1/catalog from 203.97.65.100 blocked - quota 2/Second exceeded by 3",
"data": {
"IpAddress": "203.97.65.100"
},
"logger": "Services.Logging.Log4NetThrottleLogger"
},
{
"timestamp": "2017-06-19 00:14:43,482",
"thread": "28",
"level": "INFO",
"message": "[THROTTLE] request to /api/v1/profile from 203.97.65.100 blocked - quota 2/Second exceeded by 4",
"data": {
"IpAddress": "203.97.65.100"
},
"logger": "Services.Logging.Log4NetThrottleLogger"
}