以下清單將顯示 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 提供系統定義的屬性,但您可以使用資源屬性性質來設定不同的預設值。 請參閱資源屬性性質,以取得可套用至資源屬性的性質之完整清單。
Sun Cluster 為所有逾時提供最小值 (1 秒) 與預設值 (3600 秒)。 RTR 檔案範例會將最小值變更為 60 秒,而將預設值變更為 300 秒。 叢集管理員可以接受此預設值,或將逾時值變更為其他值 (60 或更高的值)。 Sun Cluster 不具有最大的允許值。
Thorough_Probe_Interval、Retry_count 以及 Retry_interval 屬性將 TUNABLE 性質設定為 ANYTIME。 此設定意味著叢集管理員可以變更這些屬性的值,即使資料服務正在執行。 透過資料服務範例實施的故障監視器將使用這些屬性。 當透過管理動作變更這些或其他資源屬性時,資料服務範例將實施 Update 方法來停止與重新啟動故障監視器。 請參閱Update 方法。
資源屬性分為
必需 — 叢集管理員必須在建立資源時指定一個值;
可選用 — 如果管理員未指定值,則系統會提供一個預設值。
條件式 — 只有在 RTR 檔案中宣告了屬性,RGM 才會建立該屬性。
資料服務範例的故障監視器將使用 Thorough_probe_interval、Retry_count、Retry_interval 和 Network_resources_used 條件式屬性,因此開發人員需要在 RTR 檔案中宣告它們。 請參閱 r_properties(5) 線上說明手冊或資源屬性,以取得有關如何將屬性分類的資訊。