summaryrefslogtreecommitdiff
path: root/chef/distro/common/man/man8/chef-expander.8
blob: 6ea064eba5c09b2c88c7cbc653e123a64b598078 (plain)
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
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "CHEF\-EXPANDER" "8" "April 2013" "Chef 10.24.2" "Chef Manual"
.
.SH "NAME"
\fBchef\-expander\fR \- fetches messages from RabbitMQ, processes, and loads into chef\-solr
.
.SH "SYNOPSIS"
\fBchef\-expander\fR \fI(options)\fR
.
.TP
\fB\-c\fR, \fB\-\-config CONFIG_FILE\fR
a configuration file to use
.
.TP
\fB\-i\fR, \fB\-\-index INDEX\fR
the slot this node will occupy in the ring
.
.TP
\fB\-n\fR, \fB\-\-node\-count NUMBER\fR
the number of nodes in the ring
.
.TP
\fB\-l\fR, \fB\-\-log\-level LOG_LEVEL\fR
set the log level
.
.TP
\fB\-L\fR, \fB\-\-logfile LOG_LOCATION\fR
Logfile to use
.
.TP
\fB\-d\fR, \fB\-\-daemonize\fR
fork into the background
.
.TP
\fB\-P\fR, \fB\-\-pid PIDFILE\fR
PID file
.
.TP
\fB\-h\fR, \fB\-\-help\fR
show help message
.
.TP
\fB\-v\fR, \fB\-\-version\fR
show the version and exit
.
.SH "DESCRIPTION"
Chef Expander fetches messages from RabbitMQ, processes them into the correct format to be loaded into Solr and loads them into Solr\.
.
.P
\fBRunning Chef Expander\fR
.
.P
Chef Expander is designed for clustered operation, though small installations will only need one worker process\. To run Chef Expander with one worker process, run chef\-expander \-n 1\. You will then have a master and worker process, which looks like this in ps:
.
.IP "" 4
.
.nf

your\-shell> ps aux|grep expander
you   52110   0\.1  0\.7  2515476  62748 s003  S+    3:49PM   0:00\.80 chef\-expander worker #1 (vnodes 0\-1023)
you   52108   0\.1  0\.5  2492880  41696 s003  S+    3:49PM   0:00\.91 ruby bin/chef\-expander \-n 1
.
.fi
.
.IP "" 0
.
.P
Workers are single threaded and therefore cannot use more than 100% of a single CPU\. If you find that your queues are getting backlogged, increase the number of workers
.
.P
\fBDesign\fR
.
.P
Chef Expander uses 1024 queues (called vnodes in some places) to allow you to scale the number of Chef Expander workers to meet the needs of your infrastructure\. When objects are saved in the API server, they are added to queues based on their database IDs\. These queues can be assigned to different Chef Expander workers to distribute the load of processing the index updates\.
.
.P
\fBChef Expander Operation and Troubleshooting\fR
.
.P
Chef Expander includes chef\-expanderctl, a management program that allows you to get status information or change the logging verbosity (without restarting)\.
.
.P
See \fBchef\-expanderctl\fR(8) for details\.
.
.SH "SEE ALSO"
\fBchef\-expanderctl\fR(8) \fBchef\-solr\fR(8)
.
.P
Full documentation for Chef and chef\-server is located on the Chef wiki, http://wiki\.opscode\.com/display/chef/Home\.
.
.SH "AUTHOR"
Chef was written by Adam Jacob \fIadam@ospcode\.com\fR of Opscode (http://www\.opscode\.com), with contributions from the community\. This manual page was created by Nuo Yan \fInuo@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
.
.P
On Debian systems, the complete text of the Apache 2\.0 License can be found in /usr/share/common\-licenses/Apache\-2\.0\.