The same zone can be used in several places. This directive defines a shared memory zone used for caching. proxy_cache zone | off, where zone - identifier of the cache.The keys_zone parameter configure name and RAM size of the zone (for example jelastic:32m).The levels parameter defines hierarchy levels of a cache.This directive sets path and other parameters of a cache. proxy_cache_path /var/lib/nginx/cache keys_zone=name:size.For enabling cache uncomment lines as it is shown in the picture below. For setting up the cache click Config button for NGINX node in your environment and navigate to conf.d > nf.ĥ. In a minute your environment will be created and appears in the environment list.Ĥ. Create the environment with a few application servers and NGINX as a balancer, specify the cloudlet limits, type the name of the environment and click Create button. To perform that just come through the next steps:ģ. With NGINX-balancer you can use caching for reducing application servers load. This instruction shows how to set up a caсhe on the NGINX-balancer in the platform. For example, instead of building the homepage of your blog at each request, you can store it in a cache. increases the resource building speed by reducing the number of accesses.reduces the access time to the resource by copying it closer to the user.So caching improves performance while accessing to a resource in two ways: When a user returns to a page he’s recently looked at, the browser can get those files from the NGINX cache directory rather than the original server, saving time and traffic. For example, the files a user automatically requests by looking at a web-page can be stored in your NGINX cache directory. Caching in NGINX is the process of storing data in front of web servers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |