Skip to content

Commit

Permalink
Added sleep after finishing 1 iteration, elasticsearch server seems t…
Browse files Browse the repository at this point in the history
…o go down otherwise
  • Loading branch information
DhavalKapil committed Jul 5, 2016
1 parent 3fad92d commit 88f2aa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/stress/test.lua
Expand Up @@ -27,6 +27,7 @@ function test()
operations.getExistingDocuments(dataset)
operations.deleteExistingDocuments(dataset)
operations.getNonExistingDocuments(dataset)
os.execute("sleep 1")

This comment has been minimized.

Copy link
@pmusa

pmusa Jul 7, 2016

Collaborator

The sleep idea is not bad. Maybe we should do it in the bulk request and not at the end of each iteration. Depending on the ES cluster performance, it will kill the server and we do not implement a back-off. So, I would actually sleep a 2s after each bulk request. This test is not about the ES cluster stress, but about the client stress. We want to run it long enough to be able to spot memory issues.

end
end
end

0 comments on commit 88f2aa7

Please sign in to comment.