passportxyz / passport

Passport allows users to prove their identity through a secure, decentralized UI
Other
1k stars 462 forks source link

Evaluate AWS Aurora for the Scorer as a Cost-Effective Alternative to Our Current RDS Instance #2444

Closed nutrina closed 6 months ago

nutrina commented 7 months ago

Objective: Given the significant idle time in our current database (over 90% idle), we aim to explore AWS Aurora as a potential replacement for our RDS instance to optimize costs and evaluate performance impacts.

Tasks to Complete:

1. Provisioning: Provision an AWS Aurora instance in the staging environment, while retaining the existing RDS instance for comparison purposes. 2. Configuration: Configure autoscaling on the AWS Aurora instance to ensure it meets our operational requirements during varying load conditions. 3. Performance Testing: Conduct load testing on both the Aurora and current RDS setups. Tests should measure:

Expected Outcomes:

1. Performance Comparison: Detailed comparison of performance under high load scenarios focusing on: a. Throughput capabilities (e.g., Passport creation rate). b. Request success rate. 2. Scalability Analysis: Insights into the responsiveness and efficiency of Aurora's autoscaling feature during unexpected traffic surges. 3. Cost Analysis: A comprehensive cost analysis predicting monthly expenditures when using Aurora, considering both operational and idle times.

Acceptance Criteria:

Timebox for this is 2 days.

nutrina commented 6 months ago

The results for the aurora test has been posted here. Looks very promising. But we should make a comparison, where we look at the same test setup run at the DB instance and then run against Aurora

larisa17 commented 6 months ago

More details about the Aws Aurora setup & test results can be found at https://www.notion.so/gitcoin/Passport-Scorer-Aurora-DB-16ff9e2fdcd84dd885beb4cbe56419d7