aboutsummaryrefslogtreecommitdiffstats
path: root/settings_file.html
diff options
context:
space:
mode:
Diffstat (limited to 'settings_file.html')
-rw-r--r--settings_file.html261
1 files changed, 261 insertions, 0 deletions
diff --git a/settings_file.html b/settings_file.html
new file mode 100644
index 0000000..ba17599
--- /dev/null
+++ b/settings_file.html
@@ -0,0 +1,261 @@
1
2
3<!DOCTYPE html>
4<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6<head>
7 <meta charset="utf-8">
8
9 <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
11 <title>Settings &mdash; EventMQ 0 documentation</title>
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
28
29
30
31
32
33 <link rel="top" title="EventMQ 0 documentation" href="index.html"/>
34 <link rel="up" title="Using EventMQ" href="using.html"/>
35 <link rel="next" title="API Documentation" href="api.html"/>
36 <link rel="prev" title="Using EventMQ" href="using.html"/>
37
38
39 <script src="_static/js/modernizr.min.js"></script>
40
41</head>
42
43<body class="wy-body-for-nav" role="document">
44
45 <div class="wy-grid-for-nav">
46
47
48 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
49 <div class="wy-side-scroll">
50 <div class="wy-side-nav-search">
51
52
53
54 <a href="index.html" class="icon icon-home"> EventMQ
55
56
57
58 </a>
59
60
61
62
63 <div class="version">
64 0.2.1
65 </div>
66
67
68
69
70<div role="search">
71 <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
72 <input type="text" name="q" placeholder="Search docs" />
73 <input type="hidden" name="check_keywords" value="yes" />
74 <input type="hidden" name="area" value="default" />
75 </form>
76</div>
77
78
79 </div>
80
81 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
82
83
84
85 <ul class="current">
86<li class="toctree-l1 current"><a class="reference internal" href="using.html">Using EventMQ</a><ul class="current">
87<li class="toctree-l2 current"><a class="current reference internal" href="">Settings</a><ul>
88<li class="toctree-l3"><a class="reference internal" href="#router">Router</a></li>
89<li class="toctree-l3"><a class="reference internal" href="#scheduler">Scheduler</a></li>
90<li class="toctree-l3"><a class="reference internal" href="#job-manager">Job Manager</a><ul>
91<li class="toctree-l4"><a class="reference internal" href="#concurrent-jobs">concurrent_jobs</a></li>
92<li class="toctree-l4"><a class="reference internal" href="#queues">queues</a></li>
93</ul>
94</li>
95</ul>
96</li>
97</ul>
98</li>
99<li class="toctree-l1"><a class="reference internal" href="api.html">API Documentation</a></li>
100<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing to EventMQ</a></li>
101</ul>
102
103
104
105 </div>
106 </div>
107 </nav>
108
109 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
110
111
112 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
113 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
114 <a href="index.html">EventMQ</a>
115 </nav>
116
117
118
119 <div class="wy-nav-content">
120 <div class="rst-content">
121
122
123
124
125
126
127<div role="navigation" aria-label="breadcrumbs navigation">
128 <ul class="wy-breadcrumbs">
129 <li><a href="index.html">Docs</a> &raquo;</li>
130
131 <li><a href="using.html">Using EventMQ</a> &raquo;</li>
132
133 <li>Settings</li>
134 <li class="wy-breadcrumbs-aside">
135
136
137 <a href="_sources/settings_file.txt" rel="nofollow"> View page source</a>
138
139
140 </li>
141 </ul>
142 <hr/>
143</div>
144 <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
145 <div itemprop="articleBody">
146
147 <div class="section" id="settings">
148<h1>Settings<a class="headerlink" href="#settings" title="Permalink to this headline">¶</a></h1>
149<p>EventMQ uses a standard INI style config file found at <code class="docutils literal"><span class="pre">/etc/eventmq.conf</span></code>.</p>
150<div class="section" id="router">
151<h2>Router<a class="headerlink" href="#router" title="Permalink to this headline">¶</a></h2>
152</div>
153<div class="section" id="scheduler">
154<h2>Scheduler<a class="headerlink" href="#scheduler" title="Permalink to this headline">¶</a></h2>
155</div>
156<div class="section" id="job-manager">
157<h2>Job Manager<a class="headerlink" href="#job-manager" title="Permalink to this headline">¶</a></h2>
158<div class="section" id="concurrent-jobs">
159<h3>concurrent_jobs<a class="headerlink" href="#concurrent-jobs" title="Permalink to this headline">¶</a></h3>
160<p>Default: 4</p>
161<p>This is the number of concurrent jobs the indiviudal job manager should execute
162at a time. If you are using the multiprocess or threading model this number
163becomes important as you will want to control the load on your server. If the
164load equals the number of cores on the server, processes will begin waiting for
165cpu cycles and things will begin to slow down.</p>
166<p>A safe number to choose if your jobs block a lot would be (2 * cores). If your
167jobs are cpu intensive you will want to set this number to the number of cores
168you have or (cores - 1) to leave cycles for the os and other processes. This is
169something that will have to be tuned based on the jobs that are
170running. Grouping similar jobs in named queues will help you tune this number.</p>
171</div>
172<div class="section" id="queues">
173<h3>queues<a class="headerlink" href="#queues" title="Permalink to this headline">¶</a></h3>
174<p>Default: (10, default)</p>
175<p>Semi-colon seperated list of queues to process jobs for with thier
176weights. Example: <code class="docutils literal"><span class="pre">queues=(10,</span> <span class="pre">data_process);</span> <span class="pre">(15,</span> <span class="pre">email)</span></code>. With these
177weights and the <code class="docutils literal"><span class="pre">CONCURRENT_JOBS</span></code> setting, you should be able to tune managers
178running jobs locally pretty efficiently. If you have a larger box with a weight
179of 50 on q1 and 8 concurrent jobs and a smaller box with a weight 30 and 4
180concurrent jobs, the q1 jobs will be sent to the large box until it is no longer
181accepting jobs. At this point jobs will start to be sent to the next highest
182number until the large box is ready to accept another q1 job.</p>
183<div class="admonition note">
184<p class="first admonition-title">Note</p>
185<p class="last">It is recommended that you have some workers listening for jobs on your
186default queue so that anything that is not explicitly assigned will still be
187run.</p>
188</div>
189</div>
190</div>
191</div>
192
193
194 </div>
195 </div>
196 <footer>
197
198 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
199
200 <a href="api.html" class="btn btn-neutral float-right" title="API Documentation" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
201
202
203 <a href="using.html" class="btn btn-neutral" title="Using EventMQ" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
204
205 </div>
206
207
208 <hr/>
209
210 <div role="contentinfo">
211 <p>
212 &copy; Copyright 2016, eventboard.io.
213
214 </p>
215 </div>
216 Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
217
218</footer>
219
220 </div>
221 </div>
222
223 </section>
224
225 </div>
226
227
228
229
230
231 <script type="text/javascript">
232 var DOCUMENTATION_OPTIONS = {
233 URL_ROOT:'./',
234 VERSION:'0',
235 COLLAPSE_INDEX:false,
236 FILE_SUFFIX:'.html',
237 HAS_SOURCE: true
238 };
239 </script>
240 <script type="text/javascript" src="_static/jquery.js"></script>
241 <script type="text/javascript" src="_static/underscore.js"></script>
242 <script type="text/javascript" src="_static/doctools.js"></script>
243
244
245
246
247
248 <script type="text/javascript" src="_static/js/theme.js"></script>
249
250
251
252
253 <script type="text/javascript">
254 jQuery(function () {
255 SphinxRtdTheme.StickyNav.enable();
256 });
257 </script>
258
259
260</body>
261</html> \ No newline at end of file