Installation, configuration, and troubleshooting of Windows Server appfabric

Source: Internet
Author: User
Tags mssqlserver
ArticleDirectory
    • 1. Environment requirements
    • 2. Installation Steps
    • 3. Start the service
    • 1. Service deployment
    • 2. Monitoring settings
    • 3. View service call and monitoring data
    • 1. Problem Description
    • 2. troubleshooting methods

This article only represents the understanding and understanding of the author at a certain stage. Thank you!

I. Prerequisites

A project I am in charge of has been developed. The deployment method is shown in:

The project we developed is a portal deployed in Hong Kong that requires an Internet. It directly interacts with the SAP system on the customer's intranet through a special communication channel, including reading and writing information. The SAP Team of the customer needs to add a communication monitoring service for information interaction between the portal and SAP based on relevant request and security monitoring factors. After discussion, we need to add an appfabric service between the portal and SAP. Hosting is a WCF Service that recommends bilateral communication and receives appfabric monitoring access request information. Therefore, the information deployment structure is as follows:

This document describes how to install and configure appfabric, and how to monitor test services and implementation information. For details, see the following description.

Ii. content of this article

Based on the project requirements, this article describes how to install and deploy appfabric for WF and WCF monitoring and how to troubleshoot problems during the deployment process. The content mainly includes the following:

1. Install appfabric

2. Deployment of appfabric

3. troubleshooting during deployment

4. Summary

5.CodeDownload (download)

Iii. Installation of appfabric 1. Environment requirements

Hardware environment:

Skipped. Currently, almost all hardware environments are supported. It is best to support 64-bit operating systems.

System Environment:

Windows 7

Windows Vista SP2

Windows Server 2008 SP2

Windows Server 2008 r2

For specific environment requirements, refer to Microsoft's official description (appfabric) (This article downloads: windowsserverappfabricsetup_x64_6.1.exe ):

Http://www.microsoft.com/zh-cn/download/details.aspx? Id = 15848

Or the following installation site:

Http://msdn.microsoft.com/zh-cn/library/hh334371%28v=azure.10%29#%E4%B8%AD%E5%9B%BD%EF%BC%88%E7% AE %80%E4%BD%93%E4%B8%AD%E6%96%87%EF%BC%89

2. Installation Steps

After downloading windowsserverappfabricsetup_x64_6.1.exe, you need to install and deploy the appfabric server as follows (because the local machine has been installed, the image in this article comes from the Internet and is hereby declared ):

1) enable installationProgramTo go to the installation wizard homepage.

2) Click "Next" to go to the service function component option (only "managed service" is selected in my project ")

3) after the installation is complete, open the IIS manager and click any site in IIS. The "appfabric" function area is displayed in "function view" on the right.

So far, we have completed the installation of appfabric software. Open "All Programs" under the "Start" menu and click "Configure appfabric" under "Windows Server appfabric". The following page is displayed:

Click "Next"

My "monitoring provider" selects sqlclient, and then click "configuration" next to it to configure the database. The two "monitoring providers" in the page must be configured, otherwise, the next step is not allowed.

Click "OK" and click "Next" to complete the configuration.

After the above deployment is complete, it has already created relevant databases, tables, and stored procedures for us, in addition, related scheduled tasks are created in the agent for monitoring and collecting system information.

3. Start the service

After the software is installed, you need to start related services. Some services may need to be modified. The problem encountered in this article is the permissions of the services (which will be detailed later ).

Click the "Start" menu to go to "Management Tools" and open "service". You need to start the following services in the service:

1) appfabric Workflow Management Service

2) appfabric event collection service

3) SQL Server Agent (MSSQLServer). ms SQL Server 2008 R2 is installed in the system.

Among them, 1) and 2) are automatically generated after appfabric is installed.

Iv. Deployment of appfabric

After the appfabric server is successfully installed, you must perform the following operations to set and view service hosting and monitoring data.

1. Service deployment

This article will host the WCF and WF services. The program example is from "2012" of "blog" (sample download ). In this example, hosting WCF and WF services are deployed in the appfabric server, and then an MVC web project is created to call services.

First download the instance and decompress the file to D: \ contoso

1. Database [use SQL Server managerment Studio]

Create a new database contoso

Use D: \ contoso. SQL to create the architecture and initial data

Then assign permissions to builtin \ iis_iusrs

2. Application compilation [vs2010]

Compile D: \ contoso \ claims. sln

3. Application Deployment [inetmgr]

Click "run" under "start" and enter "inetmgr" to start IIS management.

Deploy a web app, that is, the VIP portal in my future system:

Application pool uses Asp.net 4.0 integration mode

Appfabric Web port 89 [this variable], path D: \ contoso \ claims. web \ claims. Web

Deploy the WCF and WF services to be managed:

Appfabric services port 90 (you must modify the relevant configuration file to work only), path D: \ contoso. Services

Add an application to appfabric services. The specific path is as follows:

Appraisalservice. WCF-> D: \ contoso. Services \ appraisalservice. WCF

Billingservice. WCF-> D: \ contoso. Services \ billingservice. WCF

Carexternalservice. WCF-> D: \ contoso. Services \ carexternalservice. WCF

Processclaimservice. WF-> D: \ contoso. workflows \ processclaimservice

Among them, the "enabled protocol" in the advanced settings of appfabric services requires net. Pipe and appfabric management needs], and the application pool uses the Asp.net 4.0 integration mode.

Effect after Configuration:

According to my current deployment, although we need to add net. pipe, but when the appfabric WCF and WF services are actually started, the net. pipe. Therefore, we need to add the following configuration.

Click appfabric services and click "bind" under the editing website on the right. In the displayed window, if no "net. pipe, you need to click "add". In the pop-up window, select the type as "net. pipe, bind the information, enter *, and click OK.

2. Monitoring settings

Click appfabric services, manage the WCF and WF services on the right, and click "configuration" to open the Configuration window, as shown in:

On this page, you can set parameters for related monitoring.

3. View service call and monitoring data

So far, all the deployments have been completed. The next thing to do is to enable Web application to form a call to WF and WCF, and check whether appfabric monitors related services.

1) Open the flow tool, http: // localhost: 89/claims, and log in with the user dannyg and password mydemo.

2) Select an entry, such as the first entry, and enter the following address: http: // localhost: 89/claims/details/1.

3) select Edit to go to the following url: http: // localhost: 89/claims/edit/1.

After completing the preceding operations, you need to view the monitoring data. Open the IIS manager, click "appfabric services", click "function view" on the right, and double-click "appfabric dashboard". If the following similar information is displayed, the deployment and configuration are successful.

V. troubleshooting during deployment 1. Problem Description

During the above process, the appfabric installation is normal, the deployment is normal, and the Web application call is normal. However, no information is found in the "appfabric dashboard. A prompt indicating that sqlagent.exe is not compatible is often displayed.

2. troubleshooting methods

1) The program is not compatible with this question. For this reason, find the sqlagent.exe file, right-click it, and set the compatibility. After setting the above, the problem is not resolved;

22.16.htm does not have the permission to execute sqlagent.exe. who will execute the sqlagent.exe file? Only the following services that need to be started may be called, that is

A) appfabric Workflow Management Service

B) appfabric event collection service

C) SQL Server Agent (MSSQLServer). The system is installed with ms SQL Server 2008 R2.

Open "Management Tools" under "start", click "services", find the three services, right-click them, and select "properties". In the Open Properties window, click the "Logon" tab, enter the Administrator account, and click "OK.

Run the web application again, view the appfabric dashboard, and finally the data is displayed. The problem is solved.

Vi. Summary

1. Install and deploy the program in sequence, and you need to know what configuration information will be generated in each step;

2. Pay attention to the configuration of related application and service permissions.

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.