X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdcached.pod;h=3f72a23cd28a40385c8dc9c7cf942279d94ce1bb;hp=0fa12caca9f945b99f1b584df6cb1f9d979b6a44;hb=7953cece011b214be4a2663beaa46149c8c58eee;hpb=4be0f003298ec0cb9a251abfeb67d8f439b6d1f3 diff --git a/doc/rrdcached.pod b/doc/rrdcached.pod index 0fa12ca..3f72a23 100644 --- a/doc/rrdcached.pod +++ b/doc/rrdcached.pod @@ -9,6 +9,7 @@ rrdcached - Data caching daemon for rrdtool B [B<-P>EI] [B<-l>EI
] +[B<-s>EI] [B<-w>EI] [B<-z>EI] [B<-f>EI] @@ -18,6 +19,7 @@ B [-F] [-g] [B<-b>EIE[B<-B>]] +[B<-a>EI] =head1 DESCRIPTION @@ -43,7 +45,7 @@ section below. Tells the daemon to bind to I
and accept incoming connections on that socket. If I
begins with C, everything following that prefix is interpreted as the path to a UNIX domain socket. Otherwise the address or node -name are resolved using getaddrinfo. +name are resolved using C. For network sockets, a port may be specified by using the form CI
B<]:>I>. If the address is an IPv4 address or a fully @@ -65,6 +67,41 @@ domain socket B start with a slash in the second case! If the B<-l> option is not specified the default address, C, will be used. +=item B<-s> I|I + +Set the group permissions of a UNIX domain socket. The option accepts either +a numeric group id or group name. That group will then have both read and write +permissions (the socket will have file permissions 0750) for the socket and, +therefore, is able to send commands to the daemon. This +may be useful in cases where you cannot easily run all RRD processes with the same +user privileges (e.g. graph generating CGI scripts that typically run in the +permission context of the web server). + +This option affects the I UNIX socket addresses (the following +B<-l> options), i.e., you may specify different settings for different +sockets. + +The default is not to change ownership or permissions of the socket and, thus, +use the system default. + +=item B<-m> I + +Set the file permissions of a UNIX domain socket. The option accepts an octal +number representing the bit pattern for the mode (see L for +details). + +Please note that not all systems honor this setting. On Linux, read/write +permissions are required to connect to a UNIX socket. However, many +BSD-derived systems ignore permissions for UNIX sockets. See L for +details. + +This option affects the I UNIX socket addresses (the following +B<-l> options), i.e., you may specify different settings for different +sockets. + +The default is not to change ownership or permissions of the socket and, thus, +use the system default. + =item B<-P> I[,I[,...]] Specifies the commands accepted via a network socket. This allows @@ -76,7 +113,7 @@ For example, to allow the C and C commands one could specify: rrdcached -P FLUSH,PENDING $MORE_ARGUMENTS -The B<-P> option effects the I socket addresses (the following B<-l> +The B<-P> option affects the I socket addresses (the following B<-l> options). In the following example, only the IPv4 network socket (address C<10.0.0.1>) will be restricted to the C and C commands: @@ -197,6 +234,14 @@ Only permit writes into the base directory specified in B<-b> (and any sub-directories). This does B detect symbolic links. Paths containing C<../> will also be blocked. +=item B<-a> I + +Allocate value pointers in chunks of I. This may improve CPU +utilization on machines with slow C implementations, in +exchange for slightly higher memory utilization. The default isE1. +Do not set this more than the B<-w> value divided by your average RRD step +size. + =back =head1 AFFECTED RRDTOOL COMMANDS @@ -477,6 +522,13 @@ returns immediately, even though the writes may take a long time. Shows any "pending" updates for a file, in order. The updates shown have not yet been written to the underlying RRD file. +=item B I I [I [I]] + +Calls C with the specified arguments and returns the result in text +form. If necessary, the file is flushed to disk first. The client side function +C (declared in C) parses the output and behaves just +like C for easy integration of remote queries. + =item B I Removes I from the cache. Any pending updates B.