Re: proper way to deploy to one server (lxc based)
2014-10-08 10:35 GMT+04:00 Andrew Wilkins : > Not as a first-class citizen in Juju. There's > https://github.com/cmars/juju-nat, but I've just spoken to the author who > informs me that it currently has some issues. > Thanks! >> >> Or does it possible to install for example http proxy charm on node 0 >> that route all needed traffic to containers... ? > > > That should work. Deploy ha-proxy to machine 0 and relate it to nginx. Hm, but juju can't deploy to machine 0, does it possible via relation system configure ha-proxy on machine 0 to serve to container nginx ?=) -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: proper way to deploy to one server (lxc based)
Vasiliy, it is indeed possible to deploy all units to machine 0 and isolate services with containers on that bootstrap node. This is hte power of juju, giving you enough freedom to try interesting things, and the ability to shoot yourself in the foot. juju bootstrap juju add-machine lxc:0 -n 2 juju deploy mysql --to 0/lxc/0 juju deploy wordpres --to 0/lxc/1 juju deploy haproxy --to 0 juju add-relation mysql wordpress juju add-relation haproxy wordpress What's happened in the above command chain: You created the bootstrap node, machine 0 you've added 2 lxc containers which can communicate over the host bridge you've put MySQL and Wordpress in respective containers You've hulk-smashed haproxy on the bootstrap node you've added a relation between haproxy and wordpress, which works as its doing host-only networking Now there are caveats with this deployment topology. This will not suport scale out operations without some additional work in private networking. You've also put quite a bit on the bootstrap node, which is already resource intensive, so you may need to start with a larger machine type than what is provided as default You're running in a non-recommended deployment strategy at present smashing services on the bootstrap node, but if you know what you are doing, this is perfectly acceptable but you may see some odd behavior and should be careful to note any inconsistencies you encounter. And finally, if this setup works for you famously, follow up on the list with us about your experience. Hope this helps Charles On Wed, Oct 8, 2014 at 5:33 AM, Vasiliy Tolstov wrote: > 2014-10-08 10:35 GMT+04:00 Andrew Wilkins : > > Not as a first-class citizen in Juju. There's > > https://github.com/cmars/juju-nat, but I've just spoken to the author > who > > informs me that it currently has some issues. > > > > Thanks! > >> > >> Or does it possible to install for example http proxy charm on node 0 > >> that route all needed traffic to containers... ? > > > > > > That should work. Deploy ha-proxy to machine 0 and relate it to nginx. > > Hm, but juju can't deploy to machine 0, does it possible via relation > system configure ha-proxy on machine 0 to serve to container nginx ?=) > > > -- > Vasiliy Tolstov, > e-mail: v.tols...@selfip.ru > jabber: v...@selfip.ru > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: proper way to deploy to one server (lxc based)
On Wed, Oct 8, 2014 at 11:33 AM, Vasiliy Tolstov wrote: > 2014-10-08 10:35 GMT+04:00 Andrew Wilkins : > > Not as a first-class citizen in Juju. There's > > https://github.com/cmars/juju-nat, but I've just spoken to the author > who > > informs me that it currently has some issues. > > > > Thanks! > >> > >> Or does it possible to install for example http proxy charm on node 0 > >> that route all needed traffic to containers... ? > > > > > > That should work. Deploy ha-proxy to machine 0 and relate it to nginx. > > Hm, but juju can't deploy to machine 0, does it possible via relation > system configure ha-proxy on machine 0 to serve to container nginx ?=) Sorry, I don't understand. Juju can deploy to machine 0 on everything other than the local provider, which is intended for development environments. -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: proper way to deploy to one server (lxc based)
The point is - don't use local provider. If you have a single VPS, use the manual provider to bootstrap onto that machine. You can run juju bootstrap from your laptop to bootstrap juju onto the VPS. https://juju.ubuntu.com/docs/config-manual.html On Wed, Oct 8, 2014 at 11:58 AM, Andrew Wilkins < andrew.wilk...@canonical.com> wrote: > On Wed, Oct 8, 2014 at 11:33 AM, Vasiliy Tolstov > wrote: > >> 2014-10-08 10:35 GMT+04:00 Andrew Wilkins : >> > Not as a first-class citizen in Juju. There's >> > https://github.com/cmars/juju-nat, but I've just spoken to the author >> who >> > informs me that it currently has some issues. >> > >> >> Thanks! >> >> >> >> Or does it possible to install for example http proxy charm on node 0 >> >> that route all needed traffic to containers... ? >> > >> > >> > That should work. Deploy ha-proxy to machine 0 and relate it to nginx. >> >> Hm, but juju can't deploy to machine 0, does it possible via relation >> system configure ha-proxy on machine 0 to serve to container nginx ?=) > > > Sorry, I don't understand. Juju can deploy to machine 0 on everything > other than the local provider, which is intended for development > environments. > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > > -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: proper way to deploy to one server (lxc based)
2014-10-08 14:23 GMT+04:00 Nate Finch : > The point is - don't use local provider. If you have a single VPS, use the > manual provider to bootstrap onto that machine. You can run juju bootstrap > from your laptop to bootstrap juju onto the VPS. > https://juju.ubuntu.com/docs/config-manual.html Ok. Does it possible to add local machine via manual method ?=) My first case: I have some distro that runs packer build (currently i'm use exherbo linux because i like source based distros =)). I'm able to build minimal ubuntu box inside packer. After that i want to install juju (inside this box) and deploy to it for example wordpress. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: proper way to deploy to one server (lxc based)
On Wed, Oct 8, 2014 at 12:39 PM, Vasiliy Tolstov wrote: > 2014-10-08 14:23 GMT+04:00 Nate Finch : > > The point is - don't use local provider. If you have a single VPS, use > the > > manual provider to bootstrap onto that machine. You can run juju > bootstrap > > from your laptop to bootstrap juju onto the VPS. > > https://juju.ubuntu.com/docs/config-manual.html > > > Ok. Does it possible to add local machine via manual method ?=) My first > case: > I have some distro that runs packer build (currently i'm use exherbo > linux because i like source based distros =)). > I'm able to build minimal ubuntu box inside packer. After that i want > to install juju (inside this box) and deploy to it for example > wordpress. It is perfectly fine to bootstrap the local host using the manual provider. Cheers, Andrew -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: failed to deploy wordpress via local
On Tue, Oct 7, 2014 at 3:00 AM, Andrew Wilkins wrote: > Deploying units on machine 0 is disallowed to prevent users from breaking > their personal use/development environment. I filed this so we can fix the error to not be so cryptic: https://bugs.launchpad.net/juju-core/+bug/1378792 My proposed solution is also not good, any suggestions on the bug would be welcome! -- Jorge Castro Canonical Ltd. http://juju.ubuntu.com/ - Automate your Cloud Infrastructure -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: failed to deploy wordpress via local
2014-10-08 15:59 GMT+04:00 Jorge O. Castro : > I filed this so we can fix the error to not be so cryptic: > https://bugs.launchpad.net/juju-core/+bug/1378792 > > My proposed solution is also not good, any suggestions on the bug > would be welcome I think that the proposed solution is good. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: proper way to deploy to one server (lxc based)
2014-10-08 15:23 GMT+04:00 Andrew Wilkins : > It is perfectly fine to bootstrap the local host using the manual provider. Thanks =) Last question - how to calculate free resources or how put together services and not eat all memory for only one service? Does juju provide some options, api for that? -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju