India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSPharmaceutical distributionHealthcare & Life Sciences

Pharma distributor runs SQL Server ERP on RDS Multi-AZ and cuts DB recovery to minutes

Regional pharma distributor, about 1,100 employees, 14 warehouses and 9,000 retail chemist customers · Northern and Eastern India · 8 weeks

Amazon Web Services
01

As-is situation

A packaged ERP for distribution handled orders, batch and expiry tracking, GST e-invoicing and scheme accounting on Microsoft SQL Server 2014 Standard Edition, running on a single physical server in the head-office server room with 1.1 TB of data. Backups went to a USB drive nightly. When the RAID controller failed, the ERP was down for 19 hours and warehouses issued handwritten challans. SQL Server 2014 was out of extended support, and the ERP vendor certified only SQL Server, ruling out an engine change.

  • Single server with no standby; the last outage lasted 19 hours
  • SQL Server 2014 out of support with no security patches
  • End-of-day batch for e-invoicing and scheme settlement running 3.5 hours and overlapping morning dispatch
  • No in-house DBA; backups were never test-restored
02

Selected AWS services and architecture

Because the ERP vendor certifies only SQL Server, NTSPL chose Amazon RDS for SQL Server Standard Edition, licence included, on a Multi-AZ deployment in ap-south-1, upgrading to SQL Server 2022 as part of the move after the vendor confirmed compatibility. The instance uses an r6i memory-optimized class with gp3 storage provisioned at 12,000 IOPS, sized from measured disk queue length during the end-of-day batch. Automated backups keep 14 days of point-in-time recovery, with weekly snapshot copies to ap-south-2 through AWS Backup. Data moved by native backup and restore through S3 for the initial copy, then DMS CDC until a Saturday-night cutover. The ERP application servers moved to EC2 in the same VPC.

Warehouse and head-office users → Site-to-Site VPN → ERP application servers on EC2 → Amazon RDS for SQL Server Multi-AZ (ap-south-1) → AWS Backup snapshot copies (ap-south-2)
Amazon RDS for SQL Server (Multi-AZ)Amazon EBS gp3AWS DMSAmazon S3AWS BackupAWS Site-to-Site VPN
03

Implementation approach

Weeks 1-2 · Compatibility and sizingConfirmed SQL Server 2022 support with the ERP vendor and captured two weeks of perfmon data covering month-end.
Weeks 3-5 · RDS build and test restoreBuilt the Multi-AZ instance, restored a native backup from S3 and ran the end-of-day batch to tune storage IOPS.
Weeks 6-7 · Replication and user testingKept the target current with DMS CDC while warehouse users tested order entry and e-invoice generation.
Week 8 · Cutover and failover testCut over on a Saturday night and forced a Multi-AZ failover in the first week to prove recovery.
04

Measured results

Recovery from database host failure
19 h (actual incident)→~2 min (tested Multi-AZ failover)
End-of-day e-invoicing and scheme batch
3.5 h→1.2 h
Recovery point objective
~24 h (nightly USB backup)→Minutes (point-in-time restore)
SQL Server version support status
Out of support (2014)→Supported (2022)

Operational improvements

  • Backups are automated and restore-tested monthly instead of relying on a USB drive
  • Patching of the SQL Server engine happens in a defined maintenance window managed by RDS
  • Morning dispatch no longer waits for the overnight batch to finish
05

Cost considerations

Licence-included Standard Edition was cheaper than buying perpetual licences plus Software Assurance for a two-node cluster, and Multi-AZ doubles instance cost, which the business accepted after the 19-hour outage. A one-year Reserved Instance covers the instance. Provisioned gp3 IOPS were set from measured batch load rather than moving to io2.

06

Return on investment

ROI indicator

The distributor avoided buying a new server pair and SQL Server licences estimated at INR 45-55 lakh and now pays an indicative INR 2.5-3 lakh a month for the RDS instance and storage. One avoided day-long outage, worth an estimated INR 60-80 lakh in delayed dispatches, justifies the annual run cost.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.