Mastering Elastic Cloud Deployment: Shards & Memory Optimization