The compute line on your monthly invoice is stable. The bandwidth line doubled. Nobody changed the application or launched a campaign, and the front-end traffic graph looks normal. The bill is real and the bytes are real — they are just not the bytes you were watching.
What’s happening
Egress spikes from a cloud VM rarely come from the site serving more pages. They come from one of four places:
- A backup or sync job pointed at an off-cloud destination (S3 in another region, an external rsync target, a misconfigured
borgrepo) now transferring full datasets nightly because the incremental chain broke. - A scraper or bot loop hammering an unauthenticated endpoint with large payloads — search results, product listings, sitemap-driven crawl.
- A misconfigured replication or CDN origin pull where the CDN no longer caches and every edge request hits origin for the full asset.
- Internal service traffic going over public IPs instead of the private network, double-counted as both ingress and egress on the same project.
The bill does not distinguish between these. You have to look at the traffic.
How to verify
Start with per-interface counters over a known window:
ip -s link show eth0
vnstat -i eth0 -d
Then look at what is actually on the wire during a peak period:
sudo iftop -i eth0 -P -N -B
sudo tcpdump -i eth0 -nn -c 2000 'not port 22' | awk '{print $3}' | sort | uniq -c | sort -rn | head
The top destinations should match your expected production traffic. If you see a backup bucket, an unfamiliar IP block, or a single client pulling the same URL pattern 50 times a minute, you have your culprit.
For application-level confirmation, the web server access log filtered by response size:
awk '{print $7, $10}' /var/log/nginx/access.log | sort -k2 -nr | head -50
Large responses going to a small set of user agents is bot activity. Large responses going to a CDN POP IP repeatedly is a cache that is no longer caching.
The fix
- Bot traffic — rate-limit at the proxy, require an API key, or block the offending ASN. Adding
Cache-Control: public, max-age=...on cacheable endpoints lets a CDN absorb the load. - Backup blowout — repair the incremental chain (
borg check --repair), pin the destination region to the VM’s region if the provider allows it, and verify the next run transfers only the delta. - CDN cache miss — confirm
cf-cache-status(or your CDN’s equivalent) returnsHITfor static assets. A recent origin header change can silently disable edge caching. - Internal traffic over public IPs — move service-to-service traffic onto a private network. See private networking between Cloud Compute instances.
If you cannot identify the source within an hour of looking, reach out — our Monitoring & Support service includes egress baselining as part of standard observability.