Recommended Play/BoneCP settings

274 views
Skip to first unread message

Ben Developer

unread,
Aug 12, 2014, 2:02:22 PM8/12/14
to play-fr...@googlegroups.com
I'm developing a website that will need to scale to ~100K simultaneous users with active DB queries. We code JDBC w/ MySQL. We manually open and close connections, so each connection is tightly held and short-lived. Our logs show ~5 to 20ms per connection, and all requests require a DB connection. 

What are the recommended settings for Play's BoneCP and why? It's difficult to understand their docs regarding partitions, idle age, etc.

Thanks!
Message has been deleted

JP Melanson

unread,
Aug 12, 2014, 2:28:47 PM8/12/14
to play-fr...@googlegroups.com
DB Pool configuration is environment/app specific, so I don't think there is such thing as "Play recommended settings"
Play's default settings are detailed pretty well here: https://www.playframework.com/documentation/2.3.x/SettingsJDBC

Do you have a more specific question?

As a starting point, I would advice finding how many simultaneous connections your production DB can support.
This depend largely on the dataset and the kind of queries you run.
If you already have a running production system, you can monitor it, otherwise, you'll have to guess from stress testing.

virtualeyes

unread,
Aug 12, 2014, 3:58:16 PM8/12/14
to play-fr...@googlegroups.com
Play should move to HikariCP, BoneCP is practically unmaintained at this point. At minimum development has ground to a halt. Perhaps it's stable enough, don't know, had a lot of issues with it last year in production prior to switching to 0.8.1-SNAPSHOT.

Meanwhile, Hikari is actively developed with a very much present author, insanely performant, and supports Java <= 8 . Given that Play 2.4 is targetting Java 8, it's probably worth giving it a thought since BoneCP + Java 8 aren't happening unless the author re-emerges.

2cents

Megazord

unread,
Aug 13, 2014, 2:12:03 PM8/13/14
to play-fr...@googlegroups.com
Tada!

http://edulify.github.io/play-hikaricp.edulify.com/

Here is a HikariCP plugin for Play. :-)

HTH

virtualeyes

unread,
Aug 13, 2014, 7:31:27 PM8/13/14
to play-fr...@googlegroups.com
Indeed, I know about the Hikari plugin options ;-)

Talking about making Hikari the default pool for Play >= 2.4

naturallog

unread,
Aug 14, 2014, 12:02:56 AM8/14/14
to play-fr...@googlegroups.com
+1 for making Hikari the default pool.

In fact, the author of bonecp was in this mailing list recommending to check out Hikari

virtualeyes

unread,
Aug 14, 2014, 7:31:46 AM8/14/14
to play-fr...@googlegroups.com
Exactly, BoneCP author has as much as said, folks, don't have time for this project anymore (and github commit history backs this up), use Hikari.

Any Play devs around to chime in on this issue?

Łukasz Śliwiński

unread,
Aug 14, 2014, 8:03:27 AM8/14/14
to play-fr...@googlegroups.com
I copied your words to github play framework issue:

Look at comments.
Reply all
Reply to author
Forward
0 new messages