Setting Up Your Redshift Cluster

  • B

Do a quick search of data warehousing options and you’ll quickly see that Amazon Redshift has become an overwhelmingly popular alternative to spinning up your own solution. It’s become so popular that entire companies exist to get data into it. (We’re not knocking that; Redshift connectivity is an important part of our business too.)

The reasons behind this popularity are simple:

1) It’s Just Postgres

At its heart, Amazon Redshift is just PostgreSQL; one of the most popular SQL databases over the past 20 years. If you’ve used Postgres, you’re 99% of the way to understanding Redshift. If you haven’t but you know SQL, you’re 95% of the way there. If you don’t know SQL, you’re an afternoon of tutorials (SQL School, Code Academy) away from being 100% there.

2) It’s Something Better Than Postgres

Yeah, we lied. It’s not Postgres. It’s better! Without getting into the specifics, Redshift is actually a columnar based, massively parallel version of Postgres. What this means for you as the end user is that it’s much faster and scalable than just Postgres. Especially for larger datasets (up to Petabyte scale! PETABYTE!) performing OLAP (Online Analytic Processing) tasks with complex queries (i.e. not just transactionally adding in rows), Redshift is going to perform much better.

3) It’s a Managed Version of Something Better Than Postgres

So it’s SQL based, it’s bigger and faster…what third thing could make it better? How about being able to manage it via the AWS console? How about spinning a cluster up in 5 mins flat? How about two months to evaluate whether it’s something you want to use long term? Well, it’s true, and in this post, we’re going to walk you through how easy it is to get set up and going. 

First thing’s first: Go to https://aws.amazon.com/redshift/free-trial/ and click the button on the right labeled ‘Start Free Trial.‘

If you don’t have an AWS account already, you’ll need to create one before you can get started with Redshift. It’s a pretty basic set up (name, email, phone number, personal/company account, etc.) and the good news is that you’ll only need to do this once for any of AWS’s suite of tools.

email

Screen Shot 2016-02-23 at 2.15.20 PM

NOTE: While the Redshift trial is good for 750 hours/month of a DC1.Large node for two months, you will need to put in your credit card information in case you upgrade your cluster or go over usage hours (which shouldn’t happen if you’re using a single basic DC1.Large node.)

After you put in your payment method, you’ll need to choose your support plan. It’s important to point out that what you choose here does not affect your access to Redshift; it’s just about the level of support around the product. If you’re just starting out, we recommend going for the Basic plan. You can always upgrade later.

Screen Shot 2016-02-23 at 2.21.51 PM

After you’ve put in the tedious but necessary contact, payment, and support information, you’ll hit a launch screen for all the AWS products. Redshift is on the bottom left hand side.

dashboard

After you click on the Redshift option, you’ll land on the Redshift Dashboard. This is the main view that you’ll use to monitor all your activity with Redshift but, since you don’t have anything running yet, you’ll want to click the blue ‘Launch Cluster’ button to, well, launch your first cluster.

launch

You’ll then be directed to a series of configuration pages. On the first, you’ll create a unique identifier for your cluster (e.g. {company-name}-cluster-1) to help you identify it when you have multiple clusters running and then you’ll create some basic credentials for the databases itself.

Screen Shot 2016-02-23 at 2.27.20 PM-1

After that, you’ll hit a page asking you to configure the actual cluster. You can upgrade the node type from dc1.large to something more powerful or increase the number of total compute nodes. NOTE: If you still want to remain on the free tier for your trial, it’s important that you don’t change anything on this page. The free trial only covers 750 hours of dc1.large usage and anything above that will incur additional charges. If you decide you want to upgrade your cluster size down the line, you can resize it without much issue.

Screen Shot 2016-02-23 at 2.28.12 PM

On the next page, you’ll be able to set more advanced configuration for your cluster. This is a slightly complicated but very important step in protecting and accessing your data once your cluster is created so make sure you don’t rush through it.

In the first section, you’ll have the option to set up KMS or HSM encryption for your newly created database. This is a highly recommended step, especially if you are planning on using Redshift for your business. You can learn more about encryption with Amazon Redshift.

In the second section, you’ll set up your networking configuration. Here you’ll choose whether or not to make the database publicly accessible. If you are planning on using Redshift with a cloud based BI tool (and aren’t keen to do additional advanced configuration with your own VPC), you’ll want to set up public IP. 

settings

Lastly, you’ll have the option to set up CloudWatch Alarms, a separate AWS product that monitors the health and performance. While this will take some familiarity with CloudWatch, it’s ultimately worth the time invested if you’re looking to use Redshift actively for your business. Nothing is worth than realizing something went wrong and your data is lost…five days too late…

Screen Shot 2016-02-23 at 2.31.50 PM

ALRIGHT! Moment of truth! Quick recap - We’ve…

Only one thing left to do and that’s to Launch the Cluster!

launch2

It will take around ~10 minutes for the cluster to become fully set up. You won’t need to do anything during this period; once it’s all done, the “Cluster Status” will turn to the green ‘available’ label.

Screen Shot 2016-02-23 at 2.41.47 PM

Clicking into our newly created first cluster, we can see both our cluster properties (which we’ll need if/when we connect it to a tool, like, say…Astronomer…) as well as get a holistic picture of current status and backups. If you’re having trouble accessing it from a local client, check the security settings of the EC2 instance it’s running on and make sure your IP address is whitelisted.

Screen Shot 2016-02-23 at 2.42.04 PM 1

 

Well, that’s all the time we have for this session! For more info about working with Redshift and managing a data warehouse, check out our other posts or feel free to reach out to ben@astronomer.io!

Ready to Get Started?

Get Started Free

Try Astro free for 14 days and power your next big data project.