[Systems] Docker backups

Sam P. sam.parkinson3 at gmail.com
Sat Oct 25 18:14:16 EDT 2014


Hi Bernie,

On Sat, Oct 25, 2014 at 11:42 AM, Bernie Innocenti <bernie at sugarlabs.org>
wrote:

> I see that we have a pgsql db in there. Backing up the raw binary files
> of the db is going to take a lot of space while not producing a
> consistent backup. We should look for a way to dump of all databases
> owned by containers daily, before the backup starts.
>

I have turned on the discourse daily backups.  It dumps the images/uploads
as well as `dump.sql`.  It stores the most recent backup in
/srv/socialhelp/d-shared/backups/default.  Can we setup a cron job to make
sure that that is the only /srv/socialhelp thing that gets backed up?


> Nice. I have no production images yet. I only created an ubuntu image to
> verify that docker was working after installing it (you can wipe it now).
>
> Question: is it to be expectede that the processes in the containers are
> also visible from the base system with ps? It's annoying, also because
> the uids are different.
>

I have no idea!  Docker is using docker/libcontainer for isolation, which
uses Linux namespaces.  Do you know anything about this?


>
> Question 2: how do we limit the resources of containers to make sure
> they don't grow until freedom runs out of ram or disk space?
>

We have to set options when we start the container.  Tell me how much ram,
how many cpu cores/"shares" and I will restart discourse.


sam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/private/systems/attachments/20141026/d95290e9/attachment.html>


More information about the Systems mailing list