Teamlab Amazon Machine Image Usage User Guide: General Information Instance Lanuch Instance Type Selection
Teamlab Amazon Machine Image Usage User Guide: General Information Instance Lanuch Instance Type Selection
User Guide
Introduction
General Information
Instance Lanuch
Instance Type Selection
Micro Instance
Small Instance
High-CPU Medium Instance
Pricing
Changing Instance Type
Additional Settings
Elastic IP and DNS Settings
Port for TM Talk Desktop Clients
Image Structure
Administrator
EBS
Service Management
MySQL
FTP
Security
Backup
Amazon
FTP
Resources
Introduction
This guide describes the Amazon Machine Image (AMI) with the TeamLab portal preinstalled.
The TeamLab AMI launch procedure, its structure and configuration will be covered here in
detail.
If you have never used Amazon Web Services and EC2 before, we recommend you to read the
following materials first:
General Information
Image Name: teamlab-portal-v2.0.3-x86
AMI includes:
● Microsoft Windows 2008 R1 SP2 Datacenter edition 32-bit architecture
● two EBS volumes: a 30Gb volume and a 10Gb volume
Instance Launch
Step 1. Sign up for Amazon Web Services (AWS) and Elastic Compute Cloud (EC2)
You'll need to create an AWS account first. To do that, click on the link below and follow the on-
screen instructions:
https://aws-portal.amazon.com/gp/aws/developer/registration/index.html
Once your AWS account is created, sign up for EC2. To do that, click on the link below, next
click the Sign Up for Amazon EC2 button and follow the instructions provided:
http://aws-portal.amazon.com/gp/aws/developer/subscription/index.html?
productCode=AmazonEC2
Step 2. Sign in to AVS Management Console
From AWS Management Console click Sign in to the AWS Console and sign in with the e-mail
address and password you used when signing up for Amazon EC2.
Note: at the moment AMI is created only for N. Virginia, USA. This means that the physical
server wil be located in this region, but your instance will still be accessible from anywhere.
Step 3. From the Amazon EC2 Console Dashboard, click Launch Instance and follow the
steps of the Request Instance Wizard:
1. Choose an AMI
2. Instance Details
Select the appropriate instance type. See Instance Type Selection for details.
5. Configure Firewall
Create a new Security Group, enter the name of the group (for example, Teamlab Portal),
next add the following rules:
Click Launch. A confirmation page is displayed to let you know your instance is launching. Click
Close to close the confirmation page, and then click Instances in the navigation pane to view
your instance's status.
• Wait for the instance to change its status from pending to running.
• Wait some 4-5 mitutes for your computer to become completely functional.
http://aws.amazon.com/ec2/faqs/#How_quickly_will_systems_be_running
• Once the instance status has changed to running, copy the address from the Public
DNS field and paste it to your browser.
• This will open the Getting Started page. Follow the steps of the wizard to enter your
personal details.
Note: when you access the portal for the first time, its pages might load quite slowly.
This will happen only during your first visit.
Your portal is now ready. See Additional Settings for more information about the additional
portal settings you might need.
The instance has a 32-bit architecture, so it can be deployed on one of the following three
instance types:
● t1.micro - Micro Instance - 613 MB of memory, up to 2 ECUs (for short periodic
bursts)
● m1.small - Small Instance - 1.7 GB of memory, 1 EC2 Compute Unit
● c1.medium - High-CPU Medium Instance 1.7 GB of memory, 5 EC2 Compute
Units
For details about instance types please follow this link http://aws.amazon.com/ec2/#instance
Micro Instance
This is a new type of instance which is not so expensive, but has little RAM and provides quite
slow performance. See Micro Instance Concepts for details about this instance type.
We recommend using this type of instance for testing or running a small portal with 20-30
users.
Small Instance
This instance type has enough RAM and CPU resources to run a TeamLab portal.
We recommend using this type of instance for running a portal with 50 or more users.
As a rule, this instance type has excessive CPU resources for TeamLab use.
We recommend selecting this type of instance only if the portal is used very intensively,
otherwise it will not be cost-effective.
Pricing
The table below displays the approximate monthly cost of the portal usage for various types of
instances. Prices are shown for September 2010 in N. Virginia, USA:
● http://aws.amazon.com/ec2/purchasing-options/
● More about pricing: http://aws.amazon.com/ec2/#pricing
● More about reservations: http://aws.amazon.com/ec2/reserved-instances/
● Price calculator: http://aws.amazon.com/calculator
Changing Instance Type
If for any reason you feel that the selected type of instance doesn't suit you (you need a more
powerful or a cheaper solution), you may easily change it. This can be done in a few steps:
Additional Settings
When you select a public address which will be used to access the portal, be it Amazon Public
DNS, IP or your own DNS entry, you´ll need to specify it in the portal settings. It is necessary for
the correct functioning of TM Talk and notification links.
TM Talk is based on an open XMPP(Jabber) architecture, so many desktop clients may be used
as TM Talk clients. For the correct functioning of these clients it is necesarry to open the
standard Jabber protocol port. To do this, in the Security Group where the instance is located
add a rule that opens port 5222 for all IP addresses.
Image Structure
Administrator
To access the OS, the only user account with the following data is created:
After the instance has been created, it is recommended to change this password.
EBS
The image includes two EBS volumes – a 30Gb volume and a 10Gb volume. The first volume
(30Gb) is logical disk C, the second volume (10Gb) is logical disk D. Disk C is a system disk
where the operating system and all the needed software, including TeamLab binary files, is
installed. Disk D contains all the portal data such as databases and uploaded content.
EBS storage has been divided in two volumes for easier update and backup operations. The
volume corresponding to disk C is bootable and will be deleted automatically upon deleting the
instance. That´s why it is not recommended to store data on disk С. You may use disk D for this
purpose.
Service Management
To launch or stop the portal services, use the start.bat and stop.bat files located in the
following directory: C:\teamlab\_control\
MySQL
There is a user account named tm-usr on the server. This account is used to access the portal.
MySQL user passwords are located in the following directory: C:\teamlab\_deploy\db\pass
FTP
The Filezilla FTP server is installed on the machine. It has the only user account with the
following data:
Name: root
Password: TeamlabRoot
User Home Directory: D:\ftproot
To access the instance via FTP protocol you'll also need to additionally configure the instance
SecurityGroup by adding the following 2 rules:
After the group has been created, it is recommended to change user password to avoid
unauthorized access.
Security
After the instance has been launched, it is strongly recommended to change all passwords. It
especially concerns the Windows Administrator account and MySQL root account.
Backup
You may easily create a full backup of the portal data. This can be done quite easily due to the
fact that all the portal data are located on one and the same EBS volume that corresponds to
logical disk D in Windows:
The easiest way is to make a snapshot of the EBS volume that represents disk D. More
information on how to perform this task you may find here: How to Create an Amazon EBS
Snapshot
To restore the portal backup data, you'll need to create a new volume from snapshot, attach it to
the instance, stop the TeamLab and MySQL services, and replace disk D by the disk that
corresponds to the volume restored from snapshot:
FTP
You may also perform data backup manually. To do that you'll need to copy and archive the
database and user data folders, next download them via FTP and save to a secure directory. To
restore such backup you'll need to stop the MySQL and Teamlab services, copy the data from
backup folders back to the original folders and run the services.
Resources
1. Amazon Elastic Compute Cloud (EC2) Documentation
a. Amazon Elastic Compute Cloud - Getting Started Guide
b. Amazon Elastic Compute Cloud - User Guide
2. Amazon Elastic Block Store (EBS)
a. Elastic Block Store Concepts
b. Using Amazon Elastic Block Store