Home > ServerTemplates > Infinity > ST > Apache-Rails-Passenger App Server (v13 Infinity)

Apache-Rails-Passenger App Server (v13 Infinity)

 

Table of Contents    

Infinity

Leading edge features

   ►  Overview

Description

Configures a dedicated Rails-Passenger application server with Apache. The ServerTemplate contains scripts and inputs that allow an application server to connect to various load balancing solutions such as Amazon's Elastic Load Balancing (ELB), Rackspace's Cloud Load Balancers (CLB), or a server launched with RightScale's 'Load Balancer with HAProxy' ServerTemplate. 

The ServerTemplate supports multiple clouds and is commonly used as part of a three-tier website architecture. It also includes iptables management for clouds that do not support cloud-level firewall services like security groups.

Note: For a complete list of the ServerTemplate's features and support, view the detailed description under its Info tab.

Technical Overview

Software Application Versions

  • Apache 2.2
  • Ruby 1.8
  • Phusion Passenger 3.0
  • MySQL Client (5.1 or 5.5)

 

The PHP App Server ServerTemplate install Apache with PHP on a single instance. The application code is downloaded from a git repository and placed into the webserver directory to be hosted. There are recipes to set up tags so the PHP App Server can be found by a Load Balancer and to request that a Load Balancer find it. The PHP App Server can be used in a RightScale autoscaling application server array. Below are descriptions of the various scripts avaiable in the PHP App Server ServerTemplate.

Boot Sequence:

  • ephemeral_lvm::default - This recipe sets up available ephemeral devices to be an LVM device, formats it, and mounts it.
  • rightscale_tag::default - Sets the standard machine tags for a RightScale server which are server:uuid, server:public_ip_X, server:private_ip_X (where X is 0, 1, etc.)
  • rs-application_php::default - Installs PHP and required dependencies and deploys the application code.

Operational Scripts:

  • rs-application_php::default - Installs PHP and required dependencies and deploys the application code.
  • rs-application_php::tags - Adds machine tags to the application server with application server tags used in setting up a 3-tier architecture in a RightScale environment.
  • rs-application_php::collectd - This recipe sets up collectd monitoring for the application server by installing the collectd package for Apache.
  • rs-application_php::application_backend - This recipe attaches the application server to the load balancer servers serving the same application name as that of the application server and existing in the same deployment. This recipe schedules the execution of the recipe specified in node['rs-application_php']['remote_attach_recipe'] attribute on the load balancer servers matching the machine tag ‘load_balancers:active_<application_name>=true’. This remote recipe execution is achieved by the rs_run_recipe utility.
  • rs-application_php::application_backend_detached - This recipe detaches the application server from the load balancer servers serving the same application name as that of the application server and existing in the same deployment. This recipe schedules the execution of the recipe specified in node['rs-application_php']['remote_detach_recipe'] attribute on the load balancer servers matching the machine tag ‘load_balancers:active_<application_name>=true’. This remote recipe execution is achieved by the rs_run_recipe utility.

Retrieval of Application Code

The ServerTemplate contains scripts that support the retrieval of application code from the following locations:

  • ROS Container (*.zip, *.tgz)
  • SVN Repository
  • Git Repository
  • FTP Server
  • Specified URL (http://www.example.com/myapp.zip)
  • rsync

 

The application code will be placed on the local instance in a location that is based upon the values specified for the following inputs. 

  • Project App root - text: /home/webapps   (default)
  • Application Name - text: myapp


In the example above, the root directory for the application code will be stored in: /home/webapps/myapp

 

 

You must to post a comment.
Last Modified
15:28, 25 Sep 2013

Page Rating

Was this article helpful?

Tags


Announcements

UCP Migration

Glossary | 用語용어 Site Map | Site Help Community Corporate Site Get Support Dashboard Login
Doc Feedback Product Feedback Resources MultiCloud Marketplace Forums

Dashboard Status


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.