I have a small compact PHP script that monitors a beanstalk message queue on a CentOS 5 server. When it gets a message, it starts to undertake a particular action and once complete, goes back to the queue and listens for more work.
Everything works great and no problems so far. A friend mentioned to me a few days ago during a random conversation that this would be an ideal script that could make use of multiple cores on the server. That rang a bell with me - good idea! If I need to have two processes running I thought I would need two servers, but possibly not.
So the question is - if I ran two, three, four ... x copies of the script on ONE single server, would it slow the execution of the other scripts down, or would they be unaffected? Given that the script is simply listening then actioning and going back to listen again, are there likely to be any conflicts? I appreciate the latter may be more of a programming question than a server one!