1)插入指定條數的數據dom
--events=N limit for total number of events [0]
--time=N limit for total execution time in seconds [10]orm
壓測須要插入200G開始,遞增200G的數據,爲節省時間,沒有cleanup,而是在下一輪開始前使用insert 補齊,開始時只設置了 --events = 500000000, 發現每次插入都是10s即中止,數據量也只有幾萬。 緣由是--time, --events sysbench會取其中先達到的量,在10S 內events未達到,time已知足就中止插入。因此想要以數據量爲標準,就要把 time設置爲一個保證events能完成的值ci
2) 熱點數據it
--rand-type=STRING random numbers distribution {uniform,gaussian,special,pareto} [special]
--rand-spec-iter=N number of iterations used for numbers generation [12]
--rand-spec-pct=N percentage of values to be treated as 'special' (for special distribution) [1]
--rand-spec-res=N percentage of 'special' values to use (for special distribution) [75]io
--rand-spec-pct=10% --rand-spec-res=100% 所有查詢落在10%的行上event
todo:form