github.com/polarismesh/polaris@v1.17.8/release/standalone/docker-compose/limiter/polaris-limiter.yaml (about)

     1  registry:
     2    enable: true
     3    polaris-server-address: polaris-server:8091
     4    name: polaris.limiter
     5    namespace: Polaris
     6    health-check-enable: true
     7  api-servers:
     8    - name: http
     9      option:
    10        ip: 0.0.0.0
    11        port: 8100
    12    - name: grpc
    13      option:
    14        ip: 0.0.0.0
    15        port: 8101
    16  limit:
    17    myid: 1 #节点ID,集群中不同节点需设置不同的myid
    18    counter-group: 64 # 计数器分组,不同组的计数器创建时不冲突
    19    max-counter: 1000000
    20    max-client: 1000
    21    push-worker: 4
    22    slide-count: 1
    23    purge-counter-interval: 30s
    24    sync-remote-storage-interval: 1m
    25    async-remote-wait-timeout: 200ms
    26    update-remote-storage-threshold: 10m
    27    flush-local-storage-threshold: 3s
    28  plugin:
    29    statis:
    30      name: file
    31      option:
    32        ratelimit-app-name: 294_4423_polaris-limiter-stat #限流监控
    33        ratelimit_report_log_path: log/polaris-limiter-ratelimit-report.log
    34        ratelimit_event_log_path: log/polaris-limiter-event.log
    35        ratelimit_precision_log_path: log/polaris-limiter-stat.log
    36        server-app-name: 294_11866_polaris_limit_server #服务端监控
    37        server_report_log_path: log/polaris-limiter-server-report.log
    38        log_interval: 60
    39        precision_log_interval: 1
    40  logger:
    41    RotateOutputPath: log/polaris-limiter.log
    42    RotationMaxSize: 500
    43    RotationMaxAge: 30
    44    RotationMaxBackups: 100
    45    level: info