Welcome! Log In Create A New Profile

Advanced

Re: Why named shared memory zones

September 28, 2009 03:36PM
On Mon, Sep 28, 2009 at 07:51:38PM +0300, Marcus Clyne wrote:

> Igor Sysoev wrote:
> > In my opinion
> >
> > proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=ONE:10m
> > inactive=1h max_size=1g;
> >
> > is clearer and more expansible: you just need to add new keywords.
> >
> I see your point, I just personally prefer the shorter syntax, and if
> you are familiar with the syntax, I think it's quicker to read
>
> proxy_cache_path /data/nginx/cache 1:2 ONE 10m 1h 1g;
>
> How about offering both? You could have a syntax that included the
> key/value pairs and one that had the shorter syntax with a specific
> ordering. That would mean that admins could choose the version they prefer.
>
> Just an idea.

I do not think that short syntax is good, suppose:
proxy_cache_path /data/nginx/cache 1:2 ONE 10m 20m 50m;


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Why named shared memory zones

Marcus Clyne September 28, 2009 08:32AM

Re: Why named shared memory zones

Igor Sysoev September 28, 2009 08:52AM

Re: Why named shared memory zones

Marcus Clyne September 28, 2009 11:34AM

Re: Why named shared memory zones

Igor Sysoev September 28, 2009 11:44AM

Re: Why named shared memory zones

Marcus Clyne September 28, 2009 12:08PM

Re: Why named shared memory zones

Igor Sysoev September 28, 2009 12:20PM

Re: Why named shared memory zones

Marcus Clyne September 28, 2009 01:00PM

Re: Why named shared memory zones

Igor Sysoev September 28, 2009 03:36PM

Re: Why named shared memory zones

Marcus Clyne September 28, 2009 04:48PM

Re: Why named shared memory zones

Maxim Dounin September 28, 2009 07:32PM

Re: Why named shared memory zones

Marcus Clyne September 28, 2009 08:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready