Python's performance doesn't scale with the number of cpus you have so a common workaround is to use a process per cpu. It is also a useful way to illustrate scaling out your deployment horizontally using nginx's load balancing features. On Dec 23, 2011 11:50 PM, "Eddy" <eddy.respon...@gmail.com> wrote:
> 1 last quick question. I noticed in Cookbook: Deploying Your Pyramid > Application (http://docs.pylonsproject.org/projects/pyramid_cookbook/ > en/latest/deployment.html) under the Nginx instructions it's running 2 > Paster instances on ports 5000 and 5001. I'm actually setting up Nginx > with Gevent but haven't seen anyone describe more than 1 instance > before. I assume this just for illustrative purposes? Under what > circumstance would you need to consider using more than 1 instance of > the same app? > > > On Dec 24, 11:26 am, Michael Merickel <mmeri...@gmail.com> wrote: > > In 1.2.5 the paster templates should be there. Ensure that you are > actually > > using pyramid < 1.3 and that you are executing paster from the right > > virtualenv. > > On Dec 23, 2011 9:43 PM, "Eddy" <eddy.respon...@gmail.com> wrote: > > > > > > > > > > > > > > > > > Okay, I was using 1.2.5 - I didn't realize alpha's were considered > > > stable releases. > > > > > Thanks > > > > > On Dec 24, 1:42 am, Mike Orr <sluggos...@gmail.com> wrote: > > > > On Fri, Dec 23, 2011 at 3:27 AM, Eddy <eddy.respon...@gmail.com> > wrote: > > > > > I'm having trouble creating a new Pyramid project using Paster. > > > > > "paster create --list-templates" shows only the following templates > > > > > > > Available templates: > > > > > basic_package: A basic setuptools-enabled package > > > > > paste_deploy: A web application deployed through paste.deploy > > > > > > > Is there a way to manually add the missing Pyramid project > templates? > > > > > > Also see "What's New in Pyramid 1.3" > > > > > > > http://docs.pylonsproject.org/projects/pyramid/en/latest/whatsnew-1.3... > > > > > > """ > > > > Previously (in Pyramid 1.0, 1.1 and 1.2), you created a Pyramid > > > > application using paster create, like so: > > > > > > $ myvenv/bin/paster create -t pyramid_starter foo > > > > > > You’re now instead required to create an application using pcreate > like > > > so: > > > > > > $ myvenv/bin/pcreate -s starter foo > > > > > > Note that the names of available scaffolds have changed and the flags > > > > supported by pcreate are different than those that were supported by > > > > paster create. > > > > """ > > > > > > Technically, the scaffolds are registered under the > "pyramid.scaffold" > > > > entry point instead of "paste.paster_create_template", so paster does > > > > not know about them. > > > > > > -- > > > > Mike Orr <sluggos...@gmail.com> > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "pylons-discuss" group. > > > To post to this group, send email to pylons-discuss@googlegroups.com. > > > To unsubscribe from this group, send email to > > > pylons-discuss+unsubscr...@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/pylons-discuss?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.