Spawning 0.9.6


 Sponsored links


 Sponsored links
License:
MITLicense
Category:
Internet Utilities
Publisher:
Donovan-Preston
Size:
36 KB
Last Updated:
2013-06-22
Operating System:
Mac OS X
Price:
FREE
Download
Publisher's description - Spawning 0.9.6
 
 Sponsored links

Spawning uses eventlet to do non-blocking IO for http requests and responses. This means the server will scale to a large number of keep-alive connections easily.

However, Spawning also delegates requests using other forms of multiprocessing and is configurable to be useful in a wide variety of situations. Spawning supports multiple Python processes as well as a threadpool.

Single or Multiple Process

If your wsgi applications store state in memory, Spawning can be configured to run only one Python process. In this configuration your application state will be available to all requests but your application will not be able to take full advantage of multiple processors. Using multiple processes will take advantage of all processors and thus should be used for applications which do not share state.

Single or Multiple Worker Thread (or Worker Process)

If your wsgi applications perform a certain subset of blocking calls which have been monkeypatched by eventlet to cooperate instead (such as operations in the socket module), you can configure each process to run only a single main thread and cooperate using greenlet microthreads instead.

This can be useful if your application is very small and needs to scale to a large number of simultaneous requests, such as a COMET server or an application which uses AJAX polling.

However, most existing wsgi applications will probably perform blocking operations (for example, calling database adapter libraries which perform blocking socket operations).

Therefore, for most wsgi applications a combination of multiple processes and multiple threads will be ideal.

Graceful Code Reloading

By default, Spawning watches all Python files that are imported into sys.modules for changes and performs a graceful reload on change. Old processes are told to stop accepting requests and finish any outstanding requests they are servicing, and shutdown.

Meanwhile, the new processes are started and begin accepting requests and servicing them with the new updated code.

At no point will your website`s users see "connection refused" errors because the server will be continuously listening during reload.

What`s New in This Release: [ read full changelog ]

· Script for spawning renamed from "spawn" to "spawning" to avoid confusion
· Use O_APPEND when opening files when daemonizing
· Debian/Ubuntu init.d scripts using start-stop-daemon
· spawning.util module added to house methods that don`t belong elsewhere
· Update Spawning to use newer Eventlet API calls
· Properly handle errors when calling `setproctitle`
· Allow optional `eventlet.backdoor` bound to localhost
· Operate more cleanly with Eventlet`s websockets support with changes to
· eventlet.tpool integration
· Avoid passing certain objects through `eventlet.tpool.Proxy` when using
· threads for a performance gain
· Prevent leaking pipes when handling children processes


 

Also See ...
WSJ 1.7.0.5

WSJ 1.7.0.5
MailOnline 1.7.0.5

MailOnline 1.7.0.5
LA Times 1.7.0.5

LA Times 1.7.0.5
The Washington Post 1.7.0.5

The Washington Post 1.7.0.5
SignatureProfiler for Mail 1.5.9

SignatureProfiler for Mail 1.5.9



More
NoteBook 4

NoteBook 4
dogecoin-ticker

dogecoin-ticker
Aha Notification

Aha Notification
EMT Basic Test Prep

EMT Basic Test Prep
Train Your Brain Maths Review

Train Your Brain Maths Review



Mac App
EMT Basic Test Prep

EMT Basic Test Prep
Snabbit

Snabbit
Photo Mechanic 4.6.7

Photo Mechanic 4.6.7
Wiccan Folders

Wiccan Folders
Daily Mood

Daily Mood