At work we have been assigned an additional server because the load for our current server is to much.
在工作中,我们被分配了一个额外的服务器,因为当前服务器的负载很大。
What I want to do now is have all my PHP Scripts on one Server ( Server 1) ran from another (server 2) to allow less stress on (server 1). Also I want to be able to have sub domain for server 2 on the same domain for server 1.
现在我要做的是,让我在一台服务器(服务器1)上的所有PHP脚本从另一台服务器(服务器2)运行,以减少对服务器1的压力。
If anyone could point me in the right direction as to what I should be doing I would greatly appreciate this.
如果有人能指出我应该做什么,我将非常感激。
Thank you for any help.
谢谢你的帮助。
James
詹姆斯
1 个解决方案
#1
3
If you're running more than just your website on server 1 I would recommend that you split up the responsibilities of the servers so that the two of them get a somewhat equal load, otherwise it seems that a loadbalancer would be the way to go.
如果您在服务器1上运行的不仅仅是您的网站,那么我建议您将服务器的责任分割开来,这样两个服务器的负载就会在一定程度上相等,否则负载均衡器似乎是解决问题的方法。
I can't really see the purpose of including files from server 1 to server 2 since that will incur yet more load on server 1 while transferring the files from 1 to 2.
我真的看不出将文件从服务器1包含到服务器2的目的,因为这将在服务器1上产生更多的负载,同时将文件从1传输到2。
But I agree with the comment saying that you should go to serverfault, they are/should be more knowledgeable about these kind of questions.
但是我同意这句话,说你应该去找服务器故障,他们应该更了解这些问题。
#1
3
If you're running more than just your website on server 1 I would recommend that you split up the responsibilities of the servers so that the two of them get a somewhat equal load, otherwise it seems that a loadbalancer would be the way to go.
如果您在服务器1上运行的不仅仅是您的网站,那么我建议您将服务器的责任分割开来,这样两个服务器的负载就会在一定程度上相等,否则负载均衡器似乎是解决问题的方法。
I can't really see the purpose of including files from server 1 to server 2 since that will incur yet more load on server 1 while transferring the files from 1 to 2.
我真的看不出将文件从服务器1包含到服务器2的目的,因为这将在服务器1上产生更多的负载,同时将文件从1传输到2。
But I agree with the comment saying that you should go to serverfault, they are/should be more knowledgeable about these kind of questions.
但是我同意这句话,说你应该去找服务器故障,他们应该更了解这些问题。