Score:0

when does Nginx have unexpected write on disk?

in flag

I use Nginx to cache static files. the main problem is sudden changes on write on the disk.

nginx.conf:

http {
    proxy_cache_path /cache-data levels=2:2:2 keys_zone=images_cache:60000m inactive=2d use_temp_path=off;


    server {
        access_log off;
        listen 8080 reuseport;

        location ~ ^/storage(\d+)?\.my-domain\.com/ {
            # Configure the proxy cache
            proxy_cache images_cache;
            proxy_cache_background_update on;
            proxy_cache_lock on;
            proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
            proxy_cache_valid 200 2d;
    }
}

the main problem: enter image description here this is a report of node exporter of Kubernetes (I have only an Nginx on this node)

I know:

  • the read rate on the disk is not changed.
  • the request rate is not changed.
  • the hit/miss/stale rate is not changed.
  • the volume size is not changed.
  • the access_log is disabled.

some update:

  • ram: 60GB
  • capacity of the pod (cache-data): more than 200GB
Ginnungagap avatar
gu flag
You've tagged this kubernetes yet fail to mention how it is involved in your question. Care to clarify?
drookie avatar
za flag
`keys_zone=images_cache:60000m` - could you please clarify what do you think this directive does, what is the amount of memory available for pod, and what is the size of cache directory so far ?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.