Performance on par with Docker for Mac beta when using Couchbase from docker hub
Terrible performance, making it unusable (on Windows)
I’ve gotten Docker for Windows beta to work; it was slick and easy and I really like the experimental localhost option.
However, I’m trying to set up a couchbase cluster, and that’s when docker execution becomes terribly slow and unreliable. When I do the exact same thing on Docker for Mac beta, it’s super speedy and works great.
Steps to reproduce the behavior
- docker run -d --name cb1 -p 8091:8091 couchbase
- Login to Couchbase Console (http://localhost:8091)
- Follow instructions to setup the Couchbase instance
In step 3, it usually locks up after the first setup step (I just get a spinner graphic in the browser).
Some things to note that might be helpful:
- I’ve run Couchbase Server outside of Docker on Windows successfully with no performance problems (on the same hardware, in fact, as I’m running boot camp on this mac).
- I’ve also run in a ‘normal’ non-Mac PC in Windows, so I don’t think it’s a boot camp issue.
- With Docker for Windows, I experimented with adding more cores, more RAM, to no effect.
- On Docker for Windows, I ran “docker stats”, and it didn’t seem like the CPU or RAM was being hit very hard.
- Ultimately, my plan is to have multiple Couchbase servers running in docker (e.g. docker run -d --name cb2 -p 8092:8091 couchbase, docker run -d --name cb3 -p 8093:8091 couchbase), and then joining them into a single cluster. But if I can’t even get one working well, then I doubt adding more will be any better.
Am I doing something wrong? Is there some knob I can tweak to improve performance? Or is this part of the pain of being a “beta”