다음을 통해 공유


워크플로 관리 서비스 설치 및 구성

이 항목에서는 WMS(워크플로 관리 서비스)를 설치 및 구성하는 방법에 대해 설명합니다.

WMS 설치

AppFabric 설치에서는 WMS 기능과 관련된 다음 작업을 수행합니다.

  1. WorkflowManagementService.exe 파일을 C:\Windows\System32\AppFabric 폴더로 복사합니다.

  2. 다음 WMS 섹션을 루트 Web.config 파일에 추가합니다. WMS 인스턴스는 이름 없이 구성됩니다. <persistence><workflowManagement> 섹션은 루트 Web.config에 대해 잠겨 있습니다.

    <configuration>
        <microsoft.applicationServer>
            <persistence>
                <workflowManagement>
                    <workflowManagementServiceInstances>
                        <workflowManagementServiceInstance name="" />
                    </workflowManagementServiceInstances>
                </workflowManagement>
            </persistence>
        </microsoft.applicationServer>
    </configuration>
    

    기본 WMS 인스턴스는 이름 없는 인스턴스입니다.

  3. WorkflowManagementService.exe.config 파일을 C:\Windows\System32\AppFabric으로 복사하고 다음 섹션을 구성 파일에 추가하여 다중 코어 또는 다중 프로세서 컴퓨터에서 효율적인 가비지 수집을 사용합니다.

    <configuration>
        <runtime>
            <gcServer enabled="true" />
        </runtime>
    </configuration>
    
  4. C:\Windows\System32\AppFabric\Schema 폴더에서 Create_Persistence_Schema.sql and Create_Persistence_Logic.sql을 만들고 실행하여 AppFabric에 필요한 SQL 아티팩트를 만듭니다.

  5. 워크플로 관리 서비스를 Windows 서비스로 설치합니다. 서비스 제어판 애플릿에서 이 서비스 표시 이름은 응용 프로그램 서버 워크플로 관리입니다.

특정 인스턴스 저장소를 모니터링하도록 WMS 구성

기본적으로 WMS는 루트, 사이트 및 응용 프로그램 범위와 연결된 Web.config 파일에 정의된 모든 인스턴스 저장소를 모니터링합니다. 특정 인스턴스 저장소를 모니터링하도록 WMS를 구성할 수도 있습니다. 이를 수행하기 위한 단계는 다음과 같습니다.

  1. 인스턴스 저장소 공급업체가 지정한 지침에 따라 인스턴스 저장소를 만들고 구성합니다.

  2. 다음 구성 조각에 표시된 대로 WMS에서 모니터링할 인스턴스 저장소를 루트 Web.config 파일에 추가합니다.

    <configuration>
        <microsoft.applicationServer>
            <persistence>
                <workflowManagement>
                    <workflowManagementServiceInstances>
                        <workflowManagementServiceInstance name="">
                            <instanceStores>
                                <instanceStore name="storeA" location="[root, SiteName or VPath]" />
                                <instanceStore name="storeB" location="[root, SiteName or VPath]" />
                            </instanceStores>
                        </workflowManagementServiceInstance>
                    </workflowManagementServiceInstances>
                </workflowManagement>
            </persistence>
        </microsoft.applicationServer>
    </configuration>
    
  3. 서비스가 아직 시작되지 않은 경우 서비스 스냅인을 사용하여 응용 프로그램 서버 워크플로 관리 서비스를 시작합니다.

여러 WMS 인스턴스 구성

경고

현재 이 시나리오는 지원되지 않습니다.

시스템에서 여러 WMS 인스턴스를 실행하려면 workflowManagementServiceInstance 요소를 구성 파일에 추가하고 다음 구성 조각에 표시된 대로 각 인스턴스의 이름을 지정해야 합니다. 다음 예에서는 WMS-1 및 WMS-2라는 2개의 WMS 인스턴스가 구성됩니다. WMS-1은 인스턴스 저장소 storeA 및 storeB를 모니터링하도록 구성되고 WMS-2는 인스턴스 저장소 storeC를 모니터링하도록 구성됩니다.

<configuration>
    <microsoft.applicationServer>
        <persistence>
            <workflowManagement>
                <workflowManagementServiceInstances>
                    <workflowManagementServiceInstance name="">
                        <instanceStores>
                            <instanceStore name="storeA" location="[root, SiteName or VPath]" />
                            <instanceStore name="storeB" location="[root, SiteName or VPath]" />
                        </instanceStores>
                    </workflowManagementServiceInstance>
                    <workflowManagementServiceInstance name="WMS-1">
                        <instanceStores>
                            <instanceStore name="storeC" location="[root, SiteName or VPath]" />
                        </instanceStores>
                    </workflowManagementServiceInstance>
                    <workflowManagementServiceInstance name="WMS-2">
                        <instanceStores>
                            <instanceStore name="storeD" location="[root, SiteName or VPath]" />
                            <instanceStore name="storeE" location="[root, SiteName or VPath]" />
                            <instanceStore name="storeF" location="[root, SiteName or VPath]" />
                        </instanceStores>
                    </workflowManagementServiceInstance>
                </workflowManagementServiceInstances>
            </workflowManagement>
        </persistence>
    </microsoft.applicationServer>
</configuration>

SCM(서비스 제어 관리자)을 사용하여 WMS의 각 인스턴스를 서비스로 등록할 때 –name 매개 변수를 사용하여 인스턴스 이름을 지정해야 합니다. 예를 들어, 이전 구성 파일을 사용하려면 2개의 WMS 인스턴스를 등록해야 합니다. 첫 번째 인스턴스는 WMS-1이라는 이름으로 등록하고 두 번째 인스턴스는 WMS-2라는 이름으로 등록해야 합니다.

참고

WMS에서 로드된 인스턴스 저장소 개체로 인해 예외가 발생하면 전체 WMS 프로세스가 중단될 수 있습니다. 이 문제는 WMS에서 로드된 모든 다른 인스턴스 저장소에 영향을 미칠 수 있습니다. 이 시나리오에서는 프로세스 격리를 위해 서로 다른 WMS 인스턴스를 서로 다른 인스턴스에 할당할 수 있습니다.

중요

WMS에서 사용되는 지속성 저장소 및 끝점을 보호하려면 지속성 저장소에 대한 보안 구성을 참조하십시오.

원격을 위한 워크플로 관리 서비스 구성

워크플로 관리 서비스가 원격을 사용하려면 ID가 원격 연결로 제대로 흐르도록 허용해야 합니다. Windows7 R2 이외의 시스템에서 실행되는 워크플로 관리 서비스의 경우 구성이 다음과 같이 구성되어야 합니다.

<configuration>
   <runtime>
      <gcServer enabled="true"/>
      <legacyImpersonationPolicy enabled=”false”/>
      <alwaysFlowImpersonationPolicy enabled=”true”/>
   </runtime>
</configuration> 

  2011-12-05