Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need more info on behaviour and usage of stateful containers #27591

Closed
mcintyre321 opened this issue Mar 20, 2019 — with docs.microsoft.com · 7 comments
Closed

Need more info on behaviour and usage of stateful containers #27591

mcintyre321 opened this issue Mar 20, 2019 — with docs.microsoft.com · 7 comments

Comments

Copy link

It's a bit unclear how a container which requires persistent state (e.g. a sql container) will behave - will the data be stored in a permanent fashion anywhere? How would one go about backing up the data from an instance like this?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@shashishailaj
Copy link
Member

@mcintyre321 Thank you for your feedback . We will investigate and update this thread.

@DashleenBhandari-MSFT-zz

@mcintyre321 , We recommend to use Azure SQL/Azure DB for MySQL to customers.
There are a lot of articles explaining the problems you might face (for example https://vsupalov.com/database-in-docker ) and why you should not run PROD DBs in a container (specially if you use a Container Orchestrator that might move your containers around)

@mcintyre321
Copy link
Author

mcintyre321 commented Mar 25, 2019 via email

@mcintyre321
Copy link
Author

mcintyre321 commented Apr 1, 2019

Hi, this is a screenshot from the Azure portal, from adding a linux/container based app service. As you can see, the sample container app includes an mssql container.

image

it seems strange to have this as a sample if it's an unsupported, not recommended scenario

@mcintyre321
Copy link
Author

Now I'm confused. Your colleague @DashleenBhandari-MSFT says "you should not run PROD DBs in a container", but you suggest the mysql container is prod ready?

How is the mysql container data persisted? It looks like tutorial says how to back the wp container is backed by disk, but not the mysql instance (or am i missing something?)

@mcintyre321
Copy link
Author

Thanks - it would be good to have some explicit text describing the lifecycle of the containers, so that we can make judgements about which containers it is sensible to run, and which should be replaced by PAAS, or backed by disk.

Also some information about how the containers will interact (or not) in multi-instance app services. E.g. Redis is less useful than in a distributed setup if you have a single, non-persistent instance per web server.

@msangapu-msft
Copy link
Contributor

#please-close

@msangapu-msft msangapu-msft unassigned ghost Apr 23, 2019
@ghost ghost deleted a comment Apr 15, 2021
@ghost ghost deleted a comment Apr 15, 2021
@ghost ghost deleted a comment Apr 15, 2021
@ghost ghost deleted a comment Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants