国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

aws上采用tidb和原生使用aws rds價格的比較。兼數(shù)據(jù)分析性能的測試

這篇具有很好參考價值的文章主要介紹了aws上采用tidb和原生使用aws rds價格的比較。兼數(shù)據(jù)分析性能的測試。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

作者: tidb狂熱愛好者 原文來源: https://tidb.net/blog/ef242615

項目背景介紹

有一個20t-30t的歷史庫需要做數(shù)據(jù)分析,節(jié)能減排,減容增效。今年大環(huán)境不好,aws的費用又是出奇的貴。

歷史庫的作用是公司近1年的訂單合集,平時不需要查詢,偶爾會有月統(tǒng)計的需求。之前用aws的mysql無法完成需求,現(xiàn)在尋找數(shù)據(jù)庫替換。

分別測試了oltp性能和olap性能。

數(shù)據(jù)分析pk

壓測步驟

如何對 TiDB 進行 CH-benCHmark 測試

本地啟動一個tidb單節(jié)點端口4000,啟動一個mysql8.0 端口4001

tiup playground

初始化測試數(shù)據(jù)

tiup bench tpch --sf=1 prepare -P4000

tiup bench tpch --sf=1 prepare -P4001

#進入tidb開啟tiflash。 ALTER DATABASE tpcc SET TIFLASH REPLICA 1; #等待同步完成后收集統(tǒng)計信息。 analyze table customer; analyze table district; analyze table history; analyze table item; analyze table new_order; analyze table order_line; analyze table orders; analyze table stock; analyze table warehouse; analyze table nation; analyze table region; analyze table supplier;

分別開始測試

tiup bench tpch --sf=1 run -P4000

tiup bench tpch --sf=1 run -P4001

mysql8數(shù)據(jù)分析測試

tiup is checking updates for component bench ...timeout(2s)! Starting component bench: /var/root/.tiup/components/bench/v1.12.0/tiup-bench tpch --sf=1 run -P4001 [Current] Q1: 78.89s [Current] Q2: 3.79s [Current] Q3: 26.81s [Current] Q4: 6.14s [Current] Q5: 6.48s [Current] Q6: 10.23s [Current] Q7: 26.21s [Current] Q8: 39.76s [Current] Q9: 98.75s [Current] Q10: 13.25s [Current] Q11: 10.37s [Current] Q12: 15.94s [Current] Q13: 12.72s [Current] Q14: 32.78s [Current] Q15: 31.24s [Current] Q16: 4.06s mysql無法進行數(shù)據(jù)分析依賴redshift 無法進行Q17測試。

tidb數(shù)據(jù)分析

[Current] Q3: 0.30s [Current] Q4: 1.31s [Current] Q5: 0.57s [Current] Q6: 0.17s [Current] Q7: 0.30s [Current] Q8: 0.50s [Current] Q9: 0.97s [Current] Q1: 0.57s [Current] Q10: 0.44s [Current] Q11: 0.17s [Current] Q12: 0.44s [Current] Q13: 0.70s [Current] Q14: 0.17s [Current] Q15: 0.50s [Current] Q16: 0.23s [Current] Q17: 0.44s [Current] Q18: 0.84s [Current] Q2: 0.17s [Current] Q21: 0.84s [Current] Q22: 0.10s [Current] Q3: 0.30s [Current] Q4: 1.38s [Current] Q5: 0.44s [Current] Q6: 0.17s [Current] Q7: 0.37s [Current] Q8: 0.50s [Current] Q9: 0.91s [Current] Q1: 0.57s [Current] Q10: 0.44s [Current] Q11: 0.17s [Current] Q12: 0.30s [Current] Q13: 0.57s [Current] Q14: 0.17s [Current] Q15: 0.64s [Current] Q16: 0.23s [Current] Q17: 0.50s [Current] Q19: 0.64s [Current] Q2: 0.17s [Current] Q20: 0.23s [Current] Q21: 0.91s [Current] Q22: 0.10s [Current] Q3: 0.37s [Current] Q4: 1.17s [Current] Q5: 0.44s [Current] Q6: 0.17s [Current] Q7: 0.37s [Current] Q8: 0.50s [Current] Q9: 0.84s [Current] Q1: 0.64s [Current] Q10: 0.44s [Current] Q11: 0.17s [Current] Q12: 0.23s [Current] Q13: 0.57s [Current] Q14: 0.10s [Current] Q15: 0.37s [Current] Q16: 0.17s [Current] Q17: 0.30s [Current] Q18: 0.67s [Current] Q19: 0.64s [Current] Q2: 0.17s [Current] Q20: 0.30s [Current] Q21: 0.77s [Current] Q22: 0.10s [Current] Q3: 0.30s [Current] Q4: 1.17s [Current] Q5: 0.44s [Current] Q6: 0.10s [Current] Q7: 0.37s [Current] Q8: 0.30s [Current] Q9: 0.70s tidb數(shù)據(jù)分析性能是mysql的幾百倍 均是幾百毫秒完成。

測試結(jié)果比較

差距最大的q1 q9 有100多倍,最小q4 也有5倍

q1 q2 q3 q4 q5 q6 q7 q8 q9 q10
mysql8 78.89s 3.79s 26.81s 6.14s 6.14s 10.23s 26.21s 39.76s 98.75s 13.25s
tidb 0.64s 0.17s 0.30s 1.17s 0.44s 0.10s 0.37s 0.30s 0.70s 0.44s

ycsb測試

測試命令

讀10000次計算執(zhí)行時間

更新500次計算執(zhí)行時間

tiup bench ycsb run tidb -p tidb.instances=127.0.0.1:4000 -p operationcount=10000

tiup bench ycsb run mysql -p tidb.instances=127.0.0.1:4001 -p operationcount=10000

tidb

Starting component `bench`: /var/root/.tiup/components/bench/v1.12.0/tiup-bench ycsb run mysql -p tidb.instances=127.0.0.1:4000 -p operationcount=10000 ***************** properties ***************** "command"="run" "tidb.instances"="127.0.0.1:4000" "operationcount"="10000" "dotransactions"="true" ********************************************** Run finished, takes 4.191237542s READ - Takes(s): 4.2, Count: 9495, OPS: 2267.3, Avg(us): 402, Min(us): 179, Max(us): 7951, 99th(us): 705, 99.9th(us): 3519, 99.99th(us): 7007 UPDATE - Takes(s): 4.2, Count: 505, OPS: 120.7, Avg(us): 675, Min(us): 419, Max(us): 2497, 99th(us): 1117, 99.9th(us): 1926, 99.99th(us): 2497

mysql

tiup is checking updates for component bench ... Starting component `bench`: /var/root/.tiup/components/bench/v1.12.0/tiup-bench ycsb run mysql -p tidb.instances=127.0.0.1:4001 -p operationcount=10000 ***************** properties ***************** "operationcount"="10000" "dotransactions"="true" "command"="run" "tidb.instances"="127.0.0.1:4001" ********************************************** READ - Takes(s): 10.0, Count: 4522, OPS: 452.5, Avg(us): 2086, Min(us): 778, Max(us): 151423, 99th(us): 8687, 99.9th(us): 26655, 99.99th(us): 151423 UPDATE - Takes(s): 9.9, Count: 234, OPS: 23.6, Avg(us): 2306, Min(us): 972, Max(us): 10543, 99th(us): 7859, 99.9th(us): 10543, 99.99th(us): 10543 Run finished, takes 19.66040875s READ - Takes(s): 19.7, Count: 9506, OPS: 483.7, Avg(us): 1955, Min(us): 778, Max(us): 151423, 99th(us): 7867, 99.9th(us): 17759, 99.99th(us): 41343 UPDATE - Takes(s): 19.6, Count: 494, OPS: 25.2, Avg(us): 2080, Min(us): 807, Max(us): 10543, 99th(us): 6959, 99.9th(us): 10543, 99.99th(us): 10543

結(jié)論

tp性能測試 read 9506 count update 494 count
mysql 19.6s 19.7s
tidb 4.2s 4.2s

亞馬遜上的費用對比

三實例aws Aurora費用

cpu 實例小時費用 存儲費用小時 io1萬次數(shù) 總費用
主讀 r5.4xlarge 16 2.3200?USD 每月每 GB 0.12 USD 每月每 IOPS 0.27
主寫 r5.4xlarge 16 2.3200?USD 每月每 GB 0.12 USD 每月每 IOPS 0.27
redshift最低配 dc2.8xlarge 32 4,449.35
月費用 3340.8 491.52 5400 9232.32

aurora預估費用頁面 https://aws.amazon.com/cn/rds/aurora/pricing/?pg=pr&loc=1 存儲費率 每月每 GB 0.12 USD 每月每 GB 0.27 USD I/O 費率 每 100 萬個請求 0.24 USD 包含

aws rds費用

cpu 實例小時費用 存儲費用小時 io1萬次數(shù) 總費用
主讀 r5.4xlarge 16 2.2800?USD 每月每 GB 0.375 USD 每月每 IOPS 0.30
主寫 r5.4xlarge 16 2.2800?USD 每月每 GB 0.375 USD 每月每 IOPS 0.30
redshift最低配 dc2.8xlarge 32 4,449.35
月費用 5088.96 1536 6000 10819.2

rds預估費用頁面 https://aws.amazon.com/cn/rds/mysql/pricing/?pg=pr&loc=2 多可用區(qū)存儲費率 每月每 GB 0.45 USD 多可用區(qū)預調(diào)配 IOPS 費率 每月每 IOPS 0.36 USD

tidb 非高可用方案 冷磁盤250m峰值讀取

cpu 實例小時費用 20t cold hhd gp3 1t(給tiflash) 總費用
pd c5.2xlarge 8 0.192 0
tidb c5.4xlarge 16 0.856 0
kv r5.4xlarge 16 1.096 200 200
月費用 1543.68 200 200 1943

優(yōu)點:

費用便宜只需要1943元就能完成大數(shù)據(jù)的計算任務。如果好后期可以擴容支撐大數(shù)據(jù)計算業(yè)務

tiflash采用計算分離架構(gòu)節(jié)約80%費用

TiFlash 存算分離架構(gòu)與 S3 支持

缺點:

本方案是單點tidb。如果ec2宕機,需要代碼遇到tidb無法寫入時,不再刪除mysql原始庫的數(shù)據(jù)。等待處理

tidb高可用三副本

cpu 實例小時費用 20t cold hhd(1月) gp3 1t(給tiflash) 總費用
pd c5.2xlarge 8 0.192 0
pd c5.2xlarge 8 0.192 0
pd c5.2xlarge 8 0.192 0
tidb c5.4xlarge 16 0.856 0
tidb c5.4xlarge 16 0.856 0
kv r5.4xlarge 16 1.096 200
kv r5.4xlarge 16 1.096 200
kv r5.4xlarge 16 1.096 200 200
月費用 4631.04 600 200 5431.04

優(yōu)點:

費用便宜只需要5431元就能完成大數(shù)據(jù)的計算任務。如果好后期可以擴容支撐大數(shù)據(jù)計算業(yè)務

并且是三副本高可用的版本。不存在宕機問題

tiflash采用計算分離架構(gòu)節(jié)約80%費用

https://docs.pingcap.com/zh/tidb/stable/tiflash-disaggregated-and-s3

缺點:

相比單節(jié)點費用較高。保證了業(yè)務可用性。

結(jié)論

感覺tidb上了后會節(jié)約至少一半的費用。

整體算下來 aurora的費用會比rds便宜因為aurora的存儲基于s3的三副本。存儲費用低。

而自建tidb的存儲價格會比aurora低。合理利用s3,hhd,gp3,不同存儲的搭配會節(jié)省出不少費用。s3作為aws的引流產(chǎn)品價格是出奇的低我恨不得任何時候任何產(chǎn)品后段都掛載s3.實現(xiàn)容量和性價比的 文章來源地址http://www.zghlxwxcb.cn/news/detail-538893.html

tidb 費用對比 費用比
single 1943 0.35
tidb 5431.04 1.0
rds 10819.2 2.0
Aurora 9232.32 1.7

到了這里,關于aws上采用tidb和原生使用aws rds價格的比較。兼數(shù)據(jù)分析性能的測試的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權(quán),不承擔相關法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • 使用Python進行云計算:AWS、Azure、和Google Cloud的比較

    使用Python進行云計算:AWS、Azure、和Google Cloud的比較

    前些天發(fā)現(xiàn)了一個巨牛的人工智能學習網(wǎng)站,通俗易懂,風趣幽默,忍不住分享一下給大家?!军c擊進入巨牛的人工智能學習網(wǎng)站】。 隨著云計算的普及,越來越多的企業(yè)和開發(fā)者轉(zhuǎn)向使用云服務來構(gòu)建和擴展他們的應用程序。AWS(亞馬遜云服務)、Azure(微軟云)和Google

    2024年04月22日
    瀏覽(21)
  • linux:需要注意docker和aws的rds的mysql默認是UTC而不是中國時區(qū)

    問題: ? ? ? ? 如題 解決辦法: ? ? ? ? docker參考: ????????????????mysql時間不對,修改時區(qū)_set global time_zone 無效_《小書生》的博客-CSDN博客 ? ? ? ? aws參考: ????????????????https://www.youtube.com/watch?v=B-NaqV-A1BY ????????????????mysql - AWS修改RDS時區(qū)

    2024年02月10日
    瀏覽(24)
  • 云原生-AWS EC2使用、安全性及國內(nèi)廠商對比

    云原生-AWS EC2使用、安全性及國內(nèi)廠商對比

    本文通過實操,介紹了EC2的基本使用,并在功能、安全性上與其他廠商進行對比。 EC2(Elastic Compute Cloud)是AWS云中的服務器,提供按需、可擴展的計算能力。本文以Linux為例。下圖是EC2的位置。 Instance就是EC2,它被Security group(安全組)保護著,持久性存儲使用了EBS( Elastic Block St

    2024年02月08日
    瀏覽(23)
  • 【云原生】aws平臺使用eks發(fā)布load balancer暴露服務到外網(wǎng)

    區(qū)域:中國北京區(qū) 網(wǎng)絡負載均衡: 搭建ingress一定要參考aws官網(wǎng)教程文檔:https://docs.amazonaws.cn/eks/latest/userguide/network-load-balancing.html 開啟外網(wǎng)在svc 上添加注釋:

    2024年02月11日
    瀏覽(23)
  • 云計算采用的各種虛擬化技術比較

    KVM 是一個全虛擬化的解決方案??梢栽?x86 架構(gòu)的計算機上實現(xiàn)虛擬化功能。但 KVM 需要 CPU 中虛擬化功能的支持,只可在具有虛擬化支持的 CPU 上運行,即具有 VT 功能的 Intel CPU 和具有 AMD-V 功能的 AMD CPU。 Xen 也是 Linux 下的一個虛擬化解決方案,也將很快被編入內(nèi)核中。Xen

    2024年02月01日
    瀏覽(28)
  • 11.云原生分布式數(shù)據(jù)庫之TIDB

    11.云原生分布式數(shù)據(jù)庫之TIDB

    云原生專欄大綱 從后端視角、運維視角和基礎架構(gòu)視角來看,使用 TiDB 作為數(shù)據(jù)庫系統(tǒng)可以獲得分布式架構(gòu)、高可用性、強一致性、事務支持、水平擴展、高性能、簡化運維、靈活的擴展和配置、集成的監(jiān)控和告警等優(yōu)勢。這些優(yōu)勢使得 TiDB 成為處理大規(guī)模數(shù)據(jù)和高并發(fā)請求

    2024年02月01日
    瀏覽(26)
  • 【Python數(shù)據(jù)分析】二手車價格預測

    【Python數(shù)據(jù)分析】二手車價格預測

    (1)讀入數(shù)據(jù) (2)分析數(shù)據(jù)格式和確定使用的模型 (3)數(shù)據(jù)預處理 (4)使用所選模型進行測試并改進 (5)應用不同算法(模型)對比效果 (6)使用集成學習算法提升回歸效果 (7)網(wǎng)格搜索調(diào)參數(shù) 1、讀取數(shù)據(jù) 這里使用在阿里巴巴天池下載的二手車交易數(shù)據(jù)https://tia

    2024年02月08日
    瀏覽(28)
  • 1.Python數(shù)據(jù)分析項目——二手車價格預測

    1.Python數(shù)據(jù)分析項目——二手車價格預測

    流程 具體操作 基本查看 查看缺失值、查看重復值、查看數(shù)值類型 預處理 缺失值處理(確定是否處理后,使用篩選方式刪除)拆分數(shù)據(jù) 、標簽的特征處理(處理成0/1格式)、特征工程(one-hot編碼) 數(shù)據(jù)分析 groupby分組求最值數(shù)據(jù)、seaborn可視化 預測 拆分數(shù)據(jù)集、建立模型、

    2024年02月12日
    瀏覽(25)
  • clickhouse系列3:clickhouse分析英國房產(chǎn)價格數(shù)據(jù)

    ?本文使用的數(shù)據(jù)集下載鏈接:?https://download.csdn.net/download/shangjg03/88478086 該數(shù)據(jù)集包含有關英格蘭和威爾士自1995年起到2023年的房地產(chǎn)價格的數(shù)據(jù),超過2800萬條記錄,未壓縮形式的數(shù)據(jù)集大小超過4GB,在ClickHouse中需要約306MB。

    2024年02月10日
    瀏覽(22)
  • 大數(shù)據(jù)分析案例-基于XGBoost算法預測航空機票價格

    大數(shù)據(jù)分析案例-基于XGBoost算法預測航空機票價格

    ???♂? 個人主頁:@艾派森的個人主頁 ???作者簡介:Python學習者 ?? 希望大家多多支持,我們一起進步!?? 如果文章對你有幫助的話, 歡迎評論 ??點贊???? 收藏 ??加關注+ 喜歡大數(shù)據(jù)分析項目的小伙伴,希望可以多多支持該系列的其他文章 大數(shù)據(jù)分析案例合集

    2023年04月08日
    瀏覽(29)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包