First fewArticleThe http://www.cnblogs.com/2018/category/263041.html is followed by the overview and analysis of appfabric, there are some notes in actual use, to sum up.
Database Access
Because the account of the IIS application pool [Default builtin \ iis_iusrs] is set differently, the database needs to grant this user permissions. Otherwise, problems may occur when accessing the database and Windows logs may occur.
Widnows Event Viewer
If a problem occurs, check whether the related information is recorded. This is an important clue. Many Errors and exceptions are recorded here.
WCF Information Tracking
If there is a problem with the WCF information, you can trace the detailed content of the WCF information for auxiliary judgment. The specific steps are as follows:
Use the tools \ WCF Service configuration editormenu in vs to start svcconfigeditor.exe and configure diagnostics
View the tracking file and view the communication details of the WCF to confirm the problem.
"Application" in IISProgramYou can also set this trail on the monitoring option page for configuring WCF and WF.
Advanced topic log settings and cleanup in use
Tracking level: the number of logs generated by different tracing types varies greatly. Therefore, you need to set the tracking level based on the actual situation and Set Tracking and diagnosis only when tracking errors are required, this method produces a large amount of logs, which facilitates finding clues when handling errors.
Because log files are constantly recorded, it is necessary to ensure that the data files do not expand infinitely. There are two methods:
Automatic Log cleanup
By default, the system installs and configures cleanup. The default process is as follows:
Jobs in the SQL Server proxy regularly run the asautopurge stored procedure according to the asconfigurationpropertiestable settings to clean up the database, to prevent the infinite growth of the database
Asconfigurationpropertiestable
[Apenabled] [bit] not null, 1 indicates that automatic cleaning is enabled
[Apthreshold] [int] Null. the maximum value of the data file is 1500 MB by default.
[Apmaxeventage] [float] Null: the maximum number of days for clearing expired events. The default value is null.
[Aptrimpercentage] [int] Null, percentage of each cleanup. The default value is 10%.
Manual cleanup
Use the powershell cmdlet provided by appfabric
Start powershell and enter the following command:
Import-module applicationserver
Get-command-module applicationserver. You can see that appfabric provides powershell commands.
Clear-asmonitoringsqldatabase enter the database as prompted to complete cleaning
There are many cmdlets here. You can use get-help **-detail to view detailed information about the cmdlets you want to use.
High Availability deployment