Skip to content

Added simple stress test #241

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

Merged
merged 3 commits into from
May 23, 2017
Merged

Added simple stress test #241

merged 3 commits into from
May 23, 2017

Conversation

lutovich
Copy link
Contributor

@lutovich lutovich commented May 8, 2017

It executes read and write queries randomly against a given or default (bolt://localhost) URI. Queries are executed in both explicit and implicit transactions, both with and without bookmarks. Test can read environment variables to switch mode (fast or extended), turn on/off logging and change database URI. This makes it possible to run test against real cluster using bolt+routing scheme. New npm script is added for this run-stress-tests

It executed read and write queries randomly against a given or default
(`bolt://localhost`) URI. Queries are executed in both explicit and
implicit transactions, both with and without bookmarks. Test can read
environment variables to switch mode (fast or extended), turn on/off
logging and change database URI. This makes it possible to run test
against real cluster using `bolt+routing` scheme. New npm script is
added for this `run-stress-tests`
@lutovich
Copy link
Contributor Author

lutovich commented May 8, 2017

Set of seen servers should be checked as well to make sure routing (if any) works.

To make sure direct driver talks only to a single server and routing
driver uses multiple servers and actually performs routing.
import _ from 'lodash';
import sharedNeo4j from '../internal/shared-neo4j';

fdescribe('stress tests', () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes :)
Thanks for spotting this.

@lutovich lutovich merged commit ed03624 into neo4j:1.3 May 23, 2017
@lutovich lutovich deleted the 1.3-stress-it branch May 23, 2017 12:21
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

Successfully merging this pull request may close these issues.

2 participants