test_rules.ini 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [Rule "single-condition-false"]
  2. suggestions=inc-bg-flush:inc-write-buffer
  3. conditions=log-4-false
  4. [Rule "multiple-conds-true"]
  5. suggestions=inc-write-buffer
  6. conditions=log-1-true:log-2-true:log-3-true
  7. [Rule "multiple-conds-one-false"]
  8. suggestions=inc-bg-flush
  9. conditions=log-1-true:log-4-false:log-3-true
  10. [Rule "multiple-conds-all-false"]
  11. suggestions=l0-l1-ratio-health-check
  12. conditions=log-4-false:options-1-false
  13. [Condition "log-1-true"]
  14. source=LOG
  15. regex=Stopping writes because we have \d+ immutable memtables \(waiting for flush\), max_write_buffer_number is set to \d+
  16. [Condition "log-2-true"]
  17. source=LOG
  18. regex=Stalling writes because we have \d+ level-0 files
  19. [Condition "log-3-true"]
  20. source=LOG
  21. regex=Stopping writes because we have \d+ level-0 files
  22. [Condition "log-4-false"]
  23. source=LOG
  24. regex=Stalling writes because of estimated pending compaction bytes \d+
  25. [Condition "options-1-false"]
  26. source=OPTIONS
  27. options=CFOptions.level0_file_num_compaction_trigger:CFOptions.write_buffer_size:DBOptions.random_access_max_buffer_size
  28. evaluate=int(options[0])*int(options[1])-int(options[2])<0 # should evaluate to a boolean
  29. [Suggestion "inc-bg-flush"]
  30. option=DBOptions.max_background_flushes
  31. action=increase
  32. [Suggestion "inc-write-buffer"]
  33. option=CFOptions.max_write_buffer_number
  34. action=increase
  35. [Suggestion "l0-l1-ratio-health-check"]
  36. description='modify options such that (level0_file_num_compaction_trigger * write_buffer_size - max_bytes_for_level_base < 5) is satisfied'