Skip to content

Commit 5d07b2a

Browse files
committed
Updating server & OS sections.
1 parent 2bd7218 commit 5d07b2a

File tree

10 files changed

+127
-38
lines changed

10 files changed

+127
-38
lines changed

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2013-01-04T14:47:02Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2013-01-04T16:37:14Z</updated></feed>

index.html

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,19 @@ <h2>Platform-as-a-service</h2>
162162
</div>
163163
<div class="section" id="server-monitoring">
164164
<h2>Server Monitoring</h2>
165-
<p>There are several important resources to monitor on the server level of a web
166-
stack. Technically some of these cross into the operating system level (next
167-
section) but they are listed here:</p>
168-
<ol class="arabic simple">
169-
<li>Server uptime</li>
170-
<li>CPU utilization</li>
171-
<li>Memory utilization</li>
172-
<li>Persistence storage consumed versus free</li>
173-
<li>Network bandwidth and latency</li>
174-
</ol>
165+
<p>Server uptime, that the server is powered and reachable over the network,
166+
must be monitored on this level. That means an outside host must perform
167+
the monitoring to ensure availablity. Other attributes of the server such
168+
as CPU and memory utilization are grouped under the &quot;Operating System&quot;
169+
section.</p>
175170
</div>
176171
<div class="section" id="server-resources">
177172
<h2>Server Resources</h2>
173+
<p><a class="reference external" href="http://www.heroku.com/">Heroku</a>,
174+
<a class="reference external" href="https://developers.google.com/appengine/">Google App Engine</a>,
175+
<a class="reference external" href="https://gondor.io/">Gondor</a>, and
176+
<a class="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>
178178
<p><a class="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>
179179
<p><a class="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 &amp; Deploy Workflows, And Other Stuff Nobody Teaches You</a> (Patrick McKenzie)</p>
180180
<p><a class="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>
213213
Yellowdog Updater, Modified (YUM). RPM has a specific .rpm file format
214214
to handle the packaging and installation of libraries and applications. YUM
215215
provides a command-line interface for interacting with the RPM system.</p>
216+
</div>
217+
<div class="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+
<ol class="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>
216227
</div>
217228

218229
</section>
@@ -271,9 +282,11 @@ <h1>WSGI Server</h1>
271282
v1.0.1 WSGI standard.</p>
272283
<hr class="docutils" />
273284
<img alt="WSGI Server &lt;-&gt; Web server &lt;-&gt; 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>
277290
<hr class="docutils" />
278291
<div class="section" id="wsgi-resources">
279292
<h2>WSGI Resources</h2>
@@ -310,6 +323,21 @@ <h1>Web Framework</h1>
310323
<a class="reference external" href="http://www.mongodb.org/">MongoDB</a> and <a class="reference external" href="http://docs.basho.com/">Riak</a>.
311324
Other web frameworks such as Flask and Pyramid are generally easier to
312325
use with non-relational databases by incorporating external Python libraries.</p>
326+
<div class="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>
334+
<ol class="arabic simple">
335+
<li>Information</li>
336+
<li>Debug</li>
337+
<li>Warning</li>
338+
<li>Error</li>
339+
</ol>
340+
</div>
313341
<div class="section" id="web-framework-resources">
314342
<h2>Web Framework Resources</h2>
315343
<p><a class="reference external" href="http://www.djangoproject.com/">Django</a>,

pages/operating-system.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ <h2>Red Hat and CentOS</h2>
7272
Yellowdog Updater, Modified (YUM). RPM has a specific .rpm file format
7373
to handle the packaging and installation of libraries and applications. YUM
7474
provides a command-line interface for interacting with the RPM system.</p>
75+
</div>
76+
<div class="section" id="monitoring">
77+
<h2>Monitoring</h2>
78+
<p>There are several important resources to monitor on the operating system
79+
and network level of a web stack.</p>
80+
<ol class="arabic simple">
81+
<li>CPU utilization</li>
82+
<li>Memory utilization</li>
83+
<li>Persistence storage consumed versus free</li>
84+
<li>Network bandwidth and latency</li>
85+
</ol>
7586
</div>
7687

7788
<hr/>

pages/servers.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,19 @@ <h2>Platform-as-a-service</h2>
111111
</div>
112112
<div class="section" id="server-monitoring">
113113
<h2>Server Monitoring</h2>
114-
<p>There are several important resources to monitor on the server level of a web
115-
stack. Technically some of these cross into the operating system level (next
116-
section) but they are listed here:</p>
117-
<ol class="arabic simple">
118-
<li>Server uptime</li>
119-
<li>CPU utilization</li>
120-
<li>Memory utilization</li>
121-
<li>Persistence storage consumed versus free</li>
122-
<li>Network bandwidth and latency</li>
123-
</ol>
114+
<p>Server uptime, that the server is powered and reachable over the network,
115+
must be monitored on this level. That means an outside host must perform
116+
the monitoring to ensure availablity. Other attributes of the server such
117+
as CPU and memory utilization are grouped under the &quot;Operating System&quot;
118+
section.</p>
124119
</div>
125120
<div class="section" id="server-resources">
126121
<h2>Server Resources</h2>
122+
<p><a class="reference external" href="http://www.heroku.com/">Heroku</a>,
123+
<a class="reference external" href="https://developers.google.com/appengine/">Google App Engine</a>,
124+
<a class="reference external" href="https://gondor.io/">Gondor</a>, and
125+
<a class="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>
127127
<p><a class="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>
128128
<p><a class="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 &amp; Deploy Workflows, And Other Stuff Nobody Teaches You</a> (Patrick McKenzie)</p>
129129
<p><a class="reference external" href="http://blog.redfern.me/choosing-a-low-cost-vps/">Choosing a low cost VPS</a>

pages/web-framework.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,21 @@ <h1>Web Framework</h1>
6565
<a class="reference external" href="http://www.mongodb.org/">MongoDB</a> and <a class="reference external" href="http://docs.basho.com/">Riak</a>.
6666
Other web frameworks such as Flask and Pyramid are generally easier to
6767
use with non-relational databases by incorporating external Python libraries.</p>
68+
<div class="section" id="monitoring">
69+
<h2>Monitoring</h2>
70+
<p>Logging is a common mechanism for monitoring web applications written with a
71+
web framework. Runtime exceptions that prevent code from running are
72+
important to log to investigate and fix the source of the problems.
73+
Informational and debugging logging also helps to understand how the
74+
application is performing even if code is working as intended.</p>
75+
<p>Logging is often grouped into several categories:</p>
76+
<ol class="arabic simple">
77+
<li>Information</li>
78+
<li>Debug</li>
79+
<li>Warning</li>
80+
<li>Error</li>
81+
</ol>
82+
</div>
6883
<div class="section" id="web-framework-resources">
6984
<h2>Web Framework Resources</h2>
7085
<p><a class="reference external" href="http://www.djangoproject.com/">Django</a>,

pages/wsgi-server.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ <h1>WSGI Server</h1>
5454
v1.0.1 WSGI standard.</p>
5555
<hr class="docutils" />
5656
<img alt="WSGI Server &lt;-&gt; Web server &lt;-&gt; Browser" src="../img/wsgi-server-browser.png" />
57-
<p>Requests from the browser that are not for static assets are passed to the
58-
WSGI server. Once the request is processed by the WSGI server, the request
59-
is passed back through the web server and onto the browser.</p>
57+
<p>Requests from the browser that are not for static assets (this is specified
58+
in the web server's configuration which requests are for static assets and
59+
which are not) are passed to the WSGI server. Once the request is
60+
processed by the WSGI server, the request is passed back through the
61+
web server and onto the browser.</p>
6062
<hr class="docutils" />
6163
<div class="section" id="wsgi-resources">
6264
<h2>WSGI Resources</h2>

source/content/pages/operating-system.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ from Debian-based Linux distributions: RPM Package Manager (RPM) and the
3636
Yellowdog Updater, Modified (YUM). RPM has a specific .rpm file format
3737
to handle the packaging and installation of libraries and applications. YUM
3838
provides a command-line interface for interacting with the RPM system.
39+
40+
Monitoring
41+
----------
42+
There are several important resources to monitor on the operating system
43+
and network level of a web stack.
44+
45+
1. CPU utilization
46+
2. Memory utilization
47+
3. Persistence storage consumed versus free
48+
4. Network bandwidth and latency
49+

source/content/pages/servers.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,21 @@ server sections because they are baked into PaaS offerings.
8282

8383
Server Monitoring
8484
-----------------
85-
There are several important resources to monitor on the server level of a web
86-
stack. Technically some of these cross into the operating system level (next
87-
section) but they are listed here:
85+
Server uptime, that the server is powered and reachable over the network,
86+
must be monitored on this level. That means an outside host must perform
87+
the monitoring to ensure availablity. Other attributes of the server such
88+
as CPU and memory utilization are grouped under the "Operating System"
89+
section.
8890

89-
1. Server uptime
90-
2. CPU utilization
91-
3. Memory utilization
92-
4. Persistence storage consumed versus free
93-
5. Network bandwidth and latency
9491

9592
Server Resources
9693
----------------
94+
`Heroku <http://www.heroku.com/>`_,
95+
`Google App Engine <https://developers.google.com/appengine/>`_,
96+
`Gondor <https://gondor.io/>`_, and
97+
`OpenShift <https://openshift.redhat.com/community/get-started/python>`_ are
98+
platforms-as-a-service that support Python web applications.
99+
97100
`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)
98101

99102
`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)

source/content/pages/web-framework.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ does not work (without modification) on non-relational databases such
2727
Other web frameworks such as Flask and Pyramid are generally easier to
2828
use with non-relational databases by incorporating external Python libraries.
2929

30+
31+
Monitoring
32+
----------
33+
Logging is a common mechanism for monitoring web applications written with a
34+
web framework. Runtime exceptions that prevent code from running are
35+
important to log to investigate and fix the source of the problems.
36+
Informational and debugging logging also helps to understand how the
37+
application is performing even if code is working as intended.
38+
39+
Logging is often grouped into several categories:
40+
41+
1. Information
42+
2. Debug
43+
3. Warning
44+
4. Error
45+
46+
3047
Web Framework Resources
3148
-----------------------
3249
`Django <http://www.djangoproject.com/>`_,

source/content/pages/wsgi-server.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ v1.0.1 WSGI standard.
1919
.. image:: ../img/wsgi-server-browser.png
2020
:alt: WSGI Server <-> Web server <-> Browser
2121

22-
Requests from the browser that are not for static assets are passed to the
23-
WSGI server. Once the request is processed by the WSGI server, the request
24-
is passed back through the web server and onto the browser.
22+
Requests from the browser that are not for static assets (this is specified
23+
in the web server's configuration which requests are for static assets and
24+
which are not) are passed to the WSGI server. Once the request is
25+
processed by the WSGI server, the request is passed back through the
26+
web server and onto the browser.
2527

2628
----
2729

0 commit comments

Comments
 (0)