Open garyparrot opened 1 year ago
這邊敘述建立情境的方法
下載下面這個檔案,解壓縮後裡面有一個序列化後的 ClusterInfo exp2-cluster-info-before-greedy.bin.zip
用 Astraea 專案內的 library 可以反序列化裡面的資訊,之後要將裡面描述的叢集套用到一個 6 節點的 Kafka Cluster,其中每個節點 ID 必須要是 0,1,2,3,4,5。
下面是一個套用的範例程式碼
exp2-ansible.txt 上述文字檔案裡面描述 Producer & Consumer 的設定,總共會需要 7 台獨立的設備,每一台執行一個 Astraea Performance Tool
每個欄位會對應到 Performance Tool 的參數
- "./bin/app"
- "performance"
- "--bootstrap.servers {{ bootstrap_servers }}"
- "--run.until 3h"
- "--topics {{ topics }}"
- "{{ throttle if throttle_enable else '' }}"
- "{{ throughput if throughput_enable else '' }}"
- "--record.key.table.seed {{ key_table_seed }}"
- "--key.distribution {{ key_distribution }}"
- "--key.distribution.config '{{ key_distribution_config | default('k=v') }}'"
- "--read.idle 15s"
- "--producers {{ 0 if (no_producer=='true') else 4 }}"
- "--consumers {{ 0 if (no_consumer=='true') else 12 }}"
- "--configs receive.buffer.bytes=1002400,buffer.memory=500000000,linger.ms=1,batch.size=1000000,fetch.max.bytes=50000000,fetch.min.bytes=20000000,max.partition.fetch.bytes=20000000,fetch.max.wait.ms=5,max.poll.records=9999999,check.crcs=false,acks=0,metrics.sample.window.ms=5000"
完成上述步驟後叢集會有這樣的流量趨勢:
節點的輸入
節點的輸出
如果趨勢不符合的話代表有地方重現失敗
想請教一下具體要比較的話,我們打算怎麼處理呢?
想請教一下具體要比較的話,我們打算怎麼處理呢?
Hi @brandboat,
我平常比較的方法是,以比較 A 方法和 B 方法的好壞為例:
用 5 和 8 得到的數據去寫出比較的結論:在 xyz 硬體和 2 的情境下,方法 A 和 方法 B 有著 ... 結論。
比較 Balancer 的優化效果