架构网络服务器(Nginx的/ lighttpd的/阿帕奇)与couchbase [英] Architecting webserver (NginX/Lighttpd/Apache) with couchbase

查看:166
本文介绍了架构网络服务器(Nginx的/ lighttpd的/阿帕奇)与couchbase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我希望你们中的一些可以与我分享这个建筑的问题。在你过去的经验,该方案适用于高负载应用/服务器质数据库更好。我使用Couchbase作为一个dBASE和Web服务器(nginx的/ lighttpd的/阿帕奇)之一。这将是很难在文字解释,所以我希望我做一些感觉。这情景是preferred?

I have this architectural question that I'm hoping some of you can share with me. In your past experience, which scenario works better for high load application/dbase server. I'm using Couchbase as a dbase and one of the Web server (NginX/Lighttpd/Apache). This is going to be hard to explain in text so I hope I make some sense. Which scenario is preferred?

方案1。

客户端连接到Web服务器主集群而选择合适的网络服务器(机2)和(WebServer机器2)连接到dBASE主服务器群集从而选择可用的dBase(数据库1)

Client connect to webserver master cluster which select the proper available webserver (machine 2) and the (webserver machine 2) connect to Dbase Master Cluster which in turn select available Dbase (Dbase 1)

情景2

客户端连接到选择合适的网络服务器的网络服务器主集群(机1)和机器1连接到Couchbase该机在Couchbase群集的已分配以它这是DBASE 1 。

Client connect to webserver master cluster which select the proper available webserver (machine 1) and "machine 1" connect to Couchbase machine in the Couchbase Cluster that's already assign to it which is "Dbase 1".

这是否有什么意义?在preferred方法的任何想法?

Does this make any sense? Any thought on the preferred method?

推荐答案

我在过去做到了这一点;且相当简单

I have done this in past; and fairly simple

客户端连接到负载均衡器(其中包含多台机器),负载均衡器将让您的来电负载平衡,并将使您的系统横向扩展。

Client connects to the load balancer (which contains multiple machines), the load balancer will keep your incoming load balanced, and will make your system horizontally scalable.

,然后或者您的负载平衡服务器的一个通话在沙发上与dBASE;我相信你可以创建沙发集群为好。

and then either one of your load balanced servers talk to the dbase at couch; I am sure you can create a cluster of couch as well.

现在的Q值。 Nginx的使用或Apache的; Q值。你必须回答自己是在内容得到通过网络服务器供应 - 高静态或它的动态 - 这意味着从数据库来了,如果它的静态非常容易地选择了nginx的;如果没有,那么你应该去的Apache。

Now the q. of using Nginx or Apache; the q. that you must answer to yourself is "is the content getting served via webserver - highly static or its dynamic - that means coming from db" if its static very easily chose the nginx; if not then you should go for apache.

如果您使用的是PHP中,你可能会想使用APC或嘻哈编译你的PHP的 https://developers.facebook.com/blog/post/2010/02/02/hiphop-for-php--move-fast/

if you are using php, you may would like to use apc or hip-hop to compile your php https://developers.facebook.com/blog/post/2010/02/02/hiphop-for-php--move-fast/

有很多事情你应该照顾,而设计一个可扩展的系统中。

there are a lot of things you should take care of while designing a scalable system.

这篇关于架构网络服务器(Nginx的/ lighttpd的/阿帕奇)与couchbase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆