---
title: "Use Claude to optimize the resources your apps use"
description: "Use Claude to optimize the resources your apps use. It reads a day of real usage, proposes smaller sizes with the headroom each one keeps, and applies them when you say so. In this session that gave back 2.75 CPU cores and 2.5 GiB of memory."
eyebrow: "Optimize from Claude"
order: 8
pubDate: 2026-10-15
image: /use-cases/og/right-size-with-claude.png
imageAlt: "Use Claude to optimize the resources your apps use - Claude reads the usage, you approve the cut"
---

## Make sure your apps reserve the right amount of resources

A new app starts on a small size, because it needs little. Its needs change as it runs: a launch, a traffic spike or a quiet month can leave it reserving more than it uses, or less than it needs.

Rock8Cloud bills by the CPU and memory you reserve, not by traffic: a pool in your plan, and fixed-price add-on units beyond it. Compute is costly everywhere at today's hardware prices. That is why we give you easy-to-use tools to optimize what each app reserves, whenever you need to. Doing it by hand means opening a metrics view per service, reading a day of graphs and doing the arithmetic. With Claude it is one question.

## See how it works on a real app

With Rock8Cloud connected, Claude reads the same usage you would, for every service at once, and comes back with a proposal. Two minutes in the Claude app, every prompt on screen:



[Right-sizing a todo app from the Claude app](https://marketing-db.public.storage.rock8.cloud/use-cases/right-size-with-claude/claude-optimize-16x9-v4.mp4)



The video shows the whole session. Here it is transcribed step by step:



### What is running

![The first prompt and the live Rock8Cloud dashboard Claude opens in the chat: The production firefighter organization, 14 services and 11 live, with my-modern-todo-web, -api and -db at the top, all Running.](/use-cases/right-size-with-claude/optimize-dashboard.webp)

**you:** can you show me what is deployed in rock8cloud in the production firefighter organization ?

**tool:** open_dashboard

### A day of usage

![Claude's usage table for my-modern-todo-web, -api and -db over the last 24 hours: 500m, 500m and 1000m CPU allocated against about 0.6m, 1.9m and 3.3m used, and memory at 5%, 7% and 22% of what is allocated.](/use-cases/right-size-with-claude/optimize-usage.webp)

**you:** can we optimize resources for my modern todo app ? what resources does it use ?

**tool:** get_deployment_metrics

**claude:** Yes, there's room to optimize. All three services are heavily over-provisioned.

**claude:** That adds up to 2 CPU cores and about 1.5 GiB of memory reserved from your organization's pool, while actual usage is a tiny fraction of that.

### The proposal

![Claude's proposed resize: web and api from 500m / 512 MiB to 250m / 256 MiB, the database to 250m CPU with its 512 MiB kept for caching, freeing about 1.25 cores and 512 MiB from the pool.](/use-cases/right-size-with-claude/optimize-proposal.webp)

**claude:** web: 500m / 512 MiB → 250m / 256 MiB, the platform minimum. That still leaves about 10× memory headroom.

**claude:** This would free about 1.25 cores and 512 MiB from the pool, roughly 60% of the CPU and a third of the memory.

### Applied, one restart each

![After "apply the allocations", Claude lists each service before and after: web and api from 1500m / 1536 MiB to 250m / 256 MiB, the database from 500m / 512 MiB to 250m / 512 MiB, and notes the real savings are bigger than its estimate.](/use-cases/right-size-with-claude/optimize-applied.webp)

**you:** apply the allocations

**claude:** All three allocations are applied, and each service is doing a rolling restart with its new limits, which takes about a minute.

**claude:** In total this frees about 2.75 CPU cores and 2.5 GiB of memory.

### Back to running

![The dashboard again after the resize: my-modern-todo-api updated 1 minute ago, every todo service Running, and Claude noting that the redeploy fixed the api.](/use-cases/right-size-with-claude/optimize-dashboard-again.webp)

**you:** show me the dashboard again

**tool:** open_dashboard

**claude:** The redeploy fixed it: the api is back to Running. All three todo services are now healthy on their new allocations.

### What it gave back

![Claude's savings table: 3500m CPU and 3584 MiB before, 750m and 1024 MiB after, 2750m CPU and 2560 MiB freed across the three services.](/use-cases/right-size-with-claude/optimize-saved.webp)

**you:** how much resources did we save ?

**claude:** We saved 2.75 CPU cores and 2.5 GiB of memory from your organization's pool.

**claude:** That cuts the todo app's footprint by about 79% on CPU and 71% on memory.



The estimate and the result differ, and Claude says why: the platform had the web and API services on bigger limits than the usage metrics it quoted first. The table at the end is what changed.

## It asks before it cuts

Claude proposes, you decide. The proposal names every service, its current size, what it actually used and the size it would set, with the headroom that leaves. Nothing changes until you answer. A database keeps its memory when it uses it for caching, and Claude says so instead of cutting it to the minimum.

Each new size takes effect with a restart of that service, about a minute. Ask for the dashboard afterwards and Claude checks that every service runs on its new size, and sorts out any that does not, like the API in the video, which needed one redeploy.

## Set it up once

Rock8Cloud is in the Claude connector directory. Connect it once, and every Claude app on your account can read your usage and optimize it, phone included. The setup guide shows every click:



- **[Connect Rock8Cloud to Claude](/how-to/connect-claude)**: Every click with a screenshot: open the listing, connect, approve with GitHub. No API key to copy.





**[Connect Rock8Cloud to Claude](https://claude.ai/directory/rock8cloud)**



Starting a new app? Get it live from one prompt in Claude Code, then come back and optimize it.



- **[Build a live app from one prompt](/blog/build-an-app-with-claude-code)**: A URL shortener with login, PostgreSQL and click analytics, from a proven blueprint, live at its own URL with the code in your GitHub.
