Skip to content

What is the Best Practice for on premise oracle to Aurora Postgres Setup on AWS Cloud

0

We have a use case there is an oracle physical server at on-premise which has 32 cores and 360 GB RAM and 14 TB Storage. This Physical server has 10 DB instances whch supports 10 applications. Now we need to move this onpremise DB to AWS Cloud Aurora Postgres, please let us know how to setup this platfrom on cloud, keeping in mind cost, performance and scalability. I need to calcuate the price upfront for Budgetting.

asked a year ago352 views

2 Answers
0

For migrating your on-premises Oracle databases to Aurora PostgreSQL on AWS, I recommend a structured approach that balances cost, performance, and scalability.

First, consider using a phased migration approach rather than migrating all 10 database instances at once. This reduces complexity and risk. You might start with core database functionality in the first phase, then integrate additional AWS services to optimize performance and reduce costs in subsequent phases.

For the migration process, follow these best practices:

  1. Assessment Phase:
  • Use AWS Database Migration Assessment Tool to evaluate your Oracle databases
  • Analyze schema, stored procedures, and application code for Aurora PostgreSQL compatibility
  • Document database dependencies and performance requirements for each application
  1. Mobilization Phase:
  • Set up an EC2 instance to host AWS Schema Conversion Tool (SCT)
  • Use AWS SCT to convert Oracle schemas to Aurora PostgreSQL format
  • Create an Oracle bystander database on EC2 to facilitate migration
  • Configure AWS Database Migration Service (DMS) for data transfer
  1. Migration Phase:
  • Consider offline migration for large, complex databases where downtime is acceptable
  • For minimal downtime requirements, use AWS DMS for continuous replication
  • Validate data integrity and application compatibility post-migration

For your specific setup with 10 database instances, consider these architecture recommendations:

  • Instead of creating a single large Aurora instance, create separate Aurora PostgreSQL instances for each application or group related applications based on resource requirements and usage patterns
  • Use Aurora's serverless option for applications with variable workloads to optimize costs
  • Implement multi-AZ deployments for critical applications requiring high availability
  • Leverage Aurora's storage auto-scaling feature instead of pre-provisioning the full 14TB

Post-migration optimization:

  • Implement performance monitoring using Amazon RDS Performance Insights
  • Optimize database configurations for PostgreSQL
  • Clean up unnecessary data and optimize schemas
  • Take advantage of Aurora's read replicas for read-heavy workloads

This approach allows you to modernize your database infrastructure while maintaining control over costs, ensuring performance, and gaining the scalability benefits of Aurora PostgreSQL.
Sources
Oracle to Amazon Aurora Migration – Planning Approach & Best Practices | AWS re:Post
Amazon RDS for PostgreSQL Resources – AWS
Migrate an Oracle database to Aurora PostgreSQL using AWS DMS and AWS SCT - AWS Prescriptive Guidance
Migrate an on-premises Oracle database to Amazon RDS for PostgreSQL by using an Oracle bystander and AWS DMS - AWS Prescriptive Guidance
Oracle database migration strategies - AWS Prescriptive Guidance

answered a year ago

0

Migrating an on-premises Oracle database environment to AWS Aurora PostgreSQL is a complex but highly beneficial project when approached with best practices in mind. The first step is to thoroughly assess your current Oracle server’s workload, including CPU, memory, storage, and I/O requirements for all ten database instances, as Aurora PostgreSQL architecture is designed to maximize performance and scalability, often with less hardware than on-premises solutions. Start by leveraging the AWS Schema Conversion Tool (SCT) to analyze schema compatibility and automate the conversion of Oracle objects and code to PostgreSQL equivalents. This is followed by using AWS Database Migration Service (DMS) for actual data migration, allowing you to replicate data from Oracle to Aurora PostgreSQL with minimal downtime and disruption to your applications.

When designing your Aurora setup, consider the logical separation of application databases within the Aurora cluster. In Aurora, you can create multiple databases within a single cluster; however, for truly isolated workloads or distinct application requirements, deploying multiple clusters may be optimal. For high performance, select appropriate Aurora instance types that align with your applications’ compute and memory needs using R6g or R7g instance families, for example, which offer robust resources at a competitive cost. Employ Aurora’s built-in features, such as read replicas for scaling read-heavy workloads, and Multi-AZ deployments for high availability and automated failover. Aurora’s storage is both highly durable and automatically scalable, so factor in not only the 14 TB of data but also anticipated growth and backup needs.

From a cost management perspective, it's essential to use the AWS Pricing Calculator (https://calculator.aws.amazon.com/) to estimate monthly costs based on chosen instance sizes, storage, backup retention periods, and I/O patterns. This will give you visibility into both ongoing and upfront costs for budgeting purposes. Consider leveraging features like Aurora Serverless v2 for unpredictable workloads to lower costs, and enable storage auto-scaling and automated backups for data protection. Finally, exhaustively test your migrated databases for performance, compatibility, and failover scenarios before cutting over production workloads. AWS documentation and whitepapers provide step-by-step guides and examples, making it easier to adopt a methodical, best-practice-driven migration process (AWS Database Migration Documentation).

In summary, take a methodical approach, assessing, converting, migrating, sizing, testing, and budgeting, to ensure a secure, high-performing, and cost-effective Aurora PostgreSQL environment that can scale with your future needs.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.