India’s Leading Domain & Web Hosting Provider
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
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
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.
Implementation approach
Measured results
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
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.
Return on investment
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.