An ads-runtime pod is evicted because the EmptyDir volume for archive-cache-dir exceeds the limit

Symptoms

You see a similar message when ads-runtime pods are evicted:
reason: Evicted
message: 'Usage of EmptyDir volume "archive-cache-dir" exceeds the limit "100Mi". '

Causes

The volume of archive-cache-dir is too low for your usage.

To optimize the resource usage, the default limit is configured in EmptyDir. It is used by all pods. For archive-cache-dir, the limit is set to 100 MB in the small profile, and 1 GB in all other cases.

Resolving the problem

Limit the number of decisions in cache, or extend the limit for EmptyDir.

For more information about configuring the ads-runtime cache to limit the number of decisions, see unit="entries" in the cache.config.resources parameter in Decision runtime parameters.

Restriction: Because you cannot specify a maximum volume on disk for decision service archives, you can limit only the count or volume in memory. The volume of decision service archives cannot be estimated as it depends on your code.