Sun Cluster 資料服務開發者指南 (適用於 Solaris 作業系統)

宣告延伸特性

延伸特性顯示於 RTR 檔案範例的結尾處。

# Extension Properties
#

# The cluster administrator must set the value of this property to point to the 
# directory that contains the configuration files used by the application.
# For this application, smpl, specify the path of the configuration file on
# PXFS (typically named.conf).
{
        PROPERTY = Confdir_list;
        EXTENSION;
        STRINGARRAY;
        TUNABLE = AT_CREATION;
        DESCRIPTION = "The Configuration Directory Path(s)";
}

# The following two properties control restart of the fault monitor.
{
        PROPERTY = Monitor_retry_count;
        EXTENSION;
        INT;
        DEFAULT = 4;
        TUNABLE = ANYTIME;
        DESCRIPTION = "Number of PMF restarts allowed for fault monitor.";
}
{
        PROPERTY = Monitor_retry_interval;
        EXTENSION;
        INT;
        DEFAULT = 2;
        TUNABLE = ANYTIME;
        DESCRIPTION = "Time window (minutes) for fault monitor restarts.";
}
# Time out value in seconds for the probe.
{
        PROPERTY = Probe_timeout;
        EXTENSION;
        INT;
        DEFAULT = 120;
        TUNABLE = ANYTIME;
        DESCRIPTION = "Time out value for the probe (seconds)";
}

# Child process monitoring level for PMF (-C option of pmfadm).
# Default of -1 means to not use the -C option of pmfadm.
# A value of 0 or greater indicates the desired level of child-process.
# monitoring.
{
        PROPERTY = Child_mon_level;
        EXTENSION;
        INT;
        DEFAULT = -1;
        TUNABLE = ANYTIME;
        DESCRIPTION = “Child monitoring level for PMF";
}
# User added code -- BEGIN VVVVVVVVVVVV
# User added code -- END   ^^^^^^^^^^^^

Agent Builder 將建立以下延伸特性,這些延伸特性對大多數資料服務均有用。

Confdir_list

指定應用程式配置目錄的路徑,此路徑資訊對許多應用程式均有用。叢集管理員配置資料服務時,可以提供此目錄的位置。

Monitor_retry_countMonitor_retry_interval 以及 Probe_timeout

控制故障監視器自身 (而非伺服器常駐程式) 的重新啟動。

Child_mon_level

將監視層級設定為由 PMF 執行。請參閱 pmfadm(1M) 線上手冊,以取得更多資訊。

您可以在由 User added code 注釋分隔的區域中建立附加延伸特性。