Solution process for load balancing issues

xiaoxiao2021-03-05  20

Article Source: Wei.com Motivation (http://www.weiw.com) What can be visible, you can come to this forum http://www.weiw.com/bbs/ Repost Please indicate the source, thank you.

Environmental Description: Development platform is DOTNET B / S .NET Framework 1.1 formal web server and test machine, all of Win2003 has a main website, and load balancing on six web servers. Run is relatively stable. A sub-station is now developed, and the deployment is load balanced on the other three web servers. This load balancing sets the settings of the home website.

Solution Step: 1) The sub-station is passed on the test machine test, and runs properly. Prepare to deploy to the official environment (three web servers)

2) Copy the sub-station program to the three web servers, configure the sub-station-related configuration, and the open site and load balancing start test.

3) When the test is tested, the page is normal, but an exception occurs when the server event is triggered. Error message "ViewState Is Invalid for this Page" does not have enough information to resolve this issue, why is the same program to run without problems in the test machine, put it in a formal environment, there is an exception? In Microsoft's website, you should find this unusual explanation (http://support.microsoft.com/default.aspx?scid=kb;zh-cn; 831150), it is recommended to install Microsoft .NET Framework 1.1 Service Pack 1. So, if you suspect that you don't install this patch, you will check the registration entry: HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Net Framework setup / ndp / v1.1.4322sp value is 0, indicating that there is no Framework 1.1 Service Pack, then go to the Microsoft website to download .NET Framework 1.1 Service Pack 1 and .NET Framework 1.1 Service Pack 1 ASP.NET Security Update - Windows Server 2003

4) After installing these two patches, run the sub-station program and still appear during triggering the server event. Abnormal: Abnormal Details: System.Web.httpException: Unable to verify the data. Stack Tracking: [HTTPEXCEPTION (0x80004005): Unable to verify data. ] [HttpException (0x80004005):. Authentication of viewstate failed 1) If this is a cluster, edit configuration so all servers use the same validationKey and validation algorithm AutoGenerate can not be used in a cluster 2) Viewstate can only be.. Posted Back to the Same Page. 3) The ViewState for this page might beorrupted.] Go back to 831150 This article looks: "After applying this hotfix, the view status error message header will become" Unable to Validate Data ". Although the new error information format does not describe the problem, it provides more information than the previous error information format. "I know that the viewState value has been truncated? ! The problem is transformed: What causes the "ViewState value has been truncated"? Because the program runs no problem in the test environment, it may be a system-level problem. Compare a formal and test environment: The official environment is three Server to do load balancing, and the test environment is only a server. 5) Modify the load balancing settings and only open a web server. After the test, it was found that there was no exception. The three machines were tested, and there were no abnormalities. It is speculated that it may be a problem with load balancing settings. So I found a system administrator, he said that the load balancing setting of the sub-station is the same as the main station. But still asked him to confirm the difference between the two load balancing settings. After again, it is found that the load balancing PERSISTENCE TYPE (the process continuation) is None, that is, the server does not maintain the connection status. In this way, each time the server event is triggered, it will cause the "ViewState Value to be truncated". So the value of the Persistence Type changes to Simple, Timeout is set to 600 seconds.

Summary: The programmer is not only to write the program, and the system should be understood properly. This problem does not necessarily meet, as a solution to the problem, for everyone to share.

Attachment: Load balancing is generally three places to ensure continuation of the process. First start the load balancing, then set "Enable Connection Rebind" to True. The last Persistence Type is usually set to Simple to add timeout. Note: I am very little on load balancing studies, I don't know if other similar software is also set, the principle should be almost.

转载请注明原文地址:https://www.9cbs.com/read-37375.html

New Post(0)