<div dir="ltr">Stub is certainly the guy who has written most (all?) of the postgres charm. So I'm happy to point you his way. I don't personally know how to answer these questions.<div><br><div>John</div><div>=:-></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 28, 2014 at 11:23 AM, Tim Penhey <span dir="ltr"><<a href="mailto:tim.penhey@canonical.com" target="_blank">tim.penhey@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi folks,<br>
<br>
I'm writing not as a canonical core developer, but as a user who is<br>
occasionally stupid :-)<br>
<br>
I have a new project that I'm wanting to deploy and it is a django<br>
project backed with a postgresql database. Pretty simple really.<br>
<br>
I want to manage my deployment with Juju, but I want to manage it right.<br>
<br>
To this effect, I want to make sure that the database that postgres is<br>
managing is persistent even if the machine it is running on dies. I<br>
have taken a look at the config options for the postgres charm and I<br>
find them a little overwhelming.<br>
<br>
I have to say I was very much encouraged to see that there are automatic<br>
backups taken of the database, but backups without a restore are little<br>
value. I know that there is work on "actions" and that restoring the<br>
database is a wonderful use of an action with parameters, but I also<br>
know that we are not there yet and I want to start using things now :-)<br>
<br>
What I want to make myself comfortable with, initially at least, is the<br>
robustness of my postgres database.<br>
<br>
Let's assume that I'm going to deploy on AWS, how do I go about manually<br>
configuring a machine so that the data directory for the postgres<br>
database is a persistent mount?<br>
<br>
How do I restore the database from a backup?<br>
<br>
If the machine dies, which I will manually do in testing, how do I go<br>
about bringing up a new machine, attaching the storage, deploying the<br>
charm and have it use the existing database that is there? I'm guessing<br>
that there are orderings I need.<br>
<br>
Do I have to deploy a new database with a new persistent mount point and<br>
restore from a backup? If I have to do that, what is the benefit of<br>
having the database itself in a persistent mount?<br>
<br>
Is there someone knowledgeable on the postgres charm and AWS that can<br>
help me with these points?<br>
<br>
BTW, I'm very happy to blog about this whole process once I have it all<br>
figured out :-)<br>
<br>
Cheers,<br>
Tim<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</font></span></blockquote></div><br></div>