r10 - 23 May 2008 - 17:57:30 - BeckyHYou are here: Wiki >  AppLogic23 Web > RefAppLampCluster
ALERT! AppLogic 2.3 Beta Documentation The latest production release is AppLogic 2.4.7

LampCluster - Scalable LAMP Cluster

Latest Version: 1.2.2
LampCluster.PNG

Functional Overview

LampCluster - Scalable LAMP Cluster application is a Reference design for a basic scalable lamp infrastructure. It is designed for rapid deployment and easy management. This application allows direct ssh access to the apache and mysql server appliances, without the need to access the grid controller.

This application can be deployed on shared grids where it is not possible to give the application manger access to the AppLogic Interface.


Boundary

Properties

Property Name Type Description
user String This is the user account for all services on the app. it is set as the inital system user on each of the Apache and dbase appliances that can be used for ssh logins. It is also the user for the http authentication for the web interface on the NAS and MON appliances
user_pw String This is the default password set for the user property
root_pw IP This is the initial root password for the Apache and dbase appliances
web_ip IP This is the IP assigned to the input gateway
net_ip IP This is the IP assigned to the output gateway
netmask IP This is the netmask for the IP network
gateway IP This is the gateway for the IP network
dns1 IP First nameserver assigned to the output gateway
dns2 IP Secondary nameserver assigned to the output gateway

Resources

Resource Minimum Maximum Default
CPU 0.85 116 2.05
Memory 1.023 GB 102.375 GB 3.414 GB
Bandwidth 11 Mbps 8.6 Gbps 407 Mbps

User Volumes

The application itself uses several volumes, described below. They are part of the application and are already configured into the appliance instances. There are no volumes that need to be configured on the application boundary.

Operation

Implementation details

To access these appliances point your ssh client or your browser to web_ip and the desired port.

Port Description
2221 ssh port for srv1
2222 ssh port for srv2
2223 ssh port for srv3
2224 ssh port for srv4
2225 ssh port for dbase
2226 http port for the MON web interface
2227 http port for the NAS web interface

Each Apache (denoted as srv1 through srv4) and the MYSQL (denoted as dbase) is a basic install of CentOS-5. It includes a basic build environment with GCC. the following packages have been installed using yum in their default configurations:

mysql, php, php-mysql, php-pear, httpd, php-GD, ImageMagic, ImageMagic-perl

Any of the other CentOS packages can be installed by the end user, simply by running yum -y install <package> while running as root user.

On first boot the initial user is created and the system places the root password in a file. (/home/<user>/su.txt). any of these instances can be reset to the default properties by deleting /appliance/passwd.stamp from the appliance and restarting the application.

The Apache appliances can connect to the database with the hostname "db" (e.g. "mysql -h db") the default database has sufficient permissions for the root user of any of the Apache appliances.

Initial application setup

Use the following steps to get your own LampCluster application up and running on an AppLogic grid. This example creates a LampCluster application called mylampcluster.

  • Provision the LampCluster application using the command below. All properties should be set to their appropriate values (IPs, DNS servers, etc). All 4 web servers are enabled in order to accomidate for possible heavy traffic loads. Also, the sizes of the fs and mysql volumes are increased to 250MB.
    • app provision LampCluster mylampcluster user=usr1 user_pw=userpw root_pw=rootpw web_ip=1.2.3.4 net_ip=1.2.3.5 netmask=255.255.255.0  gateway=1.2.3.1 dns1=1.2.3.6 dns2=1.2.3.1 data.size=250MB dbase.size=250MB
  • AppLogic will provision the mylampcluser application and start it on the grid. Wait for the application to start; this may take serveral minutes.
  • Now you can access your application using a browser. Open up a browser and point it to the configured web_ip and you will see a test web page from the Apache web server. If you do not see a test page, make sure your IP addresses are configured correctly and restart the application if needed.
  • You now have a running LampCluster application on your grid. All that is left to do is to install your specific application onto the application volumes and your application will be ready to go.

Application Architecture

Application Volumes

The LAMP application has the following volumes:

Volume Description
cert holds the ssl cert for the INSSL gateway
data NAS volume and needs to be sized on provision. This is the primary storage for the app
dase database volume and needs to be sized on provision. This is the MYSQL database storage
mon mon volume and needs to be sized on provision. This is the storage for the monitor appliance

Notes

Questions and Comments

IDEA! To post questions and/or comments for this application, visit our forum.


-- JessieSmart - 16 May 2007

 
Copyright © 2005-2008 3tera, Inc. All Rights Reserved.
%