AdWhirl Open Source Server Setup Instructions



Similar documents
Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

Zend Server Amazon AMI Quick Start Guide

Hadoop Setup. 1 Cluster

Eucalyptus Tutorial HPC and Cloud Computing Workshop

Chapter 9 PUBLIC CLOUD LABORATORY. Sucha Smanchat, PhD. Faculty of Information Technology. King Mongkut s University of Technology North Bangkok

How to Run Spark Application

Cloud Computing. Adam Barker

Single Node Hadoop Cluster Setup

MATLAB on EC2 Instructions Guide

Continuous Integration (CI) and Testing - Configuring Bamboo, Hudson, and TestMaker

Online Backup Guide for the Amazon Cloud: How to Setup your Online Backup Service using Vembu StoreGrid Backup Virtual Appliance on the Amazon Cloud

Alfresco Enterprise on AWS: Reference Architecture

Using The Hortonworks Virtual Sandbox

Secure Web Browsing in Public using Amazon

Tutorial: Using HortonWorks Sandbox 2.3 on Amazon Web Services

USER CONFERENCE 2011 SAN FRANCISCO APRIL Running MarkLogic in the Cloud DEVELOPER LOUNGE LAB

Every Silver Lining Has a Vault in the Cloud

How To Create A Virtual Private Cloud On Amazon.Com

Tibbr Installation Addendum for Amazon Web Services

MATLAB Distributed Computing Server Cloud Center User s Guide

Rstudio Server on Amazon EC2

Building a Private Cloud Cloud Infrastructure Using Opensource

Getting Started with Amazon EC2 Management in Eclipse

Background on Elastic Compute Cloud (EC2) AMI s to choose from including servers hosted on different Linux distros

HDFS Cluster Installation Automation for TupleWare

KeyControl Installation on Amazon Web Services

Backup and Recovery of SAP Systems on Windows / SQL Server

Chapter 11 Cloud Application Development

AWS Data Pipeline. Developer Guide API Version

Amazon Web Services EC2 & S3

Eucalyptus User Console Guide

Introduction to analyzing big data using Amazon Web Services

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3a

Security Gateway R75. for Amazon VPC. Getting Started Guide

Deploy XenApp 7.5 and 7.6 and XenDesktop 7.5 and 7.6 with Amazon VPC

SafeNet KMIP and Google Cloud Storage Integration Guide

Xpresstransfer Online Backup Manager General Technical FAQ

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

VX 9000E WiNG Express Manager INSTALLATION GUIDE

Automated Application Provisioning for Cloud

SOA Software API Gateway Appliance 7.1.x Administration Guide

Amazon Elastic Beanstalk

SafeNet KMIP and Amazon S3 Integration Guide

Automatic Configuration of Slave Nameservers (BIND only)

Guide to the LBaaS plugin ver for Fuel

Implementing Microsoft Windows Server Failover Clustering (WSFC) and SQL Server 2012 AlwaysOn Availability Groups in the AWS Cloud

AWS Account Setup and Services Overview

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3b

Amazon Web Services Primer. William Strickland COP 6938 Fall 2012 University of Central Florida

Source Code Management for Continuous Integration and Deployment. Version 1.0 DO NOT DISTRIBUTE

Web Application Firewall

Hadoop Installation MapReduce Examples Jake Karnes

Managing Your Microsoft Windows Server Fleet with AWS Directory Service. May 2015

Equalizer VLB Beta I. Copyright 2008 Equalizer VLB Beta I 1 Coyote Point Systems Inc.

Introduction to Cloud Computing on Amazon Web Services (AWS) with focus on EC2 and S3. Horst Lueck

How To Set Up Wiremock In Anhtml.Com On A Testnet On A Linux Server On A Microsoft Powerbook 2.5 (Powerbook) On A Powerbook 1.5 On A Macbook 2 (Powerbooks)

How To - Implement Single Sign On Authentication with Active Directory

Continuous Delivery on AWS. Version 1.0 DO NOT DISTRIBUTE

Creating an ESS instance on the Amazon Cloud

Introduction to Cloud computing. Viet Tran

Monitoring and Scaling My Application

DVS-100 Installation Guide

NetBeans IDE Field Guide

.Trustwave.com Updated October 9, Secure Web Gateway Version 11.0 Amazon EC2 Platform Set-up Guide

Cloud Computing: Amazon Web Services

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact

ur skills.com

Version control. HEAD is the name of the latest revision in the repository. It can be used in subversion rather than the latest revision number.

Elastic Detector on Amazon Web Services (AWS) User Guide v5

Sentinel Cloud V.3.5 Installation Guide

OpenTOSCA Release v1.1. Contact: Documentation Version: March 11, 2014 Current version:

Immersion Day. Creating an Elastic Load Balancer. Rev

Chef Integration. Chef Integration. with IDERA s Uptime Cloud Monitor. Simple, Smart, Seamless May 10, 2013 IDERA

FREE computing using Amazon EC2

SERVER CLOUD RECOVERY. User Guide

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

Deploy Remote Desktop Gateway on the AWS Cloud

<Insert Picture Here> Introduction to Using MySQL in Cloud Computing

DVS-100 Installation Guide

Apache Stratos (incubating) M5 Installation Guide

How To Create A Virtual Private Cloud In A Lab On Ec2 (Vpn)

Drupal in the Cloud. Scaling with Drupal and Amazon Web Services. Northern Virginia Drupal Meetup

Acronis Storage Gateway

UFTP AUTHENTICATION SERVICE

SUSE Manager in the Public Cloud. SUSE Manager Server in the Public Cloud

Creating a DUO MFA Service in AWS

CSE 344 Introduction to Data Management. Section 9: AWS, Hadoop, Pig Latin TA: Yi-Shu Wei

AWS CodePipeline. User Guide API Version

Cloud Computing. Command Line Tools

VMware vcenter Support Assistant 5.1.1

Tutorial: Packaging your server build

Amazon EFS (Preview) User Guide

ST 810, Advanced computing

This computer will be on independent from the computer you access it from (and also cost money as long as it s on )

Transcription:

AdWhirl Open Source Server Setup Instructions

11/09

AdWhirl Server Setup Instructions The server runs in Amazon s web cloud. To set up the server, you need an Amazon Web Services (AWS) account and the AMI (Amazon Machine Image) for the AdWhirl server, which contains all the software, including the operating system and associated configuration settings, applications, libraries, and so on. Setting up the AdWhirl Server 1. To set up the environment: a. You must have a version 1.5.0 compatible Java Runtime installation, and the JAVA_HOME environment variable must be correctly set. b. You must have an active Amazon Web Services (AWS) account, and have signed up for both Amazon S3 and Amazon EC2. c. You must create a directory called.ec2 in your home directory, which contains your X.509 certificate and private key. d. The EC2_HOME environment variable must be correctly set. e. The EC2_CERT and EC2_PRIVATE_KEY environment variables must be correctly set. f. You must download and unzip the Amazon EC2 command line tools. These tools are written in Java and include shell scripts for Windows 2000/XP and Linux/Unix/Mac OSX. See Amazon's Getting Started Guide for more information at: http://docs.amazonwebservices.com/amazonec2/gsg/2006-10- 01/. 2. Get the AMI ID of the latest version of the server software from the Google Code project site at http://code.google.com/p/adwhirl. 3. You will be running an instance of the public AMI for the server. Because it has no password, you need a public/private key pair to log in to the instance. To generate a key pair to log in to the AMI instance, enter the following, where adwhirl-keypair represents the key pair you are creating: ec2-add-keypair adwhirl-keypair 4. Save the private key that that is generated to a local file, including the --BEGIN-- and --END-- lines. 5. Launch an instance of the currently running AMI by substituting the AMI ID in the following command: ec2-run-instances ami-xxxxxxxx -k adwhirl-keypair The output looks like this: INSTANCE i-yyyyyyyy ami-xxxxxxxx pending adwhirl-keypair 0

The instance ID is the second field in the output (i-yyyyyyyy). Note: After you do this, Amazon starts billing you for the computing and network resources that the instance consumes. It takes a few minutes for the instance to launch. When the instance state in the field just before the key pair name reads "running," the instance has started booting. It may still be a short time before it is accessible over the network, however. 6. To check the status of your instance, enter your instance name in this command: ec2-describe-instances i-yyyyyyyy This command also gives you the DNS name of the instance, which we ll refer to as domu-aa-aa-aa-aa-aa-aa.zzzz.compute.amazonaws.com. 7. To authorize SSH and HTTP traffic for the instance, enter: ec2-authorize default -p 22 ec2-authorize default -p 80 The first command authorizes network access to instances in your default group on the standard SSH port (22), and the second command opens up the standard HTTP port (80). 8. To control the instance, you must log in as the root user: ssh -i keyfile root@domu-aa-aa-aa-aa-aa-aa.zzzz.compute.amazonaws.com After you are logged in, you can edit the AdWhirl AMI if you so desire. Note: It is highly suggested that you run the GNU Screen and work inside of it. 9. The bundle supplied with the SDK has been tested, but you can still update it, if desired, from the SVN (subversion) branch: svn up adwhirl 10. If you update the bundle, you must edit the utility class to include your AWS keys and any specific configuration you desire. Emacs, vim, nano, ed, and so on are all installed on the instance; feel free to use your editor of choice. For example: emacs adwhirl/src/util/adwhirlutil.java 11. Build the distribution. ant dist 12. Now you have a jar that you can use to start the services. java -jar adwhirl/dist/adwhirl.jar You re up and running!

Re- Bundling Your Instance If you want to save any changes to the current instance, you must re- bundle it. To re- bundle your instance, follow these steps. 1. You must copy your private key and X.509 certificate to the instance from your local machine: scp -i keyfile pk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pem cert-yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.pem root@domu-aa-aa-aa-aa-aa-aa.zzzz.compute.amazonaws.com 2. After you make your changes, a system snapshot must be created and packaged into an AMI. Replace ZZZZZZZZZZZZ with your AWS Account ID (not your AWS key). ec2-bundle-vol -d /mnt -k ~root/ pk- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem -c cert-yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy.pem -u ZZZZZZZZZZZZ This command may take several minutes to complete. 3. Confirm that you now have an AMI, its associated manifest file, and image parts: ls -l /mnt/image.* 4. Because all AMIs are loaded from Amazon S3 storage, you must upload your newly bundled AMI to your account on Amazon S3. S3 stores data objects in buckets, which are similar to directories. You must specify a bucket name in the command below for <your-s3-bucket>. ec2-upload-bundle -b <your-s3-bucket> -m /mnt/image.manifest.xml -a <aws-access-key-id> -s <aws-secret-access-key> 5. In order for Amazon EC2 to locate your AMI, you must register it: ec2-register <your-s3-bucket>/image.manifest.xml Now you can create instances of your new AMI. Terminating Your Instance At some point, you will want to terminate your instance and stop being billed. You can terminate it using this command: ec2-terminate-instances i-yyyyyyyy Alternatively, if you are already logged in to the AMI instance, you can shut it down with your ssh tool: shutdown -h now

Using Elastic Load Balancing Elastic Load Balancing is a web service that distributes application loads between two or more EC2 instances. To use the Amazon Elastic Load Balancing API Tools, follow these instructions. 1. Get the Elastic Load Balancing API Tools from: http://developer.amazonwebservices.com/connect/entry.jspa?externalid=2536 &categoryid=88. You can find documentation on the syntax of the Elastic Load Balancing tools at: http://docs.amazonwebservices.com/elasticloadbalancing/2009-05- 15/DeveloperGuide/ 2. Create a new load balancer. Make sure your availability zones correspond with the zones your instances are in. elb-create-lb AdWhirlLB --headers --listener "lb-port=80, instance-port=80,protocol=http" --availability-zones us-east-1a This returns the DNS name of your load balancer. You'll want to add this as a target to a CNAME entry in your DNS record. 3. To make sure that your instances are up and running correctly, add a health checker: elb-configure-healthcheck AdWhirlLB --headers --target "HTTP:8080/ping" --interval 30 --timeout 3 --unhealthy-threshold 2 -- healthy-threshold 2 4. Register your instances with the load balancer: elb-register-instances-with-lb AdWhirlLB --headers --instances i-xxxxxxxx,i-yyyyyyyy Traffic should now be automatically split between your running instances.