Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible errors in the benchmark scripts #1

Open
kvietmeier opened this issue Sep 19, 2023 · 0 comments
Open

Possible errors in the benchmark scripts #1

kvietmeier opened this issue Sep 19, 2023 · 0 comments

Comments

@kvietmeier
Copy link

kvietmeier commented Sep 19, 2023

I was trying to run the scripts and kept getting a syntax error calling out the server option.

It looks like the script was doing a simple "cat" of the .vdbhostnames file and putting them on the commandline separated by spaces.

Adding this fixed it -
HOSTS=$(tr '\n' ',' < ${HOME}/.vdbhostnames | sed 's/,$//')

Now use:
java ${JVMOPTS} -jar CreateChargingDemoData.jar $HOSTS $USERCOUNT $TPMS $MAX_CREDIT

And it will correctly run the commands on all clusters nodes which I assume is the desired outcoome.

Also - in "runbenchmark.sh" these lines won't actually kill all of the running processes because a new one gets spawned for every iteration. Not sure how to safely kill them all since you can't just kill "java". I think we would need to loop through max-min/iteration times and just keep killing.

kill -9 "ps -deaf | grep ChargingDemoKVStore.jar | grep -v grep | awk '{ print $2 }'" 2> /dev/null
kill -9 "ps -deaf | grep ChargingDemoTransactions.jar | grep -v grep | awk '{ print $2 }'" 2> /dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant