Deployment in AWS with Auto Scaling (DRAFT): Difference between revisions
Dgreenwood (talk | contribs) |
Dgreenwood (talk | contribs) |
||
| Line 154: | Line 154: | ||
</tab> | </tab> | ||
<tab name="Launch and Connect To Instance" style="margin:20px"> | <tab name="Launch and Connect To Instance" style="margin:20px"> | ||
When you've finished configuring the EC2 instance, you will need to launch it, and then connect to it to install and configure Grooper. | |||
{|cellpadding=10 cellspacing=5 | |||
|valign=top style="width:40%"| | |||
=== Launch Instance === | |||
# At the bottom of the '''Summary''' heading, press the ''Launch instance'' button. | |||
|valign=top| | |||
[[File:2021-aws-how-to-07.png]] | |||
|- | |||
|valign=top| | |||
<br> | |||
#<li value=2> You will see the following success message if the instance was successfully launched. | |||
#* It may take a few minutes for Amazon to create the instance. The virtual machine will be running at launch time. | |||
|valign=top| | |||
[[File:2021-aws-how-to-08.png]] | |||
|- | |||
|valign=top| | |||
=== Connect to Instance === | |||
# To connect to the new instance, select '''Instances''' in the navigation bar. | |||
# Check the box next to the instance you want to connect to. | |||
#* The instance must be running in order to connect to it. Right-click an instance to start/stop it. | |||
#* If this is a new instance, Amazon will perform a series of initialization checks before you can connect to it. This may take a few minutes. | |||
# Press the ''Connect'' button to connect to the selected instance. | |||
|valign=top| | |||
[[File:2021-aws-how-to-09.png]] | |||
|- | |||
|valign=top| | |||
<br> | |||
#<li value=4> To connect to the instance using RDP, select the ''RDP'' tab. | |||
# If this is your first time connecting to the instance, you will need to decrypt a password from your key pair. To do this, press the ''Get Password'' link and follow its instructions. | |||
# Once you have your password, select the ''Download remote desktop file'' button to download an RDP file. | |||
|valign=top| | |||
[[File:2021-aws-how-to-10.png]] | |||
|- | |||
|valign=top| | |||
<br> | |||
Open the downloaded RDP file and enter the password to connect to the virtual machine. | |||
|valgin=top| | |||
[[File:2021-aws-how-to-11.png]] | |||
|} | |||
</tab> | </tab> | ||
<tab name="Grooper Installation" style="margin:20px"> | <tab name="Grooper Installation" style="margin:20px"> | ||
Revision as of 15:45, 20 June 2022
| WIP | This article is a work-in-progress or created as a placeholder for testing purposes. This article is subject to change and/or expansion. It may be incomplete, inaccurate, or stop abruptly.
This tag will be removed upon draft completion. |
Easily scale your Grooper processing with cloud-based computing using Amazon Web Services and Auto Scaling.
About AWS
Imagine you normally process a hundred documents a day. Then, out of nowhere, you start getting a thousand documents a day. Maybe its a busy time of year for you. Maybe you landed a huge client and need to process their paperwork. Great news! But how do you account for the increase in computing demands? How do you both scale up your IT infrastructure to meet the new demand and scale it down once the demand has subsided?
One answer lies in cloud-based computing. Spinning up a pool of virtual machines to process the additional workload is, generally speaking, quicker and more cost effective than purchasing and deploying physical computers. Furthermore, what are you going to do once you're done processing all that extra work? With a cloud-based IT infrastructure, you can quickly deactivate those machines and re-activate them as needed on-demand. With a physical infrastructure, you're stuck holding a lot of additional hardware until you need it again.
Amazon Web Services (AWS) is one of the most popular on-demand cloud computing providers. Their Elastic Compute Cloud (EC2) gives users a pay-as-you-go model to create, launch and terminate virtual computers, as needed. These virtual machines (which Amazon calls "instances") can be built to mirror physical computer specifications, including operating system, CPU, RAM and storage options. EC2 encourages scalability with web services that allow you to take a snapshot of a server's configuration (an Amazon Machine Image or "AMI") and boot a virtual machine with whatever software you need already loaded.
Furthermore, the process of spinning up and spinning down virtual machines can be automated with AWS Auto Scaling. This allows users to set automatic scaling parameters, defining when to launch new EC2 instances to meet surges in processing demand. The virtual machines are then terminated as soon as demand dies down. With a pay-for-use model, you only pay for the machines while they're running. Ultimately, this saves you time scaling your IT infrastructure up and down and saves you money only paying for what you need when you need it.
In this article, we will show you how to set up a scalable Grooper deployment using Amazon Web Services (AWS), Elastic Compute Cloud (EC2) instances and Auto Scaling.
- For more information on EC2 instances, visit Amazon's EC2 documentation.
- For more information on Auto Scaling, visit Amazon's Auto Scaling documentation.
The General Process
The general steps to complete this deployment setup are as follows:
- Launch the "Main" EC2 instance.
- This is the virtual machine that hosts the Grooper Repository's database and file store and the Grooper license for the "Worker" machines.
- Setup the Security Group.
- In AWS, Security Groups are a set of firewall rules, restricting inbound and outbound traffic based on protocols and port numbers.
- Launch the "Worker" EC2 instance.
- This is the virtual machine performing automated processing tasks.
- Grooper will need to be installed. Grooper will need to be licensed using the Main instance's hosted licensing. The Worker instance will need to be able to connect to the Main instance's Grooper Repository.
- Create an Amazon Machine Image (AMI) of the Worker instance.
- This image will be a snapshot of the Worker machine, with Grooper installed and ready for document processing.
- This is used to create new Worker instances automatically according to the Auto Scaling setup.
- Create a Launch Template.
- Essentially, a Launch Template is a set of instructions to launch a new EC2 instance programmatically (rather than manually, as done in step 3).
- Auto Scaling will use the Launch Template to create new Worker instances, using the AMI created in step 5, and assign the right Security Group.
- Configure the Auto Scaling policies.
- This defines the minimum and maximum number of virtual machines to be added as well as the scaling rules, what conditions should be met to spin up and down new EC2 instances.

How To
Launch the "Main" EC2 Instance
Getting Started
|
|
|
|
|
|
|
|
System Specs
|
|
Network Settings
Generally speaking, every organization will have their own network security requirements. Your IT department will need to configure the EC2 instance's Network Settings panel according to your needs. For the purposes of this demo, we will use the default Network Settings.
- For more information on networking, visit the Amazon documentation here.
- For more information on security, visit the Amazon documentation here.
|
We will create a new Security Group in this demonstration. |
Login Info
Amazon strongly recommends you log into EC2 instances using a key pair. If you plan on connecting to your virtual machines using RDP (which we will in this tutorial), you must specify a key pair.
- For more information on key pairs, please visit the Amazon documentation here.
|
We have already generated a key pair and selected it. |
When you've finished configuring the EC2 instance, you will need to launch it, and then connect to it to install and configure Grooper.
Launch Instance
|
|
|
|
|
Connect to Instance
|
|
|
|
|
|
|











