Task/Enabling Rate Limits: fix quota handlers (#3236)

This commit is contained in:
He Cao 2019-02-13 01:55:58 +08:00 committed by Martin Taillefer
parent d6b3bfac56
commit c16ce69f23
2 changed files with 6 additions and 4 deletions

View File

@ -73,9 +73,9 @@ so the configuration to enable rate limiting on both adapters is the same.
name: handler name: handler
namespace: istio-system namespace: istio-system
spec: spec:
redisServerUrl: <redis_server_url>
connectionPoolSize: 10
quotas: quotas:
redisServerUrl: <redis_server_url>
connectionPoolSize: 10
- name: requestcount.quota.istio-system - name: requestcount.quota.istio-system
maxAmount: 500 maxAmount: 500
validDuration: 1s validDuration: 1s
@ -172,6 +172,7 @@ so the configuration to enable rate limiting on both adapters is the same.
- name: requestcount.quota.istio-system - name: requestcount.quota.istio-system
maxAmount: 500 maxAmount: 500
validDuration: 1s validDuration: 1s
overrides:
- dimensions: - dimensions:
destination: reviews destination: reviews
maxAmount: 1 maxAmount: 1

View File

@ -60,9 +60,9 @@ keywords: [policies,quotas]
name: handler name: handler
namespace: istio-system namespace: istio-system
spec: spec:
redisServiceUrl: <redis_server_url>
connectionPoolSize: 10
quotas: quotas:
redisServiceUrl: <redis_server_url>
connectionPoolSize: 10
- name: requestcount.quota.istio-system - name: requestcount.quota.istio-system
maxAmount: 500 maxAmount: 500
validDuration: 1s validDuration: 1s
@ -159,6 +159,7 @@ keywords: [policies,quotas]
- name: requestcount.quota.istio-system - name: requestcount.quota.istio-system
maxAmount: 500 maxAmount: 500
validDuration: 1s validDuration: 1s
overrides:
- dimensions: - dimensions:
destination: reviews destination: reviews
maxAmount: 1 maxAmount: 1