You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<aclass="reference external" href="https://gondor.io/">Gondor</a>, and
176
+
<aclass="reference external" href="https://openshift.redhat.com/community/get-started/python">OpenShift</a> are
177
+
platforms-as-a-service that support Python web applications.</p>
178
178
<p><aclass="reference external" href="http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/">How to set up a safe and secure Web server</a> (Ars Technica)</p>
179
179
<p><aclass="reference external" href="http://www.kalzumeus.com/2010/12/12/staging-servers-source-control-deploy-workflows-and-other-stuff-nobody-teaches-you/">Staging Servers, Source Control & Deploy Workflows, And Other Stuff Nobody Teaches You</a> (Patrick McKenzie)</p>
180
180
<p><aclass="reference external" href="http://blog.redfern.me/choosing-a-low-cost-vps/">Choosing a low cost VPS</a>
@@ -213,6 +213,17 @@ <h2>Red Hat and CentOS</h2>
213
213
Yellowdog Updater, Modified (YUM). RPM has a specific .rpm file format
214
214
to handle the packaging and installation of libraries and applications. YUM
215
215
provides a command-line interface for interacting with the RPM system.</p>
216
+
</div>
217
+
<divclass="section" id="monitoring">
218
+
<h2>Monitoring</h2>
219
+
<p>There are several important resources to monitor on the operating system
220
+
and network level of a web stack.</p>
221
+
<olclass="arabic simple">
222
+
<li>CPU utilization</li>
223
+
<li>Memory utilization</li>
224
+
<li>Persistence storage consumed versus free</li>
225
+
<li>Network bandwidth and latency</li>
226
+
</ol>
216
227
</div>
217
228
218
229
</section>
@@ -271,9 +282,11 @@ <h1>WSGI Server</h1>
271
282
v1.0.1 WSGI standard.</p>
272
283
<hrclass="docutils" />
273
284
<imgalt="WSGI Server <-> Web server <-> Browser" src="../img/wsgi-server-browser.png" />
274
-
<p>Requests from the browser that are not for static assets are passed to the
275
-
WSGI server. Once the request is processed by the WSGI server, the request
276
-
is passed back through the web server and onto the browser.</p>
285
+
<p>Requests from the browser that are not for static assets (this is specified
286
+
in the web server's configuration which requests are for static assets and
287
+
which are not) are passed to the WSGI server. Once the request is
288
+
processed by the WSGI server, the request is passed back through the
289
+
web server and onto the browser.</p>
277
290
<hrclass="docutils" />
278
291
<divclass="section" id="wsgi-resources">
279
292
<h2>WSGI Resources</h2>
@@ -310,6 +323,21 @@ <h1>Web Framework</h1>
310
323
<aclass="reference external" href="http://www.mongodb.org/">MongoDB</a> and <aclass="reference external" href="http://docs.basho.com/">Riak</a>.
311
324
Other web frameworks such as Flask and Pyramid are generally easier to
312
325
use with non-relational databases by incorporating external Python libraries.</p>
326
+
<divclass="section" id="monitoring">
327
+
<h2>Monitoring</h2>
328
+
<p>Logging is a common mechanism for monitoring web applications written with a
329
+
web framework. Runtime exceptions that prevent code from running are
330
+
important to log to investigate and fix the source of the problems.
331
+
Informational and debugging logging also helps to understand how the
332
+
application is performing even if code is working as intended.</p>
333
+
<p>Logging is often grouped into several categories:</p>
<aclass="reference external" href="https://gondor.io/">Gondor</a>, and
125
+
<aclass="reference external" href="https://openshift.redhat.com/community/get-started/python">OpenShift</a> are
126
+
platforms-as-a-service that support Python web applications.</p>
127
127
<p><aclass="reference external" href="http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/">How to set up a safe and secure Web server</a> (Ars Technica)</p>
128
128
<p><aclass="reference external" href="http://www.kalzumeus.com/2010/12/12/staging-servers-source-control-deploy-workflows-and-other-stuff-nobody-teaches-you/">Staging Servers, Source Control & Deploy Workflows, And Other Stuff Nobody Teaches You</a> (Patrick McKenzie)</p>
129
129
<p><aclass="reference external" href="http://blog.redfern.me/choosing-a-low-cost-vps/">Choosing a low cost VPS</a>
`OpenShift <https://openshift.redhat.com/community/get-started/python>`_ are
98
+
platforms-as-a-service that support Python web applications.
99
+
97
100
`How to set up a safe and secure Web server <http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/>`_ (Ars Technica)
98
101
99
102
`Staging Servers, Source Control & Deploy Workflows, And Other Stuff Nobody Teaches You <http://www.kalzumeus.com/2010/12/12/staging-servers-source-control-deploy-workflows-and-other-stuff-nobody-teaches-you/>`_ (Patrick McKenzie)
0 commit comments