I am working with Pyramid, and when it comes to deploying, I came across this tutorial.
What is the point of running multiple instances of the same app on the same server?
Is there an optimal amount of instances I should run?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
It’s quite common these days for a system to have more than one core, IE, processor. If you want to take full advantage of it, you should run as many instances as there are processors, or one less for the OS. This will allow you to take the maximum advantage of the system.
It is also possible, if your code has considerable IO calls, that the optimal value is even higher than the number of cores, as while one thread is getting data from, say, the HD, another can be running on the processor.