我有以下业务场景:
我目前使用iptables限速来限制每个ip的最大并发连接数。
有更好的方法吗?
也许你最好的机会会像http://bloke.org/apache/limit-apache-requests-per-ip-address-with-mod_limitipconn/
另外,既然你正在使用ajp,我会假设你是前端的tomcat。 另一种技术,我的帮助是使用asynchronousServlet – https://plumbr.eu/blog/how-to-use-asynchronous-servlets-to-improve-performance