Closed JYang1986 closed 7 years ago
Oh, I think you may mess up the concept of driver and worker... There is no relationship between the two. In my opinion, driver means client, and worker means worker thread, One server one driver is enough. Worker means concurrency, and one driver can handle many workers. We usually write workload like this:
<workstage name="put-special">
<work name="driver1" workers="500" totalOps="2000000" driver="driver1">
<storage type="s3" config="accesskey=cosbench;secretkey=cosbench;endpoint=http://127.0.0.1:8080/" />
<operation type="write" ratio="100" config="cprefix=cosbench;oprefix=4M_R11_;objects=s(1,2000000);containers=c(1);sizes=c(4)KB" />
</work>
<work name="driver2" workers="500" totalOps="2000000" driver="driver2">
<storage type="s3" config="accesskey=cosbench;secretkey=cosbench;endpoint=http://127.0.0.2:8080/" />
<operation type="write" ratio="100" config="cprefix=cosbench;oprefix=4M_R21_;objects=s(1,2000000);containers=c(1);sizes=c(4)KB" />
</work>
<work name="driver3" workers="500" totalOps="2000000" driver="driver3">
<storage type="s3" config="accesskey=cosbench;secretkey=cosbench;endpoint=http://127.0.0.3:8080/" />
<operation type="write" ratio="100" config="cprefix=cosbench;oprefix=4M_R31_;objects=s(1,2000000);containers=c(1);sizes=c(4)KB" />
</work>
<work name="driver4" workers="500" totalOps="2000000" driver="driver4">
<storage type="s3" config="accesskey=cosbench;secretkey=cosbench;endpoint=http://127.0.0.4:8080/" />
<operation type="write" ratio="100" config="cprefix=cosbench;oprefix=4M_R41_;objects=s(1,2000000);containers=c(1);sizes=c(4)KB" />
</work>
</workstage>
I use 4 drivers just because I use 4 physical machines as COSBench driver.
Also, your workload didn't specify any driver...
BTW, containers=u(1,2);objects=s(1,500)
is not a good idea, 500 or 1000 objects in total ? It's hard to understand... COSBench seems to be unsupported now(don't understand why java...), the conf-example may mislead you.
Thank you。I'm a chinese and a C progammer and I have no time to research the COSBench code. So I could only read the operating manual, but the manual is not detailed, there are problems, like chunk flag is useless, I have read the code of chunk flag, the code have chunk flag, but the COSBench set doesn't work, this wasted my whole day, and finally we decided not use COSBench to test the file which greater than 5G 。And the conf-examples is not very good, so I used to be very confused. Like write success 100%, but read success is very low which use the same conf. I don't understand how this happen. I know the dirver is the client, in fact, each driver will start a process, bind two ports, one for web, another for ohter operate, but the problem of read success is very low and in my company no one used COSBench, so I comment this issues. Thank you very much for your answer. But I have not enough time, I had to try other methods, and finally found start more drivers, the read success is 100%, I have to only temporarily use this method. I have been in the customer's company to do POC. When I come back my company, I will try your suggest.
Yep, If COSBench is written in C/C++, I would try support it... But now, we still regard COSBench as first choice in frontend test when testing ceph. Based on my teammmates effort, we can handle it. CHN too.
@Wilhelmshaven do you have qq or weixin, i have send a message to your email nntt19@163.com。my email is dahaimydream@126.com,my qq is 69725462. waiting for your answer
Problem Description
210 drivers is all alive
test xml: `<?xml version="1.0" encoding="UTF-8" ?>