alibaba / alibaba/anyproxy

Cache folder grows too big over time. Is there a way to limit/disable the cache?

Open
#544 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Linux 4.15.0
Node 12.14.1
AnyProxy 4.0.5

We have a long-running Node service that runs AnyProxy like this:

```typescript
import anyproxy from 'anyproxy'
...
const proxyServer = new anyproxy.ProxyServer({
...
});
proxyServer.on(...);
proxyServer.on(...);
proxyServer.start();
```

Every day, the cache directory grows by ~12 GB. Since this is a long-running process, eventually the cache directory grows too big and we run out of disk space.

Is there a way to configure AnyProxy so that either:
1. The cache folder is disabled?
2. The cache folder is limited to a certain size, e.g. with LRU eviction?

Contributor guide

No contributing guide indexed for this repository

Research direction

The reported entry point is the Node.js ProxyServer setup shown in the issue. Start by locating AnyProxy's cache configuration and storage implementation, then determine whether disabling or size-limited eviction is supported. Done means a documented configuration works for a long-running proxy and prevents unbounded cache growth.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.