github.com/polarismesh/polaris@v1.17.8/release/cluster/helm/templates/polaris-limiter-config.yaml (about) 1 apiVersion: v1 2 kind: ConfigMap 3 metadata: 4 name: polaris-limiter-config 5 namespace: {{ .Values.installation.namespace }} 6 data: 7 polaris-limiter.yaml: |- 8 registry: 9 enable: true 10 polaris-server-address: polaris.{{ .Values.installation.namespace }}:{{ .Values.service.serviceGrpcPort }} 11 name: polaris.limiter 12 namespace: Polaris 13 health-check-enable: true 14 api-servers: 15 - name: http 16 option: 17 ip: 0.0.0.0 18 port: {{ .Values.service.limiterHttpPort }} 19 - name: grpc 20 option: 21 ip: 0.0.0.0 22 port: {{ .Values.service.limiterGrpcPort }} 23 limit: 24 myid: $MY_ID #节点ID, 集群中不同节点需设置不同的myid 25 counter-group: 64 # 计数器分组,不同组的计数器创建时不冲突 26 max-counter: 1000000 27 max-client: 1000 28 push-worker: 4 29 slide-count: 1 30 purge-counter-interval: 30s 31 sync-remote-storage-interval: 1m 32 async-remote-wait-timeout: 200ms 33 update-remote-storage-threshold: 10m 34 flush-local-storage-threshold: 3s 35 plugin: 36 statis: 37 name: file 38 option: 39 ratelimit-app-name: 294_4423_polaris-limiter-stat #限流监控 40 ratelimit_report_log_path: log/polaris-limiter-ratelimit-report.log 41 ratelimit_event_log_path: log/polaris-limiter-event.log 42 ratelimit_precision_log_path: log/polaris-limiter-stat.log 43 server-app-name: 294_11866_polaris_limit_server #服务端监控 44 server_report_log_path: log/polaris-limiter-server-report.log 45 log_interval: 60 46 precision_log_interval: 1 47 logger: 48 RotateOutputPath: log/polaris-limiter.log 49 RotationMaxSize: 500 50 RotationMaxAge: 30 51 RotationMaxBackups: 100 52 level: info 53