Skip to content

Commit

Permalink
Update man page and example file
Browse files Browse the repository at this point in the history
Change-Id: Ibde60e33edde8e20cf9aa08a054af9ecc416e489
Reviewed-on: http://review.couchbase.org/48844
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
  • Loading branch information
trondn committed Apr 8, 2015
1 parent eb908ac commit 22ea998
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 116 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -94,6 +94,7 @@ IF (WIN32)
INCLUDE_DIRECTORIES(AFTER ${Platform_SOURCE_DIR}/include/win32)
ENDIF (WIN32)

ADD_SUBDIRECTORY(etc)
ADD_SUBDIRECTORY(support-files)
ADD_SUBDIRECTORY(programs)

Expand Down
1 change: 1 addition & 0 deletions etc/CMakeLists.txt
@@ -0,0 +1 @@
file(COPY memcached.ex.json DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
73 changes: 73 additions & 0 deletions etc/memcached.ex.json
@@ -0,0 +1,73 @@
{
"root" : "/opt/couchbase",
"admin" : "_admin",
"breakpad" :
{
"enabled" : true,
"minidump_dir" : "/opt/couchbase/var/crash",
"content" : "default"
},
"require_init" : true,
"rbac_file" : "/opt/couchbase/etc/security/rbac.json",
"rbac_privilege_debug" : false,
"audit_file" : "/opt/couchbase/etc/security/audit.json",
"ssl_cipher_list" : "HIGH",
"threads" : 4,
"interfaces" :
[
{
"host" : "*",
"port" : 11209,
"IPv4" : true,
"IPv6" : true,
"maxconn" : 10000,
"backlog" : 1024,
"tcp_nodelay" : true,
"ssl" :
{
"key" : "/etc/memcached/pkey",
"cert" : "/etc/memcached/cert"
},
"protocol" : "memcached"
},
{
"host" : "*",
"port" : 11210,
"IPv4" : true,
"IPv6" : true,
"maxconn" : 10000,
"backlog" : 1024,
"tcp_nodelay" : true,
"ssl" :
{
"key" : "/etc/memcached/pkey",
"cert" : "/etc/memcached/cert"
},
"protocol" : "greenstack"
}
],
"extensions" :
[
{
"module" : "stdin_term_handler.so",
"config" : ""
},
{
"module" : "file_logger.so",
"config" : "cyclesize=10485760;sleeptime=19;filename=data/n_0/logs/memcached.log"
}
],
"engine" : {
"module" : "bucket_engine.so",
"config" : "admin=_admin;default_bucket_name=default;auto_create=false"
},
"require_sasl" : false,
"default_reqs_per_event" : 20,
"reqs_per_event_high_priority" : 40,
"reqs_per_event_med_priority" : 20,
"reqs_per_event_low_priority" : 10,
"verbosity" : 2,
"datatype_support" : true
"max_packet_size" : 25,
"bio_drain_buffer_sz" : 8192
}
97 changes: 63 additions & 34 deletions man/man4/memcached.json.4
Expand Up @@ -2,12 +2,12 @@
.\" Title: memcached.json
.\" Author: Trond Norbye <trond.norbye@couchbase.com>
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\" Date: 03/26/2015
.\" Date: 03/27/2015
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "MEMCACHED\&.JSON" "4" "03/26/2015" "\ \&" "\ \&"
.TH "MEMCACHED\&.JSON" "4" "03/27/2015" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
Expand Down Expand Up @@ -88,6 +88,13 @@ The \fBrequire_init\fR attribute is a boolean value that is used to disable disa
.SS "rbac_file"
.sp
Specify the filename containing all of the RBAC definitions
.SS "rbac_privilege_debug"
.sp
The \fBrbac_privilege_debug\fR is a boolean value that may be used by developers to detect the privileges required for their module to work\&. It should \fInever\fR be enabled in a production environment!
.sp
When running in the privilege debug mode, all commands will be permitted for all users\&. If the current user profile lacks the permission for the operation to be performed, the following entry is printed to standard error:
.sp
Missing privilege for \fBuser profile\fR\&. Need \fBcommand\fR\&.
.SS "audit_file"
.sp
Specify the filename containing all of the Audit configurations
Expand Down Expand Up @@ -313,6 +320,24 @@ The \fBrequire_sasl\fR attribute specify if performing SASL authentication is re
The \fBdefault_reqs_per_event\fR attribute is an integral value specifying the number of request that may be served per client before serving the next client (to avoid starvation)\&. The default value is 20\&.
.sp
\fBdefault_reqs_per_event\fR may be updated by instructing memcached to reread the configuration file\&.
.SS "reqs_per_event_high_priority"
.sp
The \fBreqs_per_event_high_priority\fR attribute is an integral value specifying the number of request that may be served per high priority client before serving the next client (to avoid starvation)\&. The default value is 20\&.
.sp
\fBreqs_per_event_high_priority\fR may be updated by instructing memcached to reread the configuration file\&.
.SS "reqs_per_event_med_priority"
.sp
The \fBreqs_per_event_med_priority\fR attribute is an integral value specifying the number of request that may be served per medium priority client before serving the next client (to avoid starvation)\&. The default value is 20\&.
.sp
\fBreqs_per_event_med_priority\fR may be updated by instructing memcached to reread the configuration file\&.
.SS "reqs_per_event_low_priority"
.sp
The \fBreqs_per_event_low_priority\fR attribute is an integral value specifying the number of request that may be served per low priority client before serving the next client (to avoid starvation)\&. The default value is 20\&.
.sp
\fBreqs_per_event_low_priority\fR may be updated by instructing memcached to reread the configuration file\&.
.SS "bio_drain_buffer_sz"
.sp
The \fBbio_drain_buffer_sz\fR attribute is an integral value specifying the number of bytes in the BIO drain buffer\&. This is an interal setting just used by the engineers for testing\&.
.SS "verbosity"
.sp
The \fBverbosity\fR attribute is an integral value specifying the amount of output produced by the memcached server\&. By default this value is set to 0 resulting in only warnings to be emitted\&. Setting this value too high will produce a lot of output which is most likely meaningless for most people\&.
Expand All @@ -333,37 +358,51 @@ A Sample memcached\&.json:
.\}
.nf
{
"root" : "/opt/couchbase",
"admin" : "_admin",
"breakpad" :
{
"enabled" : true,
"minidump_dir" : "/opt/couchbase/var/crash",
"content" : "default"
},
"require_init" : true,
"rbac_file" : "/opt/couchbase/etc/security/rbac\&.json",
"rbac_privilege_debug" : false,
"audit_file" : "/opt/couchbase/etc/security/audit\&.json",
"ssl_cipher_list" : "HIGH",
"threads" : 4,
"interfaces" :
[
{
"maxconn" : 1000,
"port" : 11310,
"backlog" : 1024,
"host" : "*",
"port" : 11209,
"IPv4" : true,
"IPv6" : true,
"maxconn" : 10000,
"backlog" : 1024,
"tcp_nodelay" : true,
"ssl" :
{
"key" : "/etc/memcached/pkey",
"cert" : "/etc/memcached/cert"
}
},
"protocol" : "memcached"
},
{
"maxconn" : 10000,
"port" : 11210,
"backlog" : 1024,
"host" : "*",
"port" : 11210,
"IPv4" : true,
"IPv6" : true,
"tcp_nodelay" : true
},
{
"maxconn" : 1000,
"port" : 11213,
"host" : "127\&.0\&.0\&.1",
"IPv6" : false
"maxconn" : 10000,
"backlog" : 1024,
"tcp_nodelay" : true,
"ssl" :
{
"key" : "/etc/memcached/pkey",
"cert" : "/etc/memcached/cert"
},
"protocol" : "greenstack"
}
],
"extensions" :
Expand All @@ -382,32 +421,22 @@ A Sample memcached\&.json:
"config" : "admin=_admin;default_bucket_name=default;auto_create=false"
},
"require_sasl" : false,
"prefix_delimiter" : ":",
"allow_detailed" : true,
"detail_enabled" : false,
"default_reqs_per_event" : 20,
"reqs_per_event_high_priority" : 50,
"reqs_per_event_med_priority" : 5,
"reqs_per_event_low_priority" : 1,
"verbosity" : 0,
"lock_memory" : false,
"large_memory_pages" : false,
"daemonize" : false,
"pid_file" : "/var/run/memcached\&.pid",
"datatype_support" : true,
"breakpad" : {
"enabled" : true,
"minidump_dir" : "/opt/couchbase/var/lib/couchbase/crash",
"content" : "default"
}
"reqs_per_event_high_priority" : 40,
"reqs_per_event_med_priority" : 20,
"reqs_per_event_low_priority" : 10,
"verbosity" : 2,
"datatype_support" : true
"max_packet_size" : 25,
"bio_drain_buffer_sz" : 8192
}
.fi
.if n \{\
.RE
.\}
.SH "COPYRIGHT"
.sp
Copyright 2014 Couchbase, Inc\&.
Copyright 2015 Couchbase, Inc\&.
.SH "AUTHOR"
.PP
\fBTrond Norbye\fR <\&trond\&.norbye@couchbase\&.com\&>
Expand Down
Binary file modified man/man4/memcached.json.4.pdf
Binary file not shown.

0 comments on commit 22ea998

Please sign in to comment.