Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can percona-cluster charm be safely placed in anto LXC containers? If so, what would be the juju commands to achieve this?

share|improve this question

I'm not a percona expert, but looking over the charm I don't see anything obvious that would restrict it to only a "real" machine, or VM. Before starting, please be familar with the charm README as you will need to follow it closely, and as it is changing very frequently, I don't feel it would be best to type it all out here:

You can target each unit to an LXC in turn with the --to parameter, as follows:

# Instead of deploying to a machine, use --to lxc:0
juju deploy --config percona.yaml percona-cluster --to lxc:0

# wait till new unit is 'started', then:
juju add-unit percona-cluster --to lxc:0

# wait till new unit is 'started', then:
juju add-unit percona-cluster --to lxc:0

Keep in mind that as of this writing, LXCs are not externally network addressable outside their host machine except on the MAAS provider, so you will need to have them all on the same piece of hardware (and whatever is using them on the same hardware as well). What that implies is that this type of deploy would only make sense for testing purposes.

Once juju supports network addressable LXCs on other providers, you could spread out the LXCs to other machines in the environment using these same primitives combined with juju add-machine first.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.