Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3302192
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:49:36+00:00 2026-05-17T20:49:36+00:00

I have a Django app running on Windows (via Apache + mod_wsgi) that’s CPU-bound.

  • 0

I have a Django app running on Windows (via Apache + mod_wsgi) that’s CPU-bound. But Apache on Windows only does MPM (multi-thread) workers, not prefork (multi-process workers), and a single Python interpreter won’t take advantage of multiple CPUs.

I would switch to FastCGI, but that requires Flup, which is not supported on Windows.

The only solution I’ve come up with so far is to start multiple Django instances, then use Apache load-balancing to distribute the requests. That works fine so long as I start the Django instances in command windows, but I can’t seem to figure out how to set up multiple Django instances as windows services (so that I get them to start automatically when the system starts).

Has anyone come up with a strategy to get a Django-based site to use multiple CPUs on a Windows server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:49:36+00:00Added an answer on May 17, 2026 at 8:49 pm

    I think your question is really “How do you run multiple instances of Apache as windows services?” From the docs:

    httpd.exe -k install -n "ApacheBE1" -f "c:\files\my_BE1.conf"
    httpd.exe -k install -n "ApacheBE2" -f "c:\files\my_BE2.conf"
    

    Just incase you have that part figured out, did you try setting up more than one heavy weight back-end instances of Apache and load balance among them?

    your.host.com:80
     - load balancer / light weight front-end
     - balancing between localhost:9001-900x
    localhost:9001
     - mod_wsgi / heavy weight back-end 1
    localhost:9002
     - mod_wsgi / heavy weight back-end 2    
    localhost:9003
     - mod_wsgi / heavy weight back-end 3    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Django app running on apache server (mod_python) on a windows machine
I have a simple django app that is using only the admin. This is
I have written a Django app that makes use of Python threading to create
I have configured my Django app to run under Apache+FastCGI on Linux (Ubuntu, if
I'm using Google App Engine and Django templates. I have a table that I
Django-admin is pluralizing a model that I have running as a proxy class. The
I have a Django app running django-piston for the first time. I've got a
I'm looking for a simple Django app that restricts registration to users who have
I have a pretty standard django app, and am wondering how to set the
For my Django app I have Events, Ratings, and Users. Ratings are related to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.