2008/9/30 Pigletto <[EMAIL PROTECTED]>:
> After switching to WSGIApplicationGroup %{GLOBAL} my application
> started, but I have few more applications on this apache instance so I
> can't use this kind of setup.

Can you explain to me how WebFaction process/memory limits work?

If you don't have issues with number of processes and only overall
memory usage, then create a separate daemon process group for each
application with it being forced to run in main interpreter of its own
process. Thus:

<VirtualHost *:2867>

 ServerName my-domain.xyz

 WSGIDaemonProcess rek-prod-app-1 user=xyz group=xyz processes=2 threads=1 \
 maximum-requests=500 inactivity-timeout=7200 stack-size=524288 \
 display-name=%{GROUP}

 WSGIScriptAlias / /home2/(...)/rek_project-1.wsgi

 <Directory /home2/(...)/rek_project-1/>
   WSGIProcessGroup rek-prod-app-1
    WSGIApplicationGroup %{GLOBAL}
   Order deny,allow
   Allow from all
 </Directory>

 WSGIDaemonProcess rek-prod-app-1 user=xyz group=xyz processes=2 threads=1 \
 maximum-requests=500 inactivity-timeout=7200 stack-size=524288 \
 display-name=%{GROUP}

  WSGIScriptAlias /suburl /home2/(...)/rek_project-2.wsgi

 <Directory /home2/(...)/rek_project-2/>
   WSGIProcessGroup rek-prod-app-2
    WSGIApplicationGroup %{GLOBAL}
   Order deny,allow
   Allow from all
 </Directory>

</VirtualHost>

This would end up with similar memory usage, the difference being that
the application instances are in separate processes rather than
separate sub interpreters of same process.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to