asp.net implementation of load balancing _ practical skills

Source: Internet
Author: User

My goal is for me to build a load-balancing site on my own. Do not accept this is the network department, or operation, or the system department of Things, everything is my own to complete, including the money, including future development and so on, but also don't tell me no meaning, just do it! Give me the solution, give me the method.

Have the resources: not enough to buy, more can be idle first.

Now I have bought 5 Ali cloud server, the IP address is respectively

IP address           name abbreviation   operating system    IIS server   CPU  memory DDR3   mechanical hard drive

111.13.101.204    ay1      window7    IIS7     4 nuclear  8GB       1TB

111.13.101.205    ay2      window7    IIS7     4 nuclear  8GB       1TB    

111.13.101.206    ay3      window7    IIS7     4 nuclear  8GB       1TB

111.13.101.207    ay4      Window7    IIS7     2 nuclear  4GB       1TB

111.13.101.208    ay5      window7    iis7     2 cores  4GB       1TB

I buy a domain name: www.bd.com (has been filed)

Project has been done, developed with ASP.net MVC4,. netFramework4.5 Project Name MYBD

Project homepage is index.cshtml

Project Structure WEBSITE\XXX

Using Database sqlserver2014

I now want to publish multiple copies of the project, on different servers, but only one domain www.bd.com, I am not a subdomain domain name of the application scene.

Down I want to ask, how should I operate?

--------------------------------------------------------------------------------------------------

The article topic can also be called How to publish a Web site to two servers, or how to publish a project to two servers. Easy indexing for search engines (row text).

Want to build a load-balanced architecture, whether it is necessary, whether to waste resources please do not consider, but you can consider how to expand later.

Hope that more people can see, everyone in the comments to give their own proposals or suggestions.

I search the solution in Baidu, someone's solution is, in the HttpHandler to capture the user request, and then from a set of good jump address randomly select one, and then jump

Defined server address: static string [] servers= {"http://192.168.1.100/index.aspx", "http://192.168.1.101.aspx"};

Response.Redirect (servers[datetime.now.millisecond% 2]); Here, this random algorithm can be customized by itself, and it can be done by using a database, and deciding where to jump.

This scenario is that the browser sends two requests, and the performance is limited by the bottleneck of this interceptor server. These are from eldest brother Luminji learned.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.