You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Clay B. (JIRA)" <ji...@apache.org> on 2018/12/21 01:23:00 UTC
[jira] [Comment Edited] (RATIS-456) Add a load generator for
Filestore example
[ https://issues.apache.org/jira/browse/RATIS-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16726362#comment-16726362 ]
Clay B. edited comment on RATIS-456 at 12/21/18 1:22 AM:
---------------------------------------------------------
D'oh! It looks like I'm running late to the party but I think the README.md is a bit off:
{{+For example `ratis-examples/src/main/bin/client.sh filestore loadgen --value 1048576 --files 1000 --peers n0:172.26.32.224:6000,n1:172.26.32.225:6001,n2:172.26.32.226:6002`}}
However, when running the load gen. I get:
{code}
Wrong parameters: Was passed main parameter '--value' but no main parameter was defined in your arg class
Usage: <main class> [command] [command options]
Commands:
server Start an filestore server
Usage: server [options]
Options:
* --id, -i
Raft id of this server
* --peers, -r
Raft peers (format: name:host:port,name:host:port)
--raftGroup, -g
Raft group identifier
Default: demoRaftGroup123
* --storage, -s
Storage dir
loadgen Load Generator for FileStore
Usage: loadgen [options]
Options:
* --numFiles
Number of files
* --peers, -r
Raft peers (format: name:host:port,name:host:port)
--raftGroup, -g
Raft group identifier
Default: demoRaftGroup123
* --size
Size of each file
{code}
Using {{ --size }} and {{ --numFiles }} works happily though. I'm integrating it into my fault injection tests now so thank you [~msingh]!
was (Author: clayb):
D'oh! It looks like I'm running late to the party but I think the README.md is a bit off:
{{+For example `ratis-examples/src/main/bin/client.sh filestore loadgen --value 1048576 --files 1000 --peers n0:172.26.32.224:6000,n1:172.26.32.225:6001,n2:172.26.32.226:6002`}}
However, when running the load gen. I get:
{code}
Wrong parameters: Was passed main parameter '--value' but no main parameter was defined in your arg class
Usage: <main class> [command] [command options]
Commands:
server Start an filestore server
Usage: server [options]
Options:
* --id, -i
Raft id of this server
* --peers, -r
Raft peers (format: name:host:port,name:host:port)
--raftGroup, -g
Raft group identifier
Default: demoRaftGroup123
* --storage, -s
Storage dir
loadgen Load Generator for FileStore
Usage: loadgen [options]
Options:
* --numFiles
Number of files
* --peers, -r
Raft peers (format: name:host:port,name:host:port)
--raftGroup, -g
Raft group identifier
Default: demoRaftGroup123
* --size
Size of each file
{code}
Using {{--size}} and {{--numFiles}} works happily though. I'm integrating it into my fault injection tests now so thank you [~msingh]!
> Add a load generator for Filestore example
> ------------------------------------------
>
> Key: RATIS-456
> URL: https://issues.apache.org/jira/browse/RATIS-456
> Project: Ratis
> Issue Type: Bug
> Components: examples
> Affects Versions: 0.4.0
> Reporter: Mukul Kumar Singh
> Assignee: Mukul Kumar Singh
> Priority: Blocker
> Fix For: 0.4.0
>
> Attachments: RATIS-456.001.patch, RATIS-456.002.patch
>
>
> This jira proposes to add a load generator to Ratis. This will be used to test the FileStoreStateMachine.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)