Skip to content

Commit 7372c57

Browse files
committed
Tutorial is coming in
1 parent c16951e commit 7372c57

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
## Zend Server Bash intergration examples using Web Api and Cli tools.
2-
***
3-
42
==================
53
## Introduction
64
============

deployingzscluster.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## Deploying Zend Server Cluster using command line scripts. Four node example.
2+
================
3+
4+
### Introduction.
5+
---------------
6+
This tutorilal explains how to setup Zend Server Cluster using bash scripts.
7+
8+
Scripts examples have been written to provide base to custom integration of Zend Server into current deployment framework or as an easy to read example which can be implemented in other programming languages.
9+
10+
Zend Server user interface is driven by MySQL database and separate instance of MySQL is required.
11+
12+
13+
### Installation.
14+
---------------
15+
16+
1. Installing and configuring MySQL.
17+
./mysql-install.sh
18+
19+
The goal of this step is to install and configure MySQL database backend to be used by **Zend Server Cluster Nodes**. Best practices would be to creat separate user with permissions on an empty database. "Registration" of the Zend Server node to the database will populate it with required structure. For small non-production environment location of the MySQL is no critical and can reside on one of the cluster nodes.
20+
21+
2. Adding user with **Admin** priveleges on the database which will be used by **Zend Cluster**.
22+
23+
`
24+
mysql> CREATE zend_db_name;`
25+
26+
`
27+
mysql> CREATE USER 'zend_db_user'@'localhost' IDENTIFIED BY 'zend_db_pass';
28+
mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'localhost'
29+
WITH GRANT OPTION;`
30+
31+
`
32+
mysql> CREATE USER 'zend_db_user'@'%' IDENTIFIED BY 'zend_db_pass';
33+
mysql> GRANT ALL PRIVILEGES ON zend_db_name.* TO 'zend_db_user'@'%'
34+
WITH GRANT OPTION;
35+
`
36+
37+
Above provided example of SQL sintax to create database and use and grant required permissions.
38+
39+
3. Install Zend Command Line scripts on all the nodes.
40+
41+
`yum -y install git`
42+
43+
`git clone git://github.com/zendtech/ZendServerCommandLineScripts.git ----recursive`
44+
4. Changing Zend Server variables according to current licenses and passwords
45+
46+
`nano -w globals.sh`
47+
48+
49+
5. Runing Zend Command Line script and join cluster.
50+
51+
`./zs-setupjoin.sh`
52+
53+
6. Extras
54+
55+
- Enable session clustering from command line.
56+
- Deploy an application from command line.
57+
- Remove node.
58+
59+

0 commit comments

Comments
 (0)