In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to implement the configuration of rateLimiter, in response to this problem, this article details the corresponding analysis and solution, hoping to help more small partners who want to solve this problem find a simpler and easier way.
The soul gateway uses redis token bucket algorithm for current limiting, aiming at current limiting up to interface level.
rateLimiter configuration process:
1. First open the rate_limiter plug-in in Plug-in Management
Open the plug-in and install the redis configuration.
The plugin currently supports stand-alone, sentinel, and cluster modes for redis.
If it is a sentinel, cluster, etc. multi-node, in the URL configuration, please use; split for each column. 192.168.1.1: 6379; 192.168.1.2: 6379.
2. Then open the plug-in list rate_limiter page
Add selectors.
Matching mode selection and
Condition selection url as long as the request path and/http/** Match it and limit it.
Then configure the current limiting rules:
·The name, matching method and conditions have the same meaning.
Rate: is how many requests per second you allow users to perform, dropping any requests. This is the fill rate of the token bucket.
Capacity: The maximum number of requests a user is allowed to perform in one second. This is the number of tokens the token bucket can hold.
After configuration, click the sync button to test.
If you click frequently, an error message will appear, indicating that this feature has been configured successfully.
About how to achieve rateLimiter configuration using the answer to the problem shared here, I hope the above content can have some help for everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.