Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Increase throughput for Grizzly and undertow by parallelizing DB access#1439

Merged
LadyMozzarella merged 7 commits intoTechEmpower:masterfrom
denkab:master
Apr 4, 2015
Merged

Increase throughput for Grizzly and undertow by parallelizing DB access#1439
LadyMozzarella merged 7 commits intoTechEmpower:masterfrom
denkab:master

Conversation

@denkab
Copy link
Copy Markdown
Contributor

@denkab denkab commented Mar 24, 2015

  1. Original configuration of connection for Hibernate in Grizzly-Jersey was highly inadequate. Bumped connection count to match claimed parallelism of test framework (256).
  2. Parallelized DB operations for Grizzly-Jersey and undertow

@LadyMozzarella LadyMozzarella added this to the Round 11 milestone Mar 24, 2015
@denkab
Copy link
Copy Markdown
Contributor Author

denkab commented Mar 26, 2015

Can not reproduce Mongo failure in my set up where I run it in a VirtualBox VM with 4 GB allocated. If I run the service by "./setup.sh" and then hit it with request, it returns just fine. If I run full blown test, the test terminates and the terminal session is "Connection to 127.0.0.1 closed by remote host."

Not my fault? :o)

@LadyMozzarella
Copy link
Copy Markdown
Contributor

All of the mongodb tests tend to fail in Travis-CI. I ran your branch on the tests you changed through vagrant and it all looks good to me.

undertowgrizzlyverify

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It appears that this method (IdentifierLoadAccess.load) could potentially be returning the data from a cache based off of this description from the Hibernate JavaDoc:

If the instance is already associated with the session, return that instance, initializing it if needed.

This sounds like it could be a cache. If this is the case, we would need to ensure that it makes direct database access. Do you mind providing some clarification?

@denkab
Copy link
Copy Markdown
Contributor Author

denkab commented Apr 3, 2015

For query cache to work it needs to be enabled. Whomever first introduced this framework upheld the benchmark contract by supplying Hibernate configuration:
<property name="hibernate.cache.use_query_cache">false</property>

@LadyMozzarella LadyMozzarella self-assigned this Apr 3, 2015
LadyMozzarella added a commit that referenced this pull request Apr 4, 2015
Increase throughput for Grizzly and undertow by parallelizing DB access
@LadyMozzarella LadyMozzarella merged commit ce09e84 into TechEmpower:master Apr 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants