Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. #
  2. # This is an example YAML profile for cassandra-stress
  3. #
  4. # insert data
  5. # cassandra-stress user profile=/home/jake/stress1.yaml ops(insert=1)
  6. #
  7. # read, using query simple1:
  8. # cassandra-stress profile=/home/jake/stress1.yaml ops(simple1=1)
  9. #
  10. # mixed workload (90/10)
  11. # cassandra-stress user profile=/home/jake/stress1.yaml ops(insert=1,simple1=9)
  12.  
  13. #ignoring errors
  14. #./cassandra-stress user cl=QUORUM profile=/home/ubuntu/stress.yaml ops\(insert=1\) -node 10.20.15.45 -errors ignore -rate threads=1000#
  15. #
  16. # Keyspace info
  17. #
  18. keyspace: summit_stressv4
  19.  
  20. #
  21. # The CQL for creating a keyspace (optional if it already exists)
  22. #
  23.  
  24. #
  25. # Table info
  26. #
  27. table: test_tablev4
  28.  
  29. #
  30. # The CQL for creating a table you wish to stress (optional if it already exists)
  31. #
  32. #keyspace_definition: |
  33. # CREATE KEYSPACE summit_stressv4 WITH replication = {'class': 'NetworkTopologyStrategy', 'us-east': '3'} AND durable_writes = true;
  34.  
  35. #USE summit_stress;
  36.  
  37. # CREATE TABLE test_tablev4 (
  38. # rowkey text,
  39. # C0 blob,
  40. # C1 blob,
  41. # C2 blob,
  42. # C3 blob,
  43. # C4 blob,
  44. # sortkey timestamp,
  45. # PRIMARY KEY (rowkey)
  46. # ) WITH
  47. # bloom_filter_fp_chance=0.010000 AND
  48. # caching='KEYS_ONLY' AND
  49. # comment='table example for cassandra summit' AND
  50. # dclocal_read_repair_chance=0.100000 AND
  51. # gc_grace_seconds=0 AND
  52. # index_interval=128 AND
  53. # read_repair_chance=0.000000 AND
  54. # replicate_on_write='true' AND
  55. # populate_io_cache_on_flush='false' AND
  56. # speculative_retry='99.0PERCENTILE' AND
  57. # memtable_flush_period_in_ms=0 AND
  58. # compaction={'timestamp_resolution': 'MICROSECONDS', 'class': 'DateTieredCompactionStrategy', 'max_sstable_age_days': '1', 'base_time_seconds': '60', 'min_threshold': '4'} AND
  59. # compression={'chunk_length_kb': '128', 'sstable_compression': 'LZ4Compressor'};
  60.  
  61. #
  62. # Optional meta information on the generated columns in the above table
  63. # The min and max only apply to text and blob types
  64. # The distribution field represents the total unique population
  65. # distribution of that column across rows. Supported types are
  66. #
  67. # EXP(min..max) An exponential distribution over the range [min..max]
  68. # EXTREME(min..max,shape) An extreme value (Weibull) distribution over the range [min..max]
  69. # GAUSSIAN(min..max,stdvrng) A gaussian/normal distribution, where mean=(min+max)/2, and stdev is (mean-min)/stdvrng
  70. # GAUSSIAN(min..max,mean,stdev) A gaussian/normal distribution, with explicitly defined mean and stdev
  71. # UNIFORM(min..max) A uniform distribution over the range [min, max]
  72. # FIXED(val) A fixed distribution, always returning the same value
  73. # Aliases: extr, gauss, normal, norm, weibull
  74. #
  75. # If preceded by ~, the distribution is inverted
  76. #
  77. # Defaults for all columns are size: uniform(4..8), population: uniform(1..100B), cluster: fixed(1)
  78. #
  79. #columnspec:
  80. # - name: name
  81. # size: uniform(1..10)
  82. # population: uniform(1..1M) # the range of unique values to select for the field (default is 100Billion)
  83. # - name: date
  84. # cluster: uniform(20..40)
  85. # - name: lval
  86. # population: gaussian(1..1000)
  87. # cluster: uniform(1..4)
  88.  
  89. insert:
  90. partitions: uniform(1) # number of unique partitions to update in a single operation
  91. # if batchcount > 1, multiple batches will be used but all partitions will
  92. # occur in all batches (unless they finish early); only the row counts will vary
  93. select: uniform(4..5)/10 # uniform chance any single generated CQL row will be visited in a partition;
  94. # generated for each partition independently, each time we visit it
  95. #batchtype: UNLOGGED # type of batch to use
  96.  
  97.  
  98. columnspec:
  99. - name: C0
  100. size: fixed(34)
  101. - name: C1
  102. size: fixed(34)
  103. - name: C2
  104. size: fixed(34)
  105. - name: C3
  106. size: fixed(34)
  107. - name: C4
  108. size: fixed(34)
  109.  
  110.  
  111. #
  112. # Insert settings
  113. #
  114.  
  115. insert:
  116. partitions: fixed(1)
  117. select: fixed(4)/4
  118. batchtype: UNLOGGED
  119.  
  120. #
  121. # A list of queries you wish to run against the schema
  122. #
  123. queries:
  124. simple:
  125. cql: select * from test_tablev4 where rowkey = ? LIMIT 10;
  126. fields: multirow # samerow or multirow (select arguments from the same row, or randomly from all rows in the partition)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement