다음 목록은 샘플 RTR 파일의 시스템 정의 등록 정보를 보여줍니다.
# A list of bracketed resource property declarations follows the # resource-type declarations. The property-name declaration must be # the first attribute after the open curly bracket of each entry. # The <method>_timeout properties set the value in seconds after which # the RGM concludes invocation of the method has failed. # The MIN value for all method timeouts is set to 60 seconds. This # prevents administrators from setting shorter timeouts, which do not # improve switchover/failover performance, and can lead to undesired # RGM actions (false failovers, node reboot, or moving the resource group # to ERROR_STOP_FAILED state, requiring operator intervention). Setting # too-short method timeouts leads to a *decrease* in overall availability # of the data service. { PROPERTY = Start_timeout; MIN=60; DEFAULT=300; } { PROPERTY = Stop_timeout; MIN=60; DEFAULT=300; } { PROPERTY = Validate_timeout; MIN=60; DEFAULT=300; } { PROPERTY = Update_timeout; MIN=60; DEFAULT=300; } { PROPERTY = Monitor_Start_timeout; MIN=60; DEFAULT=300; } { PROPERTY = Monitor_Stop_timeout; MIN=60; DEFAULT=300; } { PROPERTY = Thorough_Probe_Interval; MIN=1; MAX=3600; DEFAULT=60; TUNABLE = ANYTIME; } # The number of retries to be done within a certain period before concluding # that the application cannot be successfully started on this node. { PROPERTY = Retry_Count; MIN=0; MAX=10; DEFAULT=2; TUNABLE = ANYTIME; } # Set Retry_Interval as a multiple of 60 since it is converted from seconds # to minutes, rounding up. For example, a value of 50 (seconds) # is converted to 1 minute. Use this property to time the number of # retries (Retry_Count). { PROPERTY = Retry_Interval; MIN=60; MAX=3600; DEFAULT=300; TUNABLE = ANYTIME; } { PROPERTY = Network_resources_used; TUNABLE = AT_CREATION; DEFAULT = ““; }
Sun Cluster가 시스템 정의 등록 정보를 제공하기는 하지만 자원 등록 정보 속성을 사용하여 다른 기본값을 설정할 수 있습니다. 자원 등록 정보에 적용할 수 있는 전체 속성 목록은 자원 등록 정보 속성를 참조하십시오.
샘플 RTR 파일의 시스템 정의 자원 등록 정보에 대한 다음 사항에 주의하십시오.
Sun Cluster는 모든 시간 초과에 대해 최소값(1초) 및 기본값(3600초)을 제공합니다. 샘플 RTR 파일은 최소값을 60초로, 기본값을 300초로 변경합니다. 클러스터 관리자는 이 기본값을 사용하거나 시간 초과값을 60초 이상의 다른 값으로 변경할 수 있습니다. Sun Cluster의 경우 최대값에는 제한이 없습니다.
Thorough_Probe_Interval, Retry_count 및 Retry_interval 등록 정보는 ANYTIME으로 설정된 TUNABLE 속성을 가집니다. 이 설정은 데이터 서비스가 실행 중인 경우에도 클러스터 관리자가 이러한 등록 정보의 값을 변경할 수 있다는 것을 의미합니다. 이러한 등록 정보는 샘플 데이터 서비스에 의해 구현되는 오류 모니터에서 사용합니다. 관리 작업에 의해 이러한 자원 등록 정보나 다른 자원 등록 정보가 변경되면 샘플 데이터 서비스는 Update 메소드를 구현하여 오류 모니터를 중지했다가 다시 시작합니다. Update 메소드를 참조하십시오.
자원 등록 정보는 다음과 같이 분류됩니다.
필수—클러스터 관리자가 자원을 만들 때 반드시 값을 지정해야 합니다.
선택 사항—관리자가 값을 지정하지 않을 경우 시스템에서 기본값을 제공합니다.
조건부—RGM은 RTR 파일에 선언되어 있는 경우에만 해당 등록 정보를 만듭니다.
샘플 데이터 서비스의 오류 모니터에서 Thorough_probe_interval, Retry_count, Retry_interval 및 Network_resources_used 조건부 등록 정보를 사용하기 때문에 개발자는 RTR 파일에서 이러한 등록 정보를 선언해야 합니다. 등록 정보가 분류되는 방법에 대한 자세한 내용은 r_properties(5) 설명서 페이지나 자원 등록 정보를 참조하십시오.