sysbench 参数

 

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

相关文章
相关标签/搜索