· Cloud

I deleted a server that had served zero requests in 30 days

A model server in my lab had answered nothing for a month, and I removed it after two more checks. Three weeks later the same request count on a busier machine would have hidden an idle model and a setting that no code reads.

A model server on one of my containers had answered zero API requests in 30 days, and on July 19 I deleted it. The request count is what made me look. I made two more checks before deleting anything, and three weeks later I learned that the same count, read the same way on a different machine, would have told me nothing useful.

What was there

The container runs the services behind my personal assistant. Its original job was serving local language models, and it still had a model server installed with five models on disk. In April I wrote that I was moving inference to a dedicated machine. The move finished. The old server stayed where it was, still running, holding 34 GB of model files on a disk that was 80 percent full.

The checks I made

The server's own log. The service journal for the model server showed no API requests in the previous 30 days. That is the number in the title. It says nothing called this server recently. It cannot say whether something is still configured to call it next month.

What the caller is configured to use. I read the assistant's configuration. Its model server address pointed at the dedicated inference machine. The log and the configuration are independent of each other, and they agreed.

Whether anything unique would be lost. The old server had five models. The inference machine had seven, and the five were all among them. Deleting the old copies would remove nothing I could not get from the other machine.

Then I searched for anything else that named the old server, and found one thing. A workflow in my workflow tool was marked active, had a schedule trigger, and was built to send requests to the old address. On paper that is a live dependency. Its execution history was empty. It had never run. I wrote it down as something to delete or repoint and went ahead.

What deleting it did

Removing the server and its models freed 34 GB. The container's disk went from 80 percent full to 44.

It took one item off the list from the port scan I wrote about in June. That scan had found the old model server listening on the home network, where nothing needed it.

It also made that container's backups much smaller, since those model files had been going into every one. That turned out to matter more than the disk space, and it is a separate story.

The same day I renamed the container on the hypervisor so that its name matches what it runs. Its name on the mesh VPN is unchanged, for the reason I gave in August.

The machine where the same test tells you nothing

On August 10 I pulled the same kind of evidence from the dedicated inference machine: 30 days of its request log.

It had served 89,718 requests. By the test I used in July, that machine was plainly in use and there was nothing more to look at.

The breakdown reads differently. Of those requests, 45,797 were calls to the endpoint that lists installed models. Ollama's API reference describes that endpoint in one line: "Fetch a list of models and their details." It loads no model and generates nothing. Something was calling it on a timer as a health check. So just over half the traffic on the busiest AI machine I own was a monitor asking whether it was awake.

The work was in the rest: 39,129 chat requests, 4,160 embedding requests and 622 generate requests.

What 89,718 requests in 30 days were made of
Model list (health check)45,797
Chat requests39,129
Embedding requests4,160
Generate requests622

From the inference machine's request log, pulled on August 10. The model list endpoint loads no model and generates nothing.

Then I counted by model. The server logs an event each time it loads a model into memory. Over the 30 days the small general-purpose model had 30 load events, the embedding model had 5 and another small model had 4. One large model had loaded once. One model had not loaded at all.

That last model was exactly as idle as the server I had deleted in July. It was sitting on a machine with nearly ninety thousand requests to its name, where a count taken at the server level would never have shown it. I removed it.

The model that loaded once was the more useful finding. It was the one my assistant's configuration named as its "quality" model. A configured model that loads once in a month suggests that nothing is reading the setting. I searched the code for the variable name and found no reference to it anywhere. The setting had been sitting in the configuration file looking like a decision somebody had made, with nothing connected to it. If I had changed it to a better model, I would have reported an upgrade and changed nothing.

On the first machine the right unit for "is this in use" was the whole server. On the second it was the individual model, and then the individual setting.

What I would check before deleting anything

  1. Usage from the resource's own log. Pick a window long enough to include anything that runs monthly.
  2. What the count is made of. Take out health checks, monitors and anything else that touches the resource without using it. A resource can be busy answering questions about whether it is up.
  3. What the callers are configured to use. The log only covers the window you looked at, so read the configuration to find the job that runs once a quarter.
  4. Whether it holds anything unique.
  5. Usage at the level you intend to delete. Count by server if you mean to delete a server and by model, table or queue if you mean to delete one of those.

The cloud version of this is well documented. The AWS Well-Architected guidance on decommissioning recommends monitoring a workload's requests or outputs and alerting "when workload requests or outputs drop to zero, indicating the workload resources are no longer used." It adds a sentence that people skip: "Incorporate a time factor if the workload periodically drops to zero under normal conditions." I would add the second item on my list to theirs. A load balancer health check or a monitoring probe will keep a request metric above zero on a service with no real users, and a rule that waits for zero will wait a long time.

One caveat. I could delete in one step because a full copy of everything on that server existed on another machine, so a wrong call would have cost me a download. Where a deletion cannot be undone, I would stop the resource first, leave it stopped for a full business cycle, and delete it only after nobody has come asking.

The idle server was my doing. I moved the workload in the spring and did not schedule the removal of what the move left behind. It is the same habit that left a 2 TB drive empty in my third machine, which I wrote about in July.

Views are my own.