Improve from Amazon Redshift DC2 node sort to Amazon Redshift Serverless


Amazon Redshift is a completely managed, petabyte-scale, cloud information warehouse service. You should use Amazon Redshift to run advanced queries towards petabytes of structured and semi-structured information shortly and effectively, integrating seamlessly with different AWS companies.

Amazon Redshift Serverless helps you run and scale analytics in seconds with out having to arrange, handle, or scale information warehouse infrastructure. It mechanically provisions information warehouse capability and intelligently scales the underlying sources to ship quick efficiency for demanding workloads and also you pay just for the compute capability you employ. Moreover, with Amazon Redshift managed storage, you possibly can additional optimize your information warehouse by scaling storage and compute independently and also you pay just for the storage you employ.

Upgrading your information warehouse from Amazon Redshift dense compute (DC2) situations to Amazon Redshift Serverless unlocks these benefits and gives an enhanced person expertise and simplified operations, providing a extra environment friendly, scalable answer for information analytics.

On this put up, we present you the improve course of from DC2 situations to Amazon Redshift Serverless. We’ll cowl:

  1. Assessing your present setup and figuring out if an improve is best for you
  2. Planning and getting ready for the improve
  3. Step-by-step directions for the improve course of
  4. Put up-upgrade optimization and finest practices

Why improve to Amazon Redshift Serverless

By utilizing Amazon Redshift Serverless, you possibly can run and scale analytics with out managing information warehouse infrastructure. Once you improve from DC2 situations to Amazon Redshift Serverless, you get the next advantages:

  • Simplified operations: Entry and analyze information with no need to arrange, tune, and handle compute clusters.
  • Automated efficiency optimization: Ship constantly excessive efficiency and simplified operations for demanding and unstable workloads with computerized scaling and AI pushed scaling and optimization.
  • Pay-as-you-go pricing: The versatile pricing construction costs you solely throughout lively utilization; you pay just for what you employ.
  • On-line upkeep: Amazon Redshift Serverless mechanically manages system updates and patches with out requiring upkeep home windows, serving to to facilitate seamless operation of your information warehouse.
  • Decoupled storage and compute: Management prices by scaling and paying for compute and storage individually with Amazon Redshift managed storage.
  • Entry to new capabilities: Use superior options together with information sharing writes, Redshift Streaming Ingestion, zero-ETL, and different capabilities.

Sizing steering

To improve from DC2 to Amazon Redshift Serverless, it is advisable to perceive the dimensions equivalency. The next desk reveals instructed sizing configurations when upgrading from the DC2 node sort.

Notice that availability of Redshift Processing Unit (RPU) configurations varies by AWS Area.

Current node sort Current variety of nodes Amazon Redshift Serverless improve
DC2.massive 1–4 Begin with 4 RPUs
DC2.massive 5–7 Begin with 8 RPUs
DC2.massive 8–32 Add 8 RPUs per 8 nodes of DC2.massive
DC2.8xlarge 2–32 Add 16 RPUs per node (as much as a most of 1,024 RPUs)

These sizing estimates present a versatile place to begin tailor-made that will help you benefit from Amazon Redshift Serverless. The perfect configuration on your wants will rely upon elements akin to your required steadiness of value and efficiency and the particular latency and throughput necessities of your workload. To additional optimize the sizing based mostly in your particular necessities, you need to use a number of of following approaches:

  • Take a look at your workload beforehand: Earlier than migrating to Amazon Redshift Serverless, consider your workload’s efficiency necessities in a non-production setting. The Amazon Redshift Take a look at Drive utility simplifies this course of by simulating your manufacturing workloads throughout completely different serverless configurations. You should use the outcomes to assist determine the optimum steadiness between efficiency and price and make knowledgeable choices about your configuration. For step-by-step steering on utilizing the Take a look at Drive utility for DC2 to Serverless upgrades, see the Amazon Redshift Migration Workshop. Operating these efficiency assessments earlier than migration lets you determine any mandatory changes to your configuration earlier than deploying to manufacturing
  • Monitor in manufacturing: After you’ve deployed your workload, carefully monitor the efficiency and useful resource utilization for over a time period that represents your typical workloads. Based mostly on the noticed metrics, you possibly can then scale the sources up or down as wanted to attain the very best steadiness of efficiency and price.
  • AI-driven scaling and optimization: Think about using Amazon Redshift Serverless with AI-driven scaling and optimization to mechanically measurement Amazon Redshift Serverless on your workload wants.

A methodical method to sizing validation, combining each pre-production testing and ongoing manufacturing monitoring, helps guarantee your Amazon Redshift Serverless configuration aligns along with your workload.

Improve to Amazon Redshift Serverless

To improve to Amazon Redshift Serverless, you need to use a snapshot restore to maneuver instantly from Amazon Redshift to Amazon Redshift Serverless, as proven within the following determine. A snapshot restore restores information and objects along with customers and their related permissions, configurations, and schema buildings. By utilizing snapshot restore for migration, you possibly can validate the goal Amazon Redshift Serverless warehouses with out impacting your manufacturing Amazon Redshift DC2 cluster. You can even use snapshot restore emigrate your Amazon Redshift DC2 workloads to completely different Areas or Availability Zones.

Stipulations emigrate utilizing a snapshot restore

  1. Create an Amazon Redshift Serverless workgroup with a namespace. For extra data, see creating workgroup with a namespace.
  2. Amazon Redshift Serverless is encrypted by default. Amazon Redshift Serverless additionally helps altering the AWS KMS key for the namespace so you possibly can adhere to your group’s safety insurance policies.
  3. Confirm that the Amazon Redshift Serverless namespace you’re making an attempt to revive to is connected to an Amazon Redshift Serverless workgroup.
  4. To revive from a provisioned Amazon Redshift cluster to Amazon Redshift Serverless, the AWS Id and Entry Administration (IAM) person or function should have the next permissions: redshift-serverless:RestoreFromSnapshot, CreateNamespace, and CreateWorkgroup. For extra data, see Amazon Redshift Serverless restore.

Improve utilizing the console

Use the next steps within the AWS Administration Console for Amazon Redshift to improve your DC2 cluster to Amazon Redshift Serverless utilizing the snapshot restore technique.

  1. On the Redshift console, select Clusters within the navigation pane. Choose your cluster after which select Upkeep.
  2. Select Create snapshot to create a guide snapshot of the prevailing Amazon Redshift provisioned cluster.
  3. Enter a snapshot identifier, choose the snapshot retention interval, after which select Create snapshot.
  4. Choose the snapshot you wish to restore to Amazon Redshift Serverless from the checklist after which select Restore snapshot and choose Restore to serverless namespace.
  5. Below Choose namespace, choose your goal serverless namespace from the dropdown checklist after which select Restore.
  6. The restoration time will differ based mostly in your information quantity.
  7. After the restoration completes, confirm your information migration by connecting to your Amazon Redshift Serverless workspace utilizing both the Amazon Redshift Question Editor v2 or your most well-liked SQL consumer.

For extra data, see Making a snapshot of your provisioned cluster.

Improve utilizing the AWS CLI

Use the next steps within the AWS Command Line Interface (AWS CLI) to improve your DC2 cluster to Amazon Redshift Serverless utilizing the snapshot restore technique.

  1. Create a snapshot from the supply cluster:
    aws redshift create-cluster-snapshot --cluster-identifier   --snapshot-identifier 

  2. Confirm that the snapshot exists:
    aws redshift describe-cluster-snapshots --snapshot-identifier 

  3. Restore the snapshot to your Amazon Redshift Serverless namespace:
    aws redshift-serverless restore-from-snapshot --snapshot-arn "arn:aws:redshift:::snapshot:/" --namespace-name  --workgroup-name  --region 

For extra data, see Restore from cluster snapshot utilizing AWS CLI.

Greatest practices for upgrading to Amazon Redshift Serverless

The next are really useful finest practices when upgrading from Amazon Redshift to Amazon Redshift Serverless.

  • Pre-upgrade:
  • Put up-upgrade:
    • Replace current connections: Once you migrate to Amazon Redshift Serverless, a brand new endpoint will probably be created. Replace any current connections to enterprise intelligence and different reporting instruments.
    • Observability and monitoring: When you’ve got any information monitoring instruments utilizing methods views, confirm that there are not any open or empty transactions. It’s essential as a finest observe to finish transactions. If you happen to don’t finish or roll again open transactions, Amazon Redshift Serverless will proceed to make use of RPUs for these transactions.
    • Entry: When utilizing IAM authentication with dbUser and dbGroups, your functions can entry the database utilizing the GetCredentials API. For extra data, see Connecting utilizing IAM.
    • System views: Evaluation the checklist of unified system views out there in Amazon Redshift Serverless.

In case your workloads aren’t fitted to Amazon Redshift Serverless due to their nature or any of the concerns listed in Concerns when utilizing Amazon Redshift Serverless, you possibly can improve to Amazon Redshift RA3 situations by following the RA3 sizing steering.

Value concerns

On this part, we offer data that will help you perceive and handle your Amazon Redshift Serverless prices.

  • You’ll be able to scale back your serverless computing prices by reserving capability upfront when you’ve predictable utilization patterns.
  • Amazon Redshift Serverless mechanically adjusts capability based mostly on workload. By setting a most RPU restrict, you possibly can management prices by capping how a lot the system can scale up.
  • Amazon Redshift Serverless makes use of RPUs as a compute unit. Whereas it begins with a default of 128 RPUs, you possibly can regulate the bottom RPU anyplace from 4 to 1,024 RPUs to match your particular workload wants and SLA requirement. For extra data, see Billing for Amazon Redshift Serverless.
  • Amazon Redshift Serverless mechanically creates restoration factors each half-hour or every time 5 GB of information adjustments per node happen, whichever occurs first. The minimal interval between restoration factors is quarter-hour. All restoration factors are retained for twenty-four hours by default.

If it is advisable to protect backups for an extended interval, you possibly can create guide backups. Guide backups will incur extra storage prices.

Clear up

To keep away from incurring future costs, delete the Amazon Redshift Serverless occasion or provisioned information warehouse cluster created as a part of the prerequisite steps. For extra data, see Deleting a workgroup and Shutting down and deleting a cluster.

Conclusion

On this put up, we mentioned the advantages of upgrading Amazon Redshift DC2 situations to Amazon Redshift Serverless, along with the assorted choices for upgrading and a few finest practices. It’s important to find out the goal Amazon Redshift Serverless configuration and validate it utilizing Amazon Redshift Take a look at Drive utility in check and growth environments earlier than upgrading.

Get began upgrading to Amazon Redshift Serverless at present by implementing the steering on this put up. When you’ve got questions or want help, contact AWS Help forarchitectural and design steering, along with help for proofs of idea and implementation.


Concerning the authors

Nita Shah

Nita Shah

Nita is a Senior Analytics Specialist Options Architect at AWS based mostly out of New York. She has been constructing information warehouse options for over 20 years and makes a speciality of Amazon Redshift. She is concentrated on serving to clients design and construct enterprise-scale well-architected analytics and resolution help platforms.

Ricardo Serafim

Ricardo Serafim

Ricardo is a Senior Analytics Specialist Options Architect at AWS. He has been serving to corporations with Information Warehouse options since 2007.

Bryan Cottle

Bryan Cottle

Bryan is a Senior Technical Product Supervisor at Amazon Internet Providers. He’s obsessed with analytical databases, specializing in Amazon Redshift the place he helps clients optimize prices, navigate pricing methods, and efficiently handle their database migrations.

Sémir Naffati

Sémir Naffati

Sémir is a Sr. Worldwide Specialist Options Architect at AWS, based mostly in Paris, France. With over 25 years of expertise in information and analytics, he makes a speciality of guiding enterprise clients by way of advanced cloud transformations. His experience spans from legacy database methods (Oracle, SQL Server) to trendy cloud-native architectures (Redshift, Iceberg) and AI companies. He’s obsessed with serving to clients clear up their most difficult information issues and construct scalable, cost-efficient options.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles