Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have question how to scaling mysql service because I make deployment from here: https://juju.ubuntu.com/docs/user-tutorial.html

And I have wordpress and mysql related but is there possible to scale only mysql? When I add-unit mysql I recieve another mysql database instead.

And is there possible to write charm where nodes will be share performance? I have server based app(making some calcutaions and recievieng data and send data to clients) in java. Is there possible to scale up this application and make it faster(I mean manage more clients)?

share|improve this question
add comment

1 Answer 1

The mysql charm supports replication. It's a little non-intuitive in that you're not really adding units to the primary service... you're adding slaves. Here's one way to do that:

juju deploy mysql masterdb
juju deploy mysql slavedb -n3
juju add-relation masterdb:master slavedb:slave

and then relate it to services like mediawiki that supports mysql read-only replicas:

juju deploy mediawiki -n8
juju add-relation masterdb:db mediawiki:db
juju add-relation slavedb:db mediawiki:slave
...

The charm doesn't currently support any master-master replication... please help add in that functionality!

share|improve this answer
    
But it's maiking only copy I presume, yes? Is there any charm that I can test if more nodes are better than one?(I mean performance) –  user84471 Oct 16 '12 at 7:29
add comment

Your Answer

 
discard

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.