Load balanced websites in IIS 7

Considering the implementation of load balancing for Windows-hosted websites in IIS, but want to know about the problems associated with this. The website is ASP.NET - with a combination of user authentication and ASP.NET authentication. For example:

  • Files: storing the network resource is an obvious choice, but I expect it to put a big demand on the file server, which will slow down the website and possibly lead to the problem "BIOS network performance limitation is reached" or other traffic slows down data
  • Session state: is it best to store in an SQL database to prevent problems when responses come from another server? How to do it? Do you intend to configure web.config?
  • Server downtime: when the server crashes (crash, hardware failure, etc.) or updates, will the websites still function?
  • DNS: how is load balancing, I assume that sites will need two IP addresses? Using Microsoft DNS

As for files, can they be easily synchronized between servers? There can be up to 8 MB of files (sometimes more). DFS is an option that may be considered in the future, but are there any other technologies (besides robocopy) that can be used?

+3
source share
1 answer
  • . , , . , . , -, SPOF . robocopy , DFS - AD, . Robocopy .

  • - , ASPState SQL. , web.config , , .

<sessionState allowCustomSqlDatabase="true" cookieName="yourcookiname" mode="SQLServer" cookieless="false" sqlConnectionString="connnstringname" sqlCommandTimeout="10" timeout="30"/>

<connectionStrings> <add name="connstringname" connectionString="Data Source=sqlservername;Initial Catalog=DTLAspState;Persist Security Info=True;User ID=userid;Password=password" providerName="System.Data.SqlClient"/> </connectionStrings>

web.config. , C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe -S sqlservername -E -ssadd -sstype p

  • - - - , . , - - , "ping" , , -.
  • DNS - . , HTTP SRV.
+2

Source: https://habr.com/ru/post/1706911/


All Articles