NCache Microsoft Azure로 스크립트 설치

웹 역할은 클라우드 애플리케이션의 빠른 프로비저닝 및 디프로비저닝을 위해 설계되었습니다. 당신은 가질 수 있습니다 NCache 웹 역할 배포와 함께 자동으로 설치됩니다. 이렇게하려면 다운로드해야합니다 NCache NuGet 패키지 여기에는 웹 역할 배포 중에 필요한 모든 설치 스크립트가 포함되어 있습니다. 제발 여기를 클릭하세요 다운로드 방법에 대한 자세한 내용은 NCache NuGet 패키지.


NCache Azure 설치 스크립트

의 설치를 위해 NCache 웹 역할을 배포하는 동안 Azure에서 실행되는 첫 번째 스크립트는 시작 작업.cmd 다른 스크립트를 호출하여 다음 작업을 수행합니다.

  • 설치 NCache
  • 클라이언트 노드 추가
  • 구성된 경우 클라이언트 캐시 생성
  • 클라이언트 캐시가 InProc인지 OutProc인지 확인합니다. OutProc이면 시작하십시오.

먼저 정의해야 하는 이러한 스크립트에 사용되는 몇 가지 시작 환경 변수가 있습니다. 이를 위해 다음 코드를 삽입해야 합니다. 서비스정의.csdef 웹 역할의 파일입니다.

<Startup>
 <Task commandLine="Azure_Install_Scripts\startuptask.cmd" 
       executionContext="elevated" 
       taskType="simple">
  <Environment>

   <!--Check whether Azure project is running in emulated environment or not. 
   If this role is running in emulated environment, then startup scripts will
   be avoided-->
   <Variable name="EMULATED">
    <RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" />
   </Variable>

   <!--Specify path for NCache Azure Client Setup for installation on 
   client role--> 
   <Variable name="NCache.SetupPath" 
             value="" />

   <!--Specify cache name to add current role as client node of specified 
   cluster cache-->
   <Variable name="NCache.CacheName" 
             value="test" />

   <!--Specify cache server IP for communication with cache. 
   For multiple servers, specify comma separated IPs as specified in example.
   For public port, specify ports with server as "10.0.0.4:8270,10.0.0.5:8271"-->
   <Variable name="NCache.CacheServers" 
             value="23.97.66.31:8250,23.97.66.31:8251" />

   <!--Specify "true" if you want to create a client cache on this role 
   otherwise "false"-->
   <Variable name="NCache.CreateClientCache" 
             value="true" />

   <!--Specify client cache name if you want to configure client cache on 
   this role-->
   <Variable name="NCache.ClientCacheName" 
             value="myclientcache" />

   <!--Specify client cache size. (Compulsory option for configuring 
   client cache)-->
   <Variable name="NCache.ClientCacheSize" 
             value="250" />

   <!--Specify "true" if your client role is outside the virtual network of 
   your cache. Your public endpoints will be used for communication with the 
   server from current client role. If your client role is within the same virtual
   network as your cache, then specify "false"-->
   <Variable name="NCache.UseEndPoint" 
             value="true" />

   <!--Specify startup task log path-->
   <Variable name="NCache.LogPath" 
             value="" />

   <!-- Specify if client cache is inproc or not-->
   <Variable name="NCache.IsInproc" 
             value="false" />
  </Environment>
 </Task>
</Startup>

ReadMe 파일 참조

A README.TXT 파일은 web.config 변경 사항을 설명하는 NuGet 패키지와 함께 제공됩니다. NCache Azure 세션 저장소 공급자에서 NCache Azure client.ncconf에서 사용자 환경에서 이미 구성된 캐시에 연결하기 위해 변경합니다. 이 정보는 다음에 대한 참조로 사용할 수 있습니다. NCache Azure 구성을 변경해야 합니다.

다음에 무엇을할지?

© 저작권 Alachisoft 2002 - . 판권 소유. NCache 는 Diyatech Corp.의 등록상표입니다.