/
moxi.1
150 lines (150 loc) · 4.89 KB
/
moxi.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
.TH MOXI 1 "June 18, 2009"
.SH NAME
moxi \- a multithreaded memcached protocol proxy
.SH SYNOPSIS
.B moxi
.RI [ options ]
.br
.SH DESCRIPTION
This manual page documents briefly the
.B moxi
multithreaded memcached protocol proxy
.PP
.B moxi
is a memcached protocol proxy. It's based on libevent to scale to any
size needed, and is specifically optimized to avoid swapping and
always use non-blocking I/O.
.br
.SH OPTIONS
These programs follow the usual GNU command line syntax. A summary of options
is included below.
.TP
.B \-s <file>
Unix socket path to listen on (disables network support).
.TP
.B \-a <perms>
Permissions (in octal format) for Unix socket created with \-s option.
.TP
.B \-l <ip_addr>
Listen on <ip_addr>; default to INADDR_ANY. This is an important option to
consider as there is no other way to secure the installation. Binding to an
internal or firewalled network interface is suggested.
.TP
.B \-d
Run moxi as a daemon.
.TP
.B \-u <username>
Assume the identity of <username> (only when run as root).
.TP
.B \-m <num>
Use <num> MB memory max to use for object storage; the default is 64 megabytes.
.TP
.B \-c <num>
Use <num> max simultaneous connections; the default is 1024.
.TP
.B \-R <num>
This option seeks to prevent client starvation by setting a limit to the
number of sequential requests the server will process from an individual
client connection. Once a connection has exceeded this value, the server will
attempt to process I/O on other connections before handling any further
request from this connection. The default value for this option is 20.
.TP
.B \-k
Lock down all paged memory. This is a somewhat dangerous option with large
caches, so consult the README and moxi homepage for configuration
suggestions.
.TP
.B \-p <num>
Listen on TCP port <num>, the default is port 11211.
.TP
.B \-U <num>
Listen on UDP port <num>, the default is port 11211, 0 is off.
.TP
.B \-M
Disable automatic removal of items from the cache when out of memory.
Additions will not be possible until adequate space is freed up.
.TP
.B \-r
Raise the core file size limit to the maximum allowable.
.TP
.B \-f <factor>
Use <factor> as the multiplier for computing the sizes of memory chunks that
items are stored in. A lower value may result in less wasted memory depending
on the total amount of memory available and the distribution of item sizes.
The default is 1.25.
.TP
.B \-n <size>
Allocate a minimum of <size> bytes for the item key, value, and flags. The
default is 48. If you have a lot of small keys and values, you can get a
significant memory efficiency gain with a lower value. If you use a high
chunk growth factor (\-f option), on the other hand, you may want to increase
the size to allow a bigger percentage of your items to fit in the most densely
packed (smallest) chunks.
.TP
.B \-C
Disable the use of CAS (and reduce the per-item size by 8 bytes).
.TP
.B \-h
Show the version of moxi and a summary of options.
.TP
.B \-v
Be verbose during the event loop; print out errors and warnings.
.TP
.B \-vv
Be even more verbose; same as \-v but also print client commands and
responses.
.TP
.B \-i
Print moxi and libevent licenses.
.TP
.B \-P <filename>
Print pidfile to <filename>, only used under \-d option.
.TP
.B \-t <threads>
Number of threads to use to process incoming requests. This option is only
meaningful if moxi was compiled with thread support enabled. It is
typically not useful to set this higher than the number of CPU cores on the
moxi server. The default is 4.
.TP
.B \-D <char>
Use <char> as the delimiter between key prefixes and IDs. This is used for
per-prefix stats reporting. The default is ":" (colon). If this option is
specified, stats collection is turned on automatically; if not, then it may
be turned on by sending the "stats detail on" command to the server.
.TP
.B \-L
Try to use large memory pages (if available). Increasing the memory page size
could reduce the number of TLB misses and improve the performance. In order to
get large pages from the OS, moxi will allocate the total item-cache in
one large chunk. Only available if supported on your OS.
.TP
.B \-B <proto>
Specify the binding protocol to use. By default, the server will
autonegotiate client connections. By using this option, you can
specify the protocol clients must speak. Possible options are "auto"
(the default, autonegotiation behavior), "ascii" and "binary".
.br
.SH LICENSE
The moxi daemon is copyright NorthScale, Danga Interactive and is
distributed under the BSD license. Note that clients are licensed
separately.
.br
.SH SEE ALSO
The README file that comes with moxi
.br
.B http://www.danga.com/moxi
.SH AUTHOR
The moxi daemon was written by Steve Yen
.B <steve.yen@northscale.com>
, Dustin Sallings
.B <dustin@sallings.org>
, Matt Ingenthron
.B <ingenthr@cep.net>
, Anatoly Vorobey
.B <mellon@pobox.com>
and Brad Fitzpatrick
.B <brad@danga.com>
and the rest of the crew of who worked on memcached
including the Danga Interactive folks
.B http://www.danga.com
.br