【问题标题】:How to calibrate cassandra-stress graph option?如何校准 cassandra-stress 图选项?
【发布时间】:2019-09-06 14:12:05
【问题描述】:

我设法在集群外运行压力工具。 我已经准备好在我的 cassa 集群上的银行键空间中拥有基本表 bank_transactions。

bank.bank_transactions ( 客户文本, 年份 int, 月份整数, id timeuuid, 数量 int, 卡片文字, 状态文本, PRIMARY KEY ((customerid, year, month), id) ); 这是我的个人资料 yaml 文件:

table: bank_transactions

columnspec:
  - name: customerid
    size: uniform(5..10)
    population: uniform(1..10)
  - name: year
    size: fixed(4)
  - name: month
    size: fixed(2)
  - name: timeuuid
    cluster: uniform(20..40)
  - name: amount
    size: uniform(0..1000000)
  - name: text
    size: uniform(10..15)
  - name: status
    size: uniform(10..20)

insert:
    # How many partition to insert per batch
  partitions: fixed(2)
    # How many rows to update per partition
  select: fixed(1)/500
    # UNLOGGED or LOGGED batch for insert
  batchtype: UNLOGGED

queries:
   customer:
      cql: select *  from bank_transactions where customerid = ? and year = ? and month = ? and id = ?
      fields: multirow
#com.datastax.driver.core.exceptions.InvalidQueryException: 
#Partition key parts: year, month, id, customerid must be restricted as other parts are
   transactions:
      cql: select customerid, amount, card, status, id from bank_transactions where id = ? and customerid = ? and year = ? and month = ? 
      fields: samerow
   regularupdate:
      cql: update bank_transactions set amount = ? where customerid = ? and year = ? and month = ? and id = ?
      fields: samerow
#nestihalo se v casovem limitu, lze navysit pamet, casovy limit...      
#   updatewithlwt:
#      cql: update bank_transactions set amount = ? where customerid = ? and year = ? and month = ? and id = ? IF status = ?
#      fields: samerow

我承受压力

./cassandra-stress user profile=./stress_transactions.yaml ops\(insert=3,customer=3,transactions=2,regularupdate=1\) \
n=10000 -node 172.16.20.104,172.16.20.105,172.16.20.106 -port native=9042 thrift=9160 jmx=7199 -graph file=./transactions.html

我期待在 cassandra.apache 网站上有类似图表的东西

但结果真的很奇怪:

你能帮帮我吗,出了什么问题?

附:不要介意分发等,它只是游乐场......

【问题讨论】:

    标签: database graph cassandra cassandra-stress


    【解决方案1】:

    又玩了一段时间,我设置 n=1000000(没有其他变化),结果好多了。

    希望对某人有所帮助;)

    【讨论】:

      猜你喜欢
      • 2014-04-26
      • 2023-03-27
      • 1970-01-01
      • 2019-12-15
      • 2018-09-12
      • 2016-12-28
      • 1970-01-01
      • 2019-08-10
      • 1970-01-01
      相关资源
      最近更新 更多