# Single instance over two VMs

**URL:** <https://forum.dimagi.com/t/single-instance-over-two-vms/11623>\
**Category:** Developers\
**Created:** [March 3, 2025, 9:57am UTC](https://forum.dimagi.com/t/single-instance-over-two-vms/11623 "2025-03-03T09:57:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erobinson](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/erobinson/32/2652_2.png) [@erobinson](https://forum.dimagi.com/u/erobinson)\
**Post date:** [March 3, 2025, 9:57am UTC](https://forum.dimagi.com/t/single-instance-over-two-vms/11623/1 "2025-03-03T09:57:45Z")

</div>

If I were to deploy a single instance of CommcareHQ over two virtual servers, would this be a reasonable split of the resources?

VM1 - compute heavy: Web app (Django, Nginx), Celery for limited time sensitive background tasks e.g. form processing, Redis

VM2 - memory and disk I/O heavy: PostgreSQL, CouchDB, Celery for heavier background tasks like reports and exports, RabbitMQ, Elasticsearch

How much effort would this configuration be to deploy - would it be an environment tweak or would I need some custom ansible scripting?

Thanks!
