When using the Ceph RGW cosbench test, there is no way to write how to use path_style_access mode in the document. A look at the Cosbench source code discovery has been supported, but the document is not written.
Submitted a issue to the community: https://github.com/intel-cloud/cosbench/issues/350
In the following configuration file, add the following path_style_access=true parameter
Complete sample:
<?xml version= "1.0" encoding= "UTF-8"?>
<workload name= "S3-sample" description= "sample benchmark for S3" >
<storage type= "S3" config= "accesskey=9tgvu7d9w70esjz54ovx;secretkey=****;p roxyhost=;p roxyport=;endpoint=http ://s3.yyclouds.com; path_style_access=true"/>
<workflow>
<workstage name= "Init" >
<work type= "Init" workers= "config=" Cprefix=s3testqwer;containers=r "/>"
</workstage>
<workstage name= "Prepare" >
<work type= "Prepare" workers= "config=" Cprefix=s3testqwer;containers=r (objects=r) 1,256 sizes=u (1,3) MB "/>
</workstage>
<workstage name= "Main" >
<work name= "main" workers= "Runtime=" >
<operation type= "read" ratio= "1" config= "Cprefix=s3testqwer;containers=u (objects=u) 1,128"/>
<operation type= "Write" ratio= "config=" Cprefix=s3testqwer;containers=u, Objects=u (129,256); Sizes=u (1,3 ) MB "/>
</work>
</workstage>
<workstage name= "Cleanup" >
<work type= "cleanup" workers= "config=" Cprefix=s3testqwer;containers=r (objects=r) 1,256
</workstage>
<workstage name= "Dispose" >
<work type= "dispose" workers= "config=" Cprefix=s3testqwer;containers=r "/>"
</workstage>
</workflow>
</workload>
Cosbench test RGW S3 path_style_access=true mode support