Skip to content

Commit ddca805

Browse files
committed
Docbook xml for additional installation options
1 parent 85a1074 commit ddca805

6 files changed

Lines changed: 259 additions & 0 deletions

File tree

‎docs/en-US/Installation_Guide.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<xi:include href="provisioning-steps.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
5353
<xi:include href="global-config.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5454
<xi:include href="hypervisor-installation.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
55+
<xi:include href="additional-installation-options.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5556
<xi:include href="choosing-a-deployment-architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5657
<xi:include href="aws-interface-compatibility.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5758
<xi:include href="network-setup.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<chapter id="additional-installation-options">
26+
<title>Additional Installation Options</title>
27+
<para>The next few sections describe &PRODUCT; features above and beyond the basic deployment options.</para>
28+
<xi:include href="install-usage-server.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
29+
<xi:include href="ssl.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
30+
<xi:include href="database-replication.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
31+
</chapter>

‎docs/en-US/cloudstack.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<xi:include href="provisioning-steps.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
5252
<xi:include href="global-config.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5353
<xi:include href="hypervisor-installation.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
54+
<xi:include href="additional-installation-options.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5455
<xi:include href="choosing-a-deployment-architecture.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5556
<xi:include href="accounts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5657
<xi:include href="user-services-overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="database-replication">
26+
<title>Database Replication (Optional)</title>
27+
<para>&PRODUCT; supports database replication from one MySQL node to another. This is achieved using standard MySQL replication. You may want to do this as insurance against MySQL server or storage loss. MySQL replication is implemented using a master/slave model. The master is the node that the Management Servers are configured to use. The slave is a standby node that receives all write operations from the master and applies them to a local, redundant copy of the database. The following steps are a guide to implementing MySQL replication.</para>
28+
<note><para>Creating a replica is not a backup solution. You should develop a backup procedure for the MySQL data that is distinct from replication.</para></note>
29+
<orderedlist>
30+
<listitem><para>Ensure that this is a fresh install with no data in the master.</para></listitem>
31+
<listitem>
32+
<para>Edit my.cnf on the master and add the following in the [mysqld] section below datadir.</para>
33+
<programlisting>
34+
log_bin=mysql-bin
35+
server_id=1
36+
</programlisting>
37+
<para>The server_id must be unique with respect to other servers. The recommended way to achieve this is to give the master an ID of 1 and each slave a sequential number greater than 1, so that the servers are numbered 1, 2, 3, etc.</para>
38+
</listitem>
39+
<listitem>
40+
<para>Restart the MySQL service:</para>
41+
<programlisting>
42+
# service mysqld restart
43+
</programlisting>
44+
</listitem>
45+
<listitem>
46+
<para>Create a replication account on the master and give it privileges. We will use the "cloud-repl" user with the password "password". This assumes that master and slave run on the 172.16.1.0/24 network.</para>
47+
<programlisting>
48+
# mysql -u root
49+
mysql> create user 'cloud-repl'@'172.16.1.%' identified by 'password';
50+
mysql> grant replication slave on *.* TO 'cloud-repl'@'172.16.1.%';
51+
mysql> flush privileges;
52+
mysql> flush tables with read lock;
53+
</programlisting>
54+
</listitem>
55+
<listitem><para>Leave the current MySQL session running.</para></listitem>
56+
<listitem><para>In a new shell start a second MySQL session.</para></listitem>
57+
<listitem>
58+
<para>Retrieve the current position of the database.</para>
59+
<programlisting>
60+
# mysql -u root
61+
mysql> show master status;
62+
+------------------+----------+--------------+------------------+
63+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
64+
+------------------+----------+--------------+------------------+
65+
| mysql-bin.000001 | 412 | | |
66+
+------------------+----------+--------------+------------------+
67+
</programlisting>
68+
</listitem>
69+
<listitem><para>Note the file and the position that are returned by your instance.</para></listitem>
70+
<listitem><para>Exit from this session.</para></listitem>
71+
<listitem>
72+
<para>Complete the master setup. Returning to your first session on the master, release the locks and exit MySQL.</para>
73+
<programlisting>
74+
mysql> unlock tables;
75+
</programlisting>
76+
</listitem>
77+
<listitem>
78+
<para>Install and configure the slave. On the slave server, run the following commands.</para>
79+
<programlisting>
80+
# yum install mysql-server
81+
# chkconfig mysqld on
82+
</programlisting>
83+
</listitem>
84+
<listitem>
85+
<para>Edit my.cnf and add the following lines in the [mysqld] section below datadir.</para>
86+
<programlisting>
87+
server_id=2
88+
innodb_rollback_on_timeout=1
89+
innodb_lock_wait_timeout=600
90+
</programlisting>
91+
</listitem>
92+
<listitem>
93+
<para>Restart MySQL.</para>
94+
<programlisting>
95+
# service mysqld restart
96+
</programlisting>
97+
</listitem>
98+
<listitem>
99+
<para>Instruct the slave to connect to and replicate from the master. Replace the IP address, password, log file, and position with the values you have used in the previous steps.</para>
100+
<programlisting>
101+
mysql> change master to
102+
-> master_host='172.16.1.217',
103+
-> master_user='cloud-repl',
104+
-> master_password='password',
105+
-> master_log_file='mysql-bin.000001',
106+
-> master_log_pos=412;
107+
</programlisting>
108+
</listitem>
109+
<listitem>
110+
<para>Then start replication on the slave.</para>
111+
<programlisting>
112+
mysql> start slave;
113+
</programlisting>
114+
</listitem>
115+
<listitem>
116+
<para>Optionally, open port 3306 on the slave as was done on the master earlier.</para>
117+
<para>This is not required for replication to work. But if you choose not to do this, you will need to do it when failover to the replica occurs.</para>
118+
</listitem>
119+
</orderedlist>
120+
<section id="database-failover">
121+
<title>Failover</title>
122+
<para>This will provide for a replicated database that can be used to implement manual failover for the Management Servers. &PRODUCT; failover from one MySQL instance to another is performed by the administrator. In the event of a database failure you should:</para>
123+
<orderedlist>
124+
<listitem><para>Stop the Management Servers (via service cloud-management stop).</para></listitem>
125+
<listitem><para>Change the replica's configuration to be a master and restart it.</para></listitem>
126+
<listitem><para>Ensure that the replica's port 3306 is open to the Management Servers.</para></listitem>
127+
<listitem><para>Make a change so that the Management Server uses the new database. The simplest process here is to put the IP address of the new database server into each Management Server's /etc/cloud/management/db.properties.</para></listitem>
128+
<listitem>
129+
<para>Restart the Management Servers:</para>
130+
<programlisting>
131+
# service cloud-management start
132+
</programlisting>
133+
</listitem>
134+
</orderedlist>
135+
</section>
136+
</section>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="install-usage-server">
26+
<title>Installing the Usage Server (Optional)</title>
27+
<para>You can optionally install the Usage Server once the Management Server is configured properly. The Usage Server takes data from the events in the system and enables usage-based billing for accounts.</para>
28+
<para>When multiple Management Servers are present, the Usage Server may be installed on any number of them. The Usage Servers will coordinate usage processing. A site that is concerned about availability should install Usage Servers on at least two Management Servers.</para>
29+
<section id="requirements-install-usage-server">
30+
<title>Requirements for Installing the Usage Server</title>
31+
<itemizedlist>
32+
<listitem><para>The Management Server must be running when the Usage Server is installed.</para></listitem>
33+
<listitem><para>The Usage Server must be installed on the same server as a Management Server.</para></listitem>
34+
</itemizedlist>
35+
</section>
36+
<section id="steps-install-usage-server">
37+
<title>Steps to Install the Usage Server</title>
38+
<orderedlist>
39+
<listitem>
40+
<para>Run ./install.sh.</para>
41+
<programlisting>
42+
# ./install.sh
43+
</programlisting>
44+
<para>You should see a few messages as the installer prepares, followed by a list of choices.</para>
45+
</listitem>
46+
<listitem>
47+
<para>Choose "S" to install the Usage Server.</para>
48+
<programlisting>
49+
> S
50+
</programlisting>
51+
</listitem>
52+
<listitem>
53+
<para>Once installed, start the Usage Server with the following command.</para>
54+
<programlisting>
55+
# service cloud-usage start
56+
</programlisting>
57+
</listitem>
58+
</orderedlist>
59+
<para>The Administration Guide discusses further configuration of the Usage Server.</para>
60+
</section>
61+
</section>

‎docs/en-US/ssl.xml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="ssl">
26+
<title>SSL (Optional)</title>
27+
<para>&PRODUCT; provides HTTP access in its default installation. There are a number of technologies and sites which choose to implement SSL. As a result, we have left &PRODUCT; to expose HTTP under the assumption that a site will implement its typical practice.</para>
28+
<para>&PRODUCT; uses Tomcat as its servlet container. For sites that would like &PRODUCT; to terminate the SSL session, Tomcat’s SSL access may be enabled. Tomcat SSL configuration is described at http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html.</para>
29+
</section>

0 commit comments

Comments
 (0)