India’s Leading Domain & Web Hosting Provider
Agritech firm delivers 6 a.m. crop advisories to 2.1 million farmers on time
Crop-advisory and farm-input platform, 2.1 million registered farmers · Central and Northern India · 9 weeks
As-is situation
The company ran a regional weather downscaling model and crop-disease risk models on eight large VMs at a hosting provider. Each night the pipeline ingested gridded forecast data, ran the downscaling at 3 km resolution across 11 states, scored disease and irrigation risk per village, and pushed SMS and app advisories. The run took 7.5 hours on a good night; in kharif season, with more crops and districts, it frequently overran into mid-morning, after farmers had already sprayed or irrigated. The eight VMs ran 24x7 at INR 9.4 lakh per month despite being busy for only one-third of the day.
- Nightly pipeline duration of 7.5-10 hours against a 6 a.m. advisory deadline
- Advisories delayed on 23 days during the previous kharif season
- Fixed VMs idle around 65% of each day but billed continuously
- Model runs needing a mix of memory-heavy downscaling and CPU-heavy per-village scoring
Selected Google Cloud services and architecture
NTSPL split the pipeline into stages orchestrated by Cloud Scheduler and Workflows. Weather downscaling runs as an MPI-capable Batch job on a compact placement of C4 VMs in asia-south2, chosen for per-core speed, on standard provisioning because the stage is deadline-critical. Village-level risk scoring fans out into 4,800 Batch tasks on Spot VMs using N4 custom shapes with a 1:6 vCPU-to-memory ratio. A small autoscaled N4 MIG serves the advisory API and SMS gateway connectors. Intermediate grids land in Cloud Storage, and all eight fixed VMs were retired once two full kharif-week runs finished before 4 a.m.
Implementation approach
Measured results
Operational improvements
- The on-call engineer no longer restarts overrunning scripts at 4 a.m.; Workflows retries failed stages individually
- Adding a new state is a configuration change to the task count, not a new VM
- Agronomists can rerun one district's scoring during the day without disturbing the nightly run
Cost considerations
The deadline-critical downscaling stage runs on standard C4 VMs, deliberately paying on-demand rates for predictability, while village scoring takes Spot pricing. A small three-year resource-based commitment covers only the advisory API MIG. Retiring eight always-on VMs, rather than discounting them, produced the largest single reduction.
Return on investment
Monthly compute cost fell by an indicative INR 5-5.5 lakh, about INR 60-65 lakh a year, recovering the migration investment within five months. On-time advisories improved the input-retailer partner programme's conversion, which management estimates at INR 80 lakh to 1.1 crore in additional annual revenue.