Home > ServerTemplates > v13.5 LTS > ST > Django App Server (v13.5 LTS)

MindTouch
Copyright (c) 2006-2014 MindTouch Inc.
http://mindtouch.com

This file and accompanying files are licensed under the MindTouch Master Subscription Agreement (MSA).

At any time, you shall not, directly or indirectly: (i) sublicense, resell, rent, lease, distribute, market, commercialize or otherwise transfer rights or usage to: (a) the Software, (b) any modified version or derivative work of the Software created by you or for you, or (c) MindTouch Open Source (which includes all non-supported versions of MindTouch-developed software), for any purpose including timesharing or service bureau purposes; (ii) remove or alter any copyright, trademark or proprietary notice in the Software; (iii) transfer, use or export the Software in violation of any applicable laws or regulations of any government or governmental agency; (iv) use or run on any of your hardware, or have deployed for use, any production version of MindTouch Open Source; (v) use any of the Support Services, Error corrections, Updates or Upgrades, for the MindTouch Open Source software or for any Server for which Support Services are not then purchased as provided hereunder; or (vi) reverse engineer, decompile or modify any encrypted or encoded portion of the Software.

A complete copy of the MSA is available at http://www.mindtouch.com/msa

Django App Server (v13.5 LTS)

 

Table of Contents    

Long Term Support

Stable, tested ServerTemplate assets

   ►  Overview

 

Description

Configures a Django application server for Apache using mod_wsgi. It is designed to work in a hybrid cloud setting, and with a CLB, ELB, or Load Balancer ServerTemplate and Database Manager ServerTemplate as part of a three-tier web architecture. It also includes iptables management for clouds that do not have firewall services.

Technical Overview

Software Application Versions

  • Django v1.4
  • Python v2.6
  • MySQL Client (5.1 or 5.5)
  • Postgres Client 9.1

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
13:07, 11 Sep 2013

Tags

Classifications

This page has no classifications.

Announcements

None

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.