eventstore-docker icon indicating copy to clipboard operation
eventstore-docker copied to clipboard

Why don't use in production?

Open shouze opened this issue 10 years ago • 22 comments

I've seen this warning message in entrypoint.sh, for which reason we can't use it in production? Is it still relevant?

shouze avatar Apr 08 '16 13:04 shouze

You are generally better off not running db nodes in docker in general

gregoryyoung avatar Apr 08 '16 14:04 gregoryyoung

Yup, can be run as an external service of course, I was wondering if you had some serious worries/race conditions excepting that.

shouze avatar Apr 08 '16 15:04 shouze

Nope.

gregoryyoung avatar Apr 08 '16 15:04 gregoryyoung

https://m.youtube.com/watch?v=PivpCKEiQOQ

gregoryyoung avatar Apr 10 '16 16:04 gregoryyoung

So, if I was to use it with some sort of persistent volume then I'd be fine? (e.g. using Flocker.)

TomFreeman avatar Apr 18 '16 21:04 TomFreeman

There is nothing to preclude you from doing so. For a low workload environment it might even be sensible. Once you start caring about things like 99% latencies and getting consistent heavy workloads another layer of abstraction may not be the best idea

On Tue, Apr 19, 2016 at 12:42 AM, Thomas Freeman [email protected] wrote:

So, if I was to use it with some sort of persistent volume then I'd be fine? (e.g. using Flocker.)

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/EventStore/eventstore-docker/issues/7#issuecomment-211594676

Studying for the Turing test

gregoryyoung avatar Apr 18 '16 22:04 gregoryyoung

In particular pay attention to the networking. If you run docker in an environment that gives every container a public network address - and the address inside is the same as the address outside - you will have a much better time.

jen20 avatar Apr 18 '16 22:04 jen20

You are generally better off not running db nodes in docker in general

@gregoryyoung what is the reason for that? Is it better to run manager nodes in Docker? If so, why is that?

Thanks!

DavidBrower avatar Feb 02 '17 10:02 DavidBrower

@DavidBrower lots of reasons - performance of the network stack, random crashes and high load and so forth. Since machine should be dedicated to running databases, it's unclear what value Docker providers, other than as a package manager. However, we already provide packages for the native OS package managers of a variety of distributions, so there really is no benefit.

jen20 avatar Feb 02 '17 11:02 jen20

However, we already provide packages for the native OS package managers of a variety of distributions, so there really is no benefit.

@jen20 Do you have some further information on that? I'm researching our options for clustering at the moment. We have a fairly large Azure credit allowance so that we will probably looking to set up a cluster on Azure at some point.

DavidBrower avatar Feb 02 '17 12:02 DavidBrower

@DavidBrower There are docs here. We ship OSS packages for Ubuntu 14.04 and 16.04 (the last two LTS releases), and commercial packages for a wider variety of operating systems including CentOS and Amazon Linux.

If you want a quick start for Azure, @markrendle has put together a Terraform configuration which will bring up a three node cluster at RendleLabs/eventstore-azure-terraform. You will likely need to tweak configuration to match your production requirements however.

jen20 avatar Feb 02 '17 12:02 jen20

That's great. Thanks, James.

DavidBrower avatar Feb 02 '17 12:02 DavidBrower

@DavidBrower @jen20 yup pretty agree, there's an interest to use eventstore docker containers: ci & local dev/testing.

For production, I'm not totally agree about network they've done great work now, the main drawback remains storage indeed. let's see though if in the next 12 months if they bring a cool solution as they've recently acquired infinit storage & the roadmap they have looks great.

shouze avatar Feb 02 '17 12:02 shouze

My experience of the "great work" is still massive amounts of downtime in various production systems even on late kernels. If you want to use containers and the Docker image format without these issues, I'd recommend looking at SmartOS instead of Linux.

jen20 avatar Feb 02 '17 12:02 jen20

Yup, can be run as en external service of course

@shouze - what do you mean by "external service" exactly?

Thanks!

DavidBrower avatar Feb 03 '17 16:02 DavidBrower

@jen20 - so is the recommendation that EventStore not be run inside containers (neither database nodes nor manager/database nodes) but, rather, the instances be run on something like Ubuntu instances? Or am I misinterpreting you?

DavidBrower avatar Feb 03 '17 16:02 DavidBrower

The question is do you care about performance? If no then feel free to virtualize everything. Most systems though virtualize their app layers and put all the performance questions down to a lower level

On Fri, Feb 3, 2017 at 4:43 PM, David Brower [email protected] wrote:

@jen20 https://github.com/jen20 - so is the recommendation that EventStore not be run inside containers (neither database nodes nor manager/database nodes) but, rather, the instances be run on something like Ubuntu instances? Or am I misinterpreting you?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EventStore/eventstore-docker/issues/7#issuecomment-277297732, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXRWjYj0AIhqp45MJAXEJtQLGrLm9d6ks5rY1k4gaJpZM4IDAdR .

-- Studying for the Turing test

gregoryyoung avatar Feb 03 '17 16:02 gregoryyoung

@DavidBrower ok yes sorry in docker compose you can specify external links this is what I was meaning with this expression of external services.

shouze avatar Feb 03 '17 16:02 shouze

@shouze thanks!

DavidBrower avatar Feb 03 '17 16:02 DavidBrower

Did anybody try fully managed 'EventStore' provided by ContainerShip?

I was looking for a fully managed solution for Azure and found ContainerShip. It'll install via Docker containers on number of cloud provides including Azure.

I'm doing a test run and it works great so far. Does anyone had any issues with ContainerShip?

ghost avatar May 17 '17 06:05 ghost