# Nginx proxy\_path key zone

**URL:** <https://www.ruby-forum.com/t/nginx-proxy-path-key-zone/244307>\
**Category:** NGINX\
**Created:** [March 19, 2016, 10:02pm UTC](https://www.ruby-forum.com/t/nginx-proxy-path-key-zone/244307 "2016-03-19T22:02:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [March 19, 2016, 10:02pm UTC](https://www.ruby-forum.com/t/nginx-proxy-path-key-zone/244307/1 "2016-03-19T22:02:54Z")

</div>

The value I specify for the size of my key zone in the proxy\_path  
statement

- is that a per-worker memory allocation or a shared memory zone? (i.e.  
if  
its 64mb and I have 32 processors, does the zone consume 64mb of main  
memory or 2gb?)

---

<div class="post-metadata">

**Author:** ![CJ\_Ess](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@CJ\_Ess](https://www.ruby-forum.com/u/CJ_Ess)\
**Post date:** [March 19, 2016, 10:21pm UTC](https://www.ruby-forum.com/t/nginx-proxy-path-key-zone/244307/2 "2016-03-19T22:21:01Z")

</div>

I suppose you are talking about the proxy\_cache\_path directive. Its docs  
[http://nginx.org/en/docs/http/ngx\_http\_proxy\_module.html#proxy\_cache\_path](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path)  
state you are defining the size of a _shared memory zone_, most probably  
allocated by the master process at configuration loading time and then  
accessible/accessed by workers when needed.

## You will be able to make a conclusion by yourself. :o)

_B. R._

---

<div class="post-metadata">

**Author:** ![CJ\_Ess](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@CJ\_Ess](https://www.ruby-forum.com/u/CJ_Ess)\
**Post date:** [March 19, 2016, 10:29pm UTC](https://www.ruby-forum.com/t/nginx-proxy-path-key-zone/244307/3 "2016-03-19T22:29:12Z")

</div>

Great, thank you!
