Open gwnet opened 4 years ago
you repo link in the readme is broken, I download from maven myself http://repo.maven.apache.org/maven2/com/github/emc-mongoose/mongoose-storage-driver-s3/
I've double checked and both jar and docker image are working fine.
Also: make sure that you are doing what you want to do. Right now you are using an old bundle that has a built-in s3 driver and doesn't use the new one from: https://repo.maven.apache.org/maven2/com/github/emc-mongoose/mongoose-storage-driver-s3/. If you want to use an old bundle for whatever reason - that's fine. If you expect to be using latest s3 driver, consider reading deployment part of readme and getting the base image from https://mvnrepository.com/artifact/com.github.emc-mongoose/mongoose-base
@dadlex my environment cannot install docker. I failed to find correct to deploy this mongoose easily. could you please share me one simple guide how to deploy one mongoose to run on host OS on minio? too many jar files. :(
@gwnet what is your java version (java --version/java -version)?
@dadlex [root@localhost ~]# java --version openjdk 11.0.7 2020-04-14 LTS OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing) [root@localhost ~]#
Great. @gwnet Now try using latest mongoose bundle: https://repo.maven.apache.org/maven2/com/github/emc-mongoose/mongoose-bundle/4.2.15/mongoose-bundle-4.2.15.jar. Put it somewhere on the system and from that directory run: java -jar mongoose-bundle-4.2.15.jar --storage-driver-type=s3 --storage-net-node-port=9000 --storage-auth-uid=minioadmin --storage-auth-secret=minioadmin --storage-net-node-addrs=127.0.0.1. This are the same steps you were doing before, just with a newer version. If the issue persists, we'll see what to do next. In case the error is the same, please send the logs from running the following command: java -jar mongoose-bundle-4.2.15.jar --storage-driver-type=dummy-mock --load-op-limit-count=1000
@dadlex I will try this, and let you know the result. :) this is much simple now. :)
@dadlex thank you so much. it works from my side.
[root@localhost mongoosebin]# java -jar mongoose-bundle-4.2.15.jar --storage-driver-type=s3 --storage-net-node-port=9000 --storage-auth-uid=minioadmin --storage-auth-secret=minioadmin --storage-net-node-addrs=127.0.0.1 ################################################## mongoose v 4.2.18 ################################################## 2020-05-28 05:19:44,032 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory. 2020-05-28 05:19:44,034 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory. 2020-05-28 05:19:44,036 main INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory. 2020-05-27T21:19:44,245 I main Available/installed extensions: Load --------------------------> com.emc.mongoose.base.load.step.linear.LinearLoadStepExtension dummy-mock --------------------> com.emc.mongoose.base.storage.driver.mock.DummyStorageDriverMockExtension PipelineLoad ------------------> com.emc.mongoose.load.step.pipeline.PipelineLoadStepExtension WeightedLoad ------------------> com.emc.mongoose.load.step.weighted.WeightedLoadStepExtension coop-mock ---------------------> com.emc.mongoose.storage.driver.coop.mock.CoopStorageDriverMockExtension net ---------------------------> com.emc.mongoose.storage.driver.coop.netty.NettyStorageDriverExtension netty-mock --------------------> com.emc.mongoose.storage.driver.coop.netty.mock.NettyStorageDriverMockExtension nio-mock ----------------------> com.emc.mongoose.storage.driver.coop.nio.mock.NioStorageDriverMockExtension http --------------------------> com.emc.mongoose.storage.driver.coop.netty.http.HttpStorageDriverExtension fs ----------------------------> com.emc.mongoose.storage.driver.coop.nio.fs.FileStorageDriverExtension atmos -------------------------> com.emc.mongoose.storage.driver.coop.netty.http.atmos.AtmosStorageDriverExtension s3 ----------------------------> com.emc.mongoose.storage.driver.coop.netty.http.s3.S3StorageDriverExtension swift -------------------------> com.emc.mongoose.storage.driver.coop.netty.http.swift.SwiftStorageDriverExtension
Step Id | Timestamp | Op | Concurrency | Count | Step | Last Rate | Mean | Mean (last 10 |
type | --------------------- | ------------------- | Time | ---------------- | Latency | Duration symbols) |
yyMMddHHmmss | Current | Mean | Success | Failed | [s] | [op/s] | [MB/s] | [us] | [us] | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
211944.758 | 200527211945 | CREATE | 0 | 0.0 | 0 | 0 | 0.002 | 0.0 | 0.0 | 0 | 0 |
thank you so much again. could you please give me one example? I run create test, and it will generate one csv file, then my next load test will load from this csv file?
Sorry for the huge delay @gwnet . This is how it can look:
var sharedConfig = {
"storage" : {
"auth": {
"uid": "user1",
"secret": "secretKey1"
},
"driver" : {
"type" : "s3",
"limit": {
"concurrency": 0
}
},
"net" : {
"node" : {
"port" : 9000,
"addrs" : "127.0.0.1"
}
}
}
}
var writeConfig = {
"load": {
"op": {
"limit": {
"count": 1000
}
}
},
"item": {
"output": {
"file": "/objects.csv",
"path": "/bucket1"
},
"data": {
"size": "1KB"
}
}
}
var readConfig = {
"load": {
"op": {
"type": "read"
}
},
"item": {
"input": {
"file": "/objects.csv",
"path": "/bucket1"
}
}
}
Load
.config(sharedConfig)
.config(writeConfig)
.run();
Load
.config(sharedConfig)
.config(readConfig)
.run();
@dadlex hello buddy, I have run the command well now. thank you so much. when I run below read command on the same 4096k.csv files multiple times. each time, the tool will read the object inside csv by fixed same sequence? or randomly? java -jar mongoose-bundle-4.2.15.jar --storage-driver-type=s3 --storage-net-node-port=9000 --storage-auth-uid=minioadmin --storage-auth-secret=minioadmin --storage-net-node-addrs=127.0.0.1 --load-op-type=READ --item-data-size=4096k --item-input-file=4096k.csv --load-step-id=wayne-4096k --storage-driver-limit-concurrency=40 --load-op-limit-count=1000000 --load-step-limit-time=3600
@gwnet, hi there! Mongoose will create several actual java threads and those threads will take items in the same order from the file each time. But the order in which they are completed can be different based on the fact which thread finishes its item first. So, yes, the input is the fixed sequence.
@dadlex hello buddy, can you show me how to run this mongoose-bundle-4.2.15.jar in distributed mode, I have 4 minio server and I would like run mongoose in distributed mode. and one client to control 4 mongoose server to run. :)
thank you so much
hello below is the error I suffer during run mongoose load on minio. what I am missing?
====error log==== [root@localhost mongoose]# sudo java -jar mongoose-4.1.4.jar --storage-driver-type=s3 --storage-net-node-port=9000 --storage-auth-uid=minioadmin --storage-auth-secret=minioadmin --storage-net-node-addrs=127.0.0.1 ################################################### mongoose v 4.1.4 ################################################### 2020-05-25T21:53:10,101 I main Available/installed extensions: dummy-mock --------------------> com.emc.mongoose.storage.driver.mock.DummyStorageDriverMockExtension Load --------------------------> com.emc.mongoose.load.step.linear.LinearLoadStepExtension PipelineLoad ------------------> com.emc.mongoose.load.step.pipeline.PipelineLoadStepExtension WeightedLoad ------------------> com.emc.mongoose.load.step.weighted.WeightedLoadStepExtension coop-mock ---------------------> com.emc.mongoose.storage.driver.coop.mock.CoopStorageDriverMockExtension net ---------------------------> com.emc.mongoose.storage.driver.coop.netty.NettyStorageDriverExtension netty-mock --------------------> com.emc.mongoose.storage.driver.coop.netty.mock.NettyStorageDriverMockExtension http --------------------------> com.emc.mongoose.storage.driver.coop.netty.http.HttpStorageDriverExtension atmos -------------------------> com.emc.mongoose.storage.driver.coop.netty.http.atmos.AtmosStorageDriverExtension s3 ----------------------------> com.emc.mongoose.storage.driver.coop.netty.http.s3.AmzS3StorageDriverExtension swift -------------------------> com.emc.mongoose.storage.driver.coop.netty.http.swift.SwiftStorageDriverExtension nio-mock ----------------------> com.emc.mongoose.storage.driver.coop.nio.mock.NioStorageDriverMockExtension fs ----------------------------> com.emc.mongoose.storage.driver.coop.nio.fs.FileStorageDriverExtension preempt-mock ------------------> com.emc.mongoose.storage.driver.preempt.mock.PreemptStorageDriverMockExtension
Warning: Nashorn engine is planned to be removed from a future JDK release 2020-05-25T21:53:10,307 I main Using the "Oracle Nashorn" scenario engine 2020-05-25T21:53:10,630 E LinearLoadStepClient main linear_20200525.215310.599: failed to init the storage driver CAUSE: com.emc.mongoose.exception.OmgShootMyFootException: Failed to create the storage driver for the type "s3 ", available types: [dummy-mock, coop-mock, netty-mock, atmos, s3, swift, nio-mock, fs, preempt-mock] 2020-05-25T21:53:10,657 E LinearLoadStepClient main linear_20200525.215310.599: failed to start the step slice "com.emc.mongoose.load.step.linear.LinearLoadStepLocal@32cb636e" CAUSE: java.lang.IllegalStateException: Failed to initialize the storage driver CAUSE: com.emc.mongoose.exception.OmgShootMyFootException: Failed to create the storage driver for the type "s3 ", available types: [dummy-mock, coop-mock, netty-mock, atmos, s3, swift, nio-mock, fs, preempt-mock] 2020-05-25T21:53:10,658 I LinearLoadStepClient main linear_20200525.215310.599: load step client started, additional nodes: [] 2020-05-25T21:53:10,701 I main linear_20200525.215310.599: await for 1 step slices done May 26, 2020 5:53:10 AM com.github.akurilov.commons.concurrent.AsyncRunnableBase shutdown WARNING: Not allowed to shutdown while state is "SHUTDOWN" May 26, 2020 5:53:10 AM com.github.akurilov.commons.concurrent.AsyncRunnableBase shutdown WARNING: Not allowed to shutdown while state is "STOPPED" May 26, 2020 5:53:10 AM com.github.akurilov.commons.concurrent.AsyncRunnableBase stop WARNING: Not allowed to stop while state is "STOPPED" May 26, 2020 5:53:10 AM com.github.akurilov.commons.concurrent.AsyncRunnableBase shutdown WARNING: Not allowed to shutdown while state is "STOPPED" May 26, 2020 5:53:10 AM com.github.akurilov.commons.concurrent.AsyncRunnableBase stop WARNING: Not allowed to stop while state is "STOPPED" May 26, 2020 5:53:10 AM com.github.akurilov.commons.concurrent.AsyncRunnableBase shutdown WARNING: Not allowed to shutdown while state is "STOPPED" May 26, 2020 5:53:10 AM com.github.akurilov.commons.concurrent.AsyncRunnableBase stop WARNING: Not allowed to stop while state is "STOPPED" [root@localhost mongoose]#
===my ext folder is=== [root@localhost ext]# ls -l total 6640 -rwxrwxrwx. 1 root root 8691 May 26 03:45 mongoose-load-step-linear.jar -rwxrwxrwx. 1 root root 12052 May 26 03:45 mongoose-load-step-pipeline.jar -rwxrwxrwx. 1 root root 12061 May 26 03:45 mongoose-load-step-weighted.jar -rwxrwxrwx. 1 root root 12270 May 26 03:45 mongoose-storage-driver-coop.jar -rwxrwxrwx. 1 root root 15045 May 26 03:45 mongoose-storage-driver-coop-netty-http-atmos.jar -rwxrwxrwx. 1 root root 578814 May 26 03:45 mongoose-storage-driver-coop-netty-http.jar -rwxrwxrwx. 1 root root 24166 May 26 03:45 mongoose-storage-driver-coop-netty-http-s3.jar -rwxrwxrwx. 1 root root 21192 May 26 03:45 mongoose-storage-driver-coop-netty-http-swift.jar -rwxrwxrwx. 1 root root 6020463 May 26 03:45 mongoose-storage-driver-coop-netty.jar -rwxrwxrwx. 1 root root 23839 May 26 03:45 mongoose-storage-driver-coop-nio-fs.jar -rwxrwxrwx. 1 root root 13625 May 26 03:45 mongoose-storage-driver-coop-nio.jar -rwxrwxrwx. 1 root root 8914 May 26 03:45 mongoose-storage-driver-preempt.jar -rwxrwxrwx. 1 root root 27022 May 26 05:40 mongoose-storage-driver-s3.jar [root@localhost ext]#