RD Newbie Guide
  • 專案介紹
  • WISE-PaaS
  • WISE-PaaS DataHub
  • WISE-PaaS Notification
  • EdgeX
  • Notification API 開發入門
  • 開發環境
    • Golang
    • Docker
    • Node simulator manual
    • Node simulator
    • Node.js
    • kubernetes
    • 如何在helm chart加上環境變數
    • 如何Release Datahub
    • 如何Release Notification
    • 手動佈署已release之版本
    • [開發階段使用] datahub k8s deploy
    • [開發階段使用] notification k8s deploy
    • Publish maven project to JCenter
    • WISE-PaaS 4.0 平台應用相關資源
  • 相關資源
  • Kafka
    • Kafka開發日誌
    • Kafka參數筆記
    • Kafka Deploy
    • Kafka Performance Test
      • Kafka Test 1 - 多client對於broker的影響
      • Kafka Test 2 - Broker資源對於Client Throughput的影響
      • Kafka Test 3 - multi topic (每個topic負責1個Producer和1個Consumer)
      • Kafka Test 4 - 限流機制實測 (Quotas)
      • Kafka Test 5 - User數量上限
      • Kafka Test 6 - 穩定度測試(長時間)
      • Kafka Test 7 - v-1.0.0測試
    • 在BM站點啟動多個LB Broker並搭配域名
  • CI/CD
    • k8s FAQ
Powered by GitBook
On this page
  • 目的
  • 方法
  • 結果
  • 大資源: 12C,48Gi
  • 6 partitions, 1 replicas/topic
  • 6 partitions, 3 replicas/topic
  • 小資源: 8C,32Gi
  • 6 partitions, 1 replicas/topic
  • 6 partitions, 3 replicas/topic
  • 米你資源: 4C, 16Gi
  • Note

Was this helpful?

  1. Kafka
  2. Kafka Performance Test

Kafka Test 5 - User數量上限

目的

在固定資源下, 找出Cluster能負荷的user數量上限, 每個client(consumer/producer)的throughput不能離設定值太多

方法

  • 一個user下會有兩個client, 1個是producre, 1個是consumer, 共用同一個topic

    • user的限流還有細分producer/consumer, ex. 每個user下的producer流量設1MB/s, 該值是讓user下的所有producer去分, consumer不會去分這1MB/s

  • producer quota: 每個user 1MB/s

  • consumer quota: 每個user 2MB/s

  • 此測試使用的參數

    • broker參數

      • "offsets.commit.timeout.ms": "30000"

    • producer參數

      • request.timeout.ms=1800000

    • consumer參數

      • session.timeout.ms=80000

      • heartbeat.interval.ms=60000

      • --timeout 1800000

結果

大資源: 12C,48Gi

6 partitions, 1 replicas/topic

6 partitions, 3 replicas/topic

小資源: 8C,32Gi

6 partitions, 1 replicas/topic

6 partitions, 3 replicas/topic

米你資源: 4C, 16Gi

4C 16Gi

  • 1U

    • P:1.01

    • C:0.9

  • 10 U

    • P:0.97

    • C:0.9

  • 15U

    • P:0.93

    • c:0.88

  • 20U

    • p:0.88

    • c:0.84

  • 30U

    • P:0.77

    • C:0.7

Note

  • topic replicas設1時, 兩種規格數據差不多, 但設3時, 大資源版本throughput比小資源版本好, 且過程中offset相關warning/error在大資源版本出現次數較少

PreviousKafka Test 4 - 限流機制實測 (Quotas)NextKafka Test 6 - 穩定度測試(長時間)

Last updated 4 years ago

Was this helpful?