zwoop commented on a change in pull request #7623: URL: https://github.com/apache/trafficserver/pull/7623#discussion_r610898053
########## File path: doc/admin-guide/plugins/rate_limit.en.rst ########## @@ -0,0 +1,115 @@ +.. Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +.. _admin-plugins-rate-limit: + +Rate Limit Plugin +******************** + +The :program:`rate_limit` plugin provides basic mechanism for how much +traffic a particular service (remap rule) is allowed to do. Currently, +the only implementation is a limit on how many active client transactions +a service can have. However, it would be easy to refactor this plugin to +allow for adding new limiter policies later on. + +The limit counters and queues are per remap rule only, i.e. there is +(currently) no way to group transaction limits from different remap rules +into a single rate limiter. + +All configuration is done via :file:`remap.config`, and the following options +are available: + +.. program:: rate-limit + +.. option:: --limit Review comment: Cause that's how we do this? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
