diff --git a/s3/README.md b/s3/README.md index 296af4ff8ec0bda319827e553208be4160f77517..347449deed6444b9c4c249458a22f87fb0a76f79 100644 --- a/s3/README.md +++ b/s3/README.md @@ -34,15 +34,15 @@ It is highly suggested to use the property file instead of to send the credentia To execute the benchmark using the S3 storage binding, first files must be uploaded using the "load" option with this command: - ./bin/ycsb load s3 -p table=theBucket -p s3.endPoint=s3.amazonaws.com -p s3.accessKeyId=yourAccessKeyId -p s3.secretKey=yourSecretKey -p recordcount=10 -p operationcount=10 -p workload=com.yahoo.ycsb.workloads.CoreWorkload -p readallfields=true -p readproportion=0.5 -p updateproportion=0.5 -p scanproportion=0 -p insertproportion=0 -p readmodifywriteproportion=0 -p fieldlength=10 -p fieldcount=20 -threads 10 -p requestdistribution=zipfian + ./bin/ycsb load s3 -p table=theBucket -p s3.endPoint=s3.amazonaws.com -p s3.accessKeyId=yourAccessKeyId -p s3.secretKey=yourSecretKey -p fieldlength=10 -p fieldcount=20 -P workloads/workloada -With this command, 10 files will be uploaded. The file size is determined by the number of fields (fieldcount) and by the field size (fieldlength). In this case each file is 200 bytes (10 bytes for each field multiplied by 20 fields). With this command 10 threads will be used. +With this command, the workload A will be executing with the loading phase. The file size is determined by the number of fields (fieldcount) and by the field size (fieldlength). In this case each file is 200 bytes (10 bytes for each field multiplied by 20 fields). Running the command: - ./bin/ycsb load s3 -p table=theBucket -p s3.endPoint=s3.amazonaws.com -p s3.accessKeyId=yourAccessKeyId -p s3.secretKey=yourSecretKey -p recordcount=10 -p operationcount=10 -p workload=com.yahoo.ycsb.workloads.CoreWorkload -p readallfields=true -p readproportion=0.5 -p updateproportion=0.5 -p scanproportion=0 -p insertproportion=0 -p readmodifywriteproportion=0 -p fieldlength=10 -p fieldcount=20 -threads 10 -p requestdistribution=zipfian + ./bin/ycsb -t s3 -p table=theBucket -p s3.endPoint=s3.amazonaws.com -p s3.accessKeyId=yourAccessKeyId -p s3.secretKey=yourSecretKey -p fieldlength=10 -p fieldcount=20 -P workloads/workloada -the workload A will be executed with 50/50 updates/reads. +the workload A will be executed with file size 200 bytes. #### S3 Storage Configuration Parameters diff --git a/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java b/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java index 92c4375519431d451828f221914f836b289ff693..c017b013651fa513ce8d2dbbb7c7c3b9d7ca60fe 100644 --- a/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java +++ b/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java @@ -77,7 +77,6 @@ public class S3Client extends DB { private static String sse; private static SSECustomerKey ssecKey; private static final AtomicInteger INIT_COUNT = new AtomicInteger(0); - //private static int initCount = 0; /** * Cleanup any state for this storage.