Citrix Systems server 4 Manual Do Utilizador

Página de 194
Chapter 16. Additional Installation Options
184
CloudPlatform uses Tomcat as its servlet container. For sites that would like CloudPlatform 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.
16.3. Database Replication (Optional)
CloudPlatform 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.
Note
Creating a replica is not a backup solution. You should develop a backup procedure for the
MySQL data that is distinct from replication.
1.
Ensure that this is a fresh install with no data in the master.
2.
Edit my.cnf on the master and add the following in the [mysqld] section below datadir.
log_bin=mysql-bin
server_id=1
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.
3.
Restart the MySQL service:
# service mysqld restart
4.
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.
# mysql -u root
mysql> create user 'cloud-repl'@'172.16.1.%' identified by 'password';
mysql> grant replication slave on *.* TO 'cloud-repl'@'172.16.1.%';
mysql> flush privileges;
mysql> flush tables with read lock;
5.
Leave the current MySQL session running.
6.
In a new shell start a second MySQL session.
7.
Retrieve the current position of the database.