WebFaction
Community site: login faq
WSGIDaemonProcess demodjango3 processes=2 threads=12

I'm running a django application. Can someone explain in detail the above line?

  • What happens when a new request comes?

  • What is the threads parameter?

Thanks.

asked 07 Apr '13, 12:32

Prajwal
10611730
accept rate: 33%


That means that 2 processes with 12 threads each will be created to handle your incoming requests.

You can find more information on wsgi and the daemon process here.

permanent link

answered 07 Apr '13, 17:02

bmeyer71 ♦♦
1.5k3613
accept rate: 33%

  1. Are these processes created on the fly or running all the time?

  2. What about the threads? Are they also created on the fly or running all the time?

  3. What is the function of the process and the thread?

Thanks. I think lot of users have not understood this important line and part, I hope this helps a lot of webfaction users too.

So hoping to get a detailed excellent answer from a system-admin. :)

(08 Apr '13, 01:46) Prajwal

I believe that the processes run all the time, but the threads are instantiated as new requests come in. So, each process can run 12 simultaneous threads, and the 13th one runs under a new process.

The processes exist to manage the threads which handle requests. For performance reasons you want several processes and each with several threads.

Hope that helps!

(08 Apr '13, 04:37) ryans ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×28

question asked: 07 Apr '13, 12:32

question was seen: 1,766 times

last updated: 08 Apr '13, 04:37

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM