Skip to content

Commit e2cb0c1

Browse files
committed
Merge pull request juju#17 from juju/master
sync
2 parents 63381ad + 589b406 commit e2cb0c1

File tree

5 files changed

+71
-49
lines changed

5 files changed

+71
-49
lines changed

src/en/about-juju.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Title: What is Juju?
22

3-
##What is Juju?
3+
#What is Juju?
44
Juju is a state-of-the-art, open source, universal model for service oriented architecture and service oriented
55
deployments. Juju allows you to deploy, configure, manage, maintain, and scale cloud services quickly and efficiently on public clouds, as well as on physical servers, OpenStack, and containers. You can use Juju from the command line or through its beautiful GUI.
66

@@ -77,7 +77,7 @@ A charm is also a collection of scripts that handle different kinds of events. T
7777

7878
## What charms are currently available?
7979
Charms are available for hundreds of common and popular cloud-oriented applications such as MySQL, MongoDB, and others, with new ones being added every day. Check out the public charm store for an up to the minute list of charms:
80-
jujucharms.com
80+
[Juju Charm Store](https://jujucharms.com)
8181

8282
## Are charms open source? Under what license?
8383
Charms can be published under whatever license the author prefers, there are charms under just about every kind of license out there today. In many cases, charms follow the license of the applications that they deploy, but this is not a requirement. There are open source charms that deploy proprietary software, for example, and the reverse would be possible as well.
@@ -95,7 +95,7 @@ If you want, you can also share your charm with the world and gain feedback and
9595

9696
What are the best workloads to try with Juju?
9797

98-
Juju excels with scale-out workloads like big data, PAAS, cloud infrastructure such as OpenStack, or container management systems. Pick your favourite cloud and launch a juju server, deploy the Juju GUI there and then drop one of the bundles from the charm store into the blank canvas.
98+
Juju excels with scale-out workloads like big data, PAAS, cloud infrastructure such as OpenStack, or container management systems. Pick your favourite cloud and launch a Juju server, deploy the Juju GUI there and then drop one of the bundles from the charm store into the blank canvas.
9999

100100
<style>.tableicon{width:100px;height:100px;float:right;margin: 5px 5px 40px 20px;}</style>
101101
<table>

src/en/charms-config.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ operational.
1717
Each charm will have its own set of options and possible values. You can
1818
discover these in several ways:
1919

20-
- By running the `juju get <service>` command.
21-
- By viewing the charm in the [charm store.](https://jujucharms.com)
20+
- By running the `juju get-config` command.
21+
- By viewing the charm in the [charm store](https://jujucharms.com).
2222
- By examining the **config.yaml** file in the charm itself.
2323

2424

2525
## Configuring a service at deployment
2626

2727
It is possible to set configuration values when deploying a service by
28-
providing a yaml-formatted file containing configuration values.
28+
providing a [yaml-formatted][yaml] file containing configuration values.
2929

3030
For example, upon investigation we discover that the Mediawiki charm allows us
3131
to set values for the name of the wiki and the 'skin' to use. We can put these
@@ -44,7 +44,7 @@ We can then use this configuration when we deploy the service:
4444
juju deploy --config myconfig.yaml mediawiki
4545
```
4646

47-
**Caution:** If the yaml configuration file cannot be read or contains some
47+
!!! WARNING: If the yaml configuration file cannot be read or contains some
4848
syntax errors or invalid options, you will receive an error message to this
4949
effect. However, **the service will still be deployed **.
5050

@@ -55,10 +55,10 @@ It is possible to set or change configuration of a service which is already
5555
deployed.
5656

5757
Before you set any of these options, you may want to check what current options
58-
are already set, using the `juju get <service>` command. For example:
58+
are already set, using the `juju get-config <service>` command. For example:
5959

6060
```bash
61-
juju get mediawiki
61+
juju get-config mediawiki
6262
```
6363

6464
Should return something like this:
@@ -92,18 +92,34 @@ settings:
9292
description: skin for the Wiki
9393
type: string
9494
value: vector
95+
use_suffix:
96+
description: If we should put '/mediawiki' suffix on the url
97+
type: boolean
98+
value: false
9599
```
96100

97-
You can set the options using the `juju set <service>`, specifying
98-
multiple key=value pairs if necessary:
101+
You can set the options using the `juju set-config <service>`, specifying
102+
multiple space-separated key=value pairs if necessary:
99103

100104
```bash
101-
juju set mediawiki skin=monoblock name='Juju Wiki'
105+
juju set-config mediawiki skin=monoblock name='Juju Wiki'
106+
```
107+
It is also possible to set the configuration options from a YAML file after
108+
the service has been deployed:
109+
110+
```bash
111+
juju set-config --config=m.yaml mediawiki
102112
```
103113

104-
Setting an option back to its default value is done using the `unset` command
105-
followed by the service and the respective options:
114+
115+
Setting an option back to its default value is achieved by using the
116+
`set-config` command, but with the `--to-default` switch, followed by the
117+
service and a space separated list of the values to return to the default
118+
setting:
106119

107120
```bash
108-
juju unset mediawiki admins name
121+
juju set-config --to-default mediawiki admins name
109122
```
123+
124+
125+
[yaml]: http://yaml.org/spec/1.1/current.html "YAML spec page"

src/en/charms-scaling.md

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Title: Scaling charms
2+
TODO: Check final note still relevant for 2.0 release
23

34
# Scaling Charms
45

@@ -10,7 +11,7 @@ front page of hacker news (yet), but it does mean that when you do you can
1011
reliably scale your services to meet the demand.
1112

1213

13-
# Adding Units
14+
## Adding Units
1415

1516
The general usage to scale a service up is via the `add-unit` command:
1617

@@ -30,7 +31,7 @@ The command options are:
3031
```
3132

3233

33-
# Scaling behind a Load Balancer
34+
## Scaling behind a Load Balancer
3435

3536
Usually you just can't add more units to a service and have it magically scale
3637
- you need to use a load balancer. In this case you can just deploy a proxy in
@@ -63,7 +64,7 @@ Now that you are behind a load balancer, you can grow the MediaWiki instances
6364
behind the proxy as you see fit, let's add 5 more:
6465

6566
```bash
66-
juju add-unit -n5 mediawiki
67+
juju add-unit -n 5 mediawiki
6768
```
6869

6970
You don't need to worry about manually adding your units to the load balancer.
@@ -73,7 +74,7 @@ are installed and configured _before_ adding them to the load balancer,
7374
ensuring minimal user disruption of the service.
7475

7576

76-
# Scaling Charms with built in Horizontal scaling
77+
## Scaling Charms with built in Horizontal scaling
7778

7879
Some charms have native scaling built in. For instance, the WordPress charm
7980
has built in load balancing. In this case, scaling up services is really as
@@ -99,7 +100,7 @@ currently running one. Behind the scenes, Juju is adding an instance to the
99100
environment (also called a 'machine') and provisioning the specified service
100101
onto that instance/machine.
101102

102-
Suppose your MySQL service needs hyperscale, you can use the `-n` or `--num-
103+
Now suppose your MySQL service needs hyperscale, you can use the `-n` or `--num-
103104
units` options to `add-unit` to specify the desired number of units you want
104105
added to the service. For example, to scale up your service by 100 units simply
105106
do:
@@ -114,17 +115,31 @@ or you can use `--num-unit` which has the same result, but is more readable:
114115
juju add-unit --num-unit 100 mysql
115116
```
116117

118+
### Co-location
119+
120+
As with the `juju deploy` command, it is possible to co-locate services on machines.
117121
If you would like to add a unit to a specific machine just append the `--to`
118-
option:
122+
option, for example:
119123

120124
```bash
121-
# add unit to machine 23
122125
juju add-unit mysql --to 23
123-
# add unit to lxc container 3 on host machine 24
126+
```
127+
...adds a unit to machine 23,
128+
129+
```bash
124130
juju add-unit mysql --to 24/lxc/3
125-
# add unit to a new lxc container on host machine 25
131+
```
132+
...adds a unit to lxc container 3 on host machine 24.
133+
134+
It is worth noting that not all services will happily co-exist and it is much
135+
safer to create a new container when co-locating:
136+
137+
```bash
126138
juju add-unit mysql --to lxc:25
127139
```
140+
...add unit of mysql to a new lxc container on host machine 25
141+
142+
## Constraints
128143

129144
The `add-unit` command deploys a machine matching the constraints of the
130145
initially deployed service. For example, if MySQL was deployed with the
@@ -141,20 +156,8 @@ juju add-machine --constraints="mem=16G"
141156
juju add-unit mysql --to 3
142157
```
143158

144-
**Note:** Keep in mind you can always use the `-e` or `--environment` options
145-
to specify which environment/cloud you would like the command to run against.
146-
In the following example the `-e hpcloud` adds 100 units to the mysql service
147-
in HP's cloud:
148159

149-
```bash
150-
juju add-unit -n 100 mysql -e hpcloud
151-
```
152-
153-
See [deploying to specific machines](charms-deploying.html#deploying-to-
154-
machines).
155-
156-
157-
# Scaling Back
160+
## Scaling Back
158161

159162
Sometimes you may want to scale back some of your services, and this too is
160163
easy with Juju.
@@ -165,30 +168,33 @@ The general usage to scale down a service is with the `remove-unit` command:
165168
juju remove-unit [options] <unit> [...]
166169
```
167170

168-
For example, the following scales down the MediaWiki service by one unit:
171+
For example, the following scales down the MediaWiki service by removing a
172+
specific unit:
169173

170174
```bash
171175
juju remove-unit mediawiki/1
172176
```
173177

174178
If you have scaled-up the MediaWiki service by more than one unit you can
175-
remove multiple units in the same command as long as you know the unit name (ie
176-
`<service>/#`).
179+
remove multiple units in the same command:
177180

178181
```bash
179182
juju remove-unit mediawiki/1 mediawiki/2 mediawiki/3 mediawiki/4 mediawiki/5
180183
```
184+
!!! Note: the unit numbers may not necessarily be sequential, see the
185+
[notes on machine/unit numbering](./reference-numbering)
186+
181187

182188
The `remove-unit` command can be run to remove running units safely. The
183189
running services should automatically adjust to the change.
184190

185-
**Note:** After removing a service the machine will still be running. In order
191+
!!! Note: After removing a service the machine will still be running. In order
186192
to completely remove the machine that once housed the service you need to issue
187-
a `destroy-machine`. For example, to remove machine 1 that the unit
193+
a `remove-machine`. For example, to remove machine 1 that the unit
188194
`mediawiki/1` was housed on use the command:
189195

190196
```bash
191-
juju destroy-machine 1
197+
juju remove-machine 1
192198
```
193199

194200
For more information on removing services, please see the section on

src/en/command-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ TODO: Add completely new commands
7272
| juju service help | deprecated |
7373
| juju service set | `juju set-config` |
7474
| juju service set-constraints | `juju set-constraints` |
75-
| juju service unset | deprecated (use `juju set-config --default`)|
75+
| juju service unset | deprecated (use `juju set-config --to-default`)|
7676
| juju set-constraints | `juju set-constraints` |
7777
| juju set-environment | deprecated |
7878
| juju ssh | UNCHANGED |

src/en/reference-releases.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ agent-stream: proposed
7676

7777
## Development
7878

79-
2.0-alpha2 is currently in development for testing.
80-
The previous development release was 1.26-alpha2.
79+
2.0-beta1 is currently in development for testing.
80+
The previous development release was 2.0-alpha2.
8181

8282
Development releases provide new features that are being stablised.
8383
These releases are *not* suitable for production environments. Upgrading
@@ -92,15 +92,15 @@ sudo apt-get install juju-core</pre>
9292
{: .instruction }
9393

9494
Centos
95-
: [juju-2.0-alpha2-centos7.tar.gz](https://launchpad.net/juju-core/trunk/2.0-alpha2/+download/juju-2.0-alpha2-centos7.tar.gz) ([md5](https://launchpad.net/juju-core/trunk/2.0-alpha2/+download/juju-2.0-alpha2-centos7.tar.gz/+md5))
95+
: [juju-2.0-beta1-centos7.tar.gz](https://launchpad.net/juju-core/trunk/2.0-beta1/+download/juju-2.0-beta1-centos7.tar.gz) ([md5](https://launchpad.net/juju-core/trunk/2.0-beta1/+download/juju-2.0-beta1-centos7.tar.gz/+md5))
9696
{: .instruction }
9797

9898
OS X
99-
: [juju-2.0-alpha2-osx.tar.gz](https://launchpad.net/juju-core/trunk/2.0-alpha2/+download/juju-2.0-alpha2-osx.tar.gz) ([md5](https://launchpad.net/juju-core/trunk/2.0-alpha2/+download/juju-2.0-alpha2-osx.tar.gz/+md5))
99+
: [juju-2.0-beta1-osx.tar.gz](https://launchpad.net/juju-core/trunk/2.0-beta1/+download/juju-2.0-beta1-osx.tar.gz) ([md5](https://launchpad.net/juju-core/trunk/2.0-beta1/+download/juju-2.0-beta1-osx.tar.gz/+md5))
100100
{: .instruction }
101101

102102
Windows
103-
: [juju-setup-2.0-alpha2.exe](https://launchpad.net/juju-core/trunk/2.0-alpha2/+download/juju-setup-2.0-alpha2.exe) ([md5](https://launchpad.net/juju-core/trunk/2.0-alpha2/+download/juju-setup-2.0-alpha2.exe/+md5))
103+
: [juju-setup-2.0-beta1.exe](https://launchpad.net/juju-core/trunk/2.0-beta1/+download/juju-setup-2.0-beta1.exe) ([md5](https://launchpad.net/juju-core/trunk/2.0-beta1/+download/juju-setup-2.0-beta1.exe/+md5))
104104
{: .instruction }
105105

106106
Development releases use the 'devel' simple-streams. You must configure

0 commit comments

Comments
 (0)