Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
7.3 KiB

  1. /*++
  2. Copyright (c) 1995-1997 Microsoft Corporation
  3. Module Name:
  4. clusudef.h
  5. Abstract:
  6. This module contains definitions of constants used across
  7. multiple user-mode targets in the cluster project.
  8. Revision History:
  9. Environment:
  10. User-mode only.
  11. --*/
  12. #ifndef _CLUSUDEF_H_
  13. #define _CLUSUDEF_H_
  14. //
  15. // Default group property definitions
  16. //
  17. #define CLUSTER_GROUP_DEFAULT_FAILOVER_THRESHOLD 10
  18. #define CLUSTER_GROUP_DEFAULT_FAILOVER_PERIOD 6
  19. #define CLUSTER_GROUP_DEFAULT_AUTO_FAILBACK_TYPE ClusterGroupPreventFailback
  20. #define CLUSTER_GROUP_FAILBACK_WINDOW_NONE ((DWORD) -1)
  21. #define CLUSTER_GROUP_DEFAULT_FAILBACK_WINDOW_START CLUSTER_GROUP_FAILBACK_WINDOW_NONE
  22. #define CLUSTER_GROUP_DEFAULT_FAILBACK_WINDOW_END CLUSTER_GROUP_FAILBACK_WINDOW_NONE
  23. #define CLUSTER_GROUP_DEFAULT_LOADBAL_STATE 1
  24. //
  25. // Default resource property definitions
  26. //
  27. #define CLUSTER_RESOURCE_USE_DEFAULT_POLL_INTERVAL ((DWORD) -1)
  28. #define CLUSTER_RESOURCE_DEFAULT_LOOKS_ALIVE CLUSTER_RESOURCE_USE_DEFAULT_POLL_INTERVAL
  29. #define CLUSTER_RESOURCE_DEFAULT_IS_ALIVE CLUSTER_RESOURCE_USE_DEFAULT_POLL_INTERVAL
  30. #define CLUSTER_RESOURCE_DEFAULT_RESTART_ACTION ClusterResourceRestartNotify
  31. #define CLUSTER_RESOURCE_DEFAULT_RESTART_THRESHOLD 3
  32. #define CLUSTER_RESOURCE_DEFAULT_RESTART_PERIOD (900 * 1000)
  33. #define CLUSTER_RESOURCE_DEFAULT_PENDING_TIMEOUT (3 * 60 * 1000)
  34. #define CLUSTER_RESOURCE_DEFAULT_LOADBAL_STARTUP (5 * 60 * 1000)
  35. #define CLUSTER_RESOURCE_DEFAULT_LOADBAL_SAMPLE ( 10 * 1000)
  36. #define CLUSTER_RESOURCE_DEFAULT_LOADBAL_ANALYSIS (5 * 60 * 1000)
  37. //
  38. // Default resource type property definitions
  39. //
  40. #define CLUSTER_RESTYPE_DEFAULT_LOOKS_ALIVE (5 * 1000)
  41. #define CLUSTER_RESTYPE_DEFAULT_IS_ALIVE (60 * 1000)
  42. #define CLUSTER_RESTYPE_DEFAULT_QUORUM_CAPABLE FALSE
  43. //
  44. // Default quorum definitions
  45. //
  46. #define CLUSTER_QUORUM_DEFAULT_MAX_LOG_SIZE 64 * 1024 // 64K
  47. #define CLUSTER_QUORUM_MIN_LOG_SIZE 32 * 1024 //32 K
  48. //
  49. // Key, value, and property names
  50. //
  51. #define CLUSREG_KEYNAME_GROUPS L"Groups"
  52. #define CLUSREG_KEYNAME_NETWORKS L"Networks"
  53. #define CLUSREG_KEYNAME_NETINTERFACES L"NetworkInterfaces"
  54. #define CLUSREG_KEYNAME_NODES L"Nodes"
  55. #define CLUSREG_KEYNAME_QUORUM L"Quorum"
  56. #define CLUSREG_KEYNAME_RESOURCES L"Resources"
  57. #define CLUSREG_KEYNAME_RESOURCE_TYPES L"ResourceTypes"
  58. #define CLUSREG_KEYNAME_PARAMETERS L"Parameters"
  59. #define CLUSREG_NAME_CHARACTERISTICS L"Characteristics"
  60. #define CLUSREG_NAME_FLAGS L"Flags"
  61. #define CLUSREG_NAME_ADMIN_EXT L"AdminExtensions"
  62. #define CLUSREG_NAME_CLUS_NAME L"ClusterName"
  63. #define CLUSREG_NAME_CLUS_DESC L"Description"
  64. #define CLUSREG_NAME_CLUS_SECURITY L"Security"
  65. #define CLUSREG_NAME_CLUS_CLUSTER_NAME_RES L"ClusterNameResource"
  66. #define CLUSREG_NAME_CLUS_REG_SEQUENCE L"RegistrySequence"
  67. #define CLUSREG_NAME_NODE_NAME L"NodeName"
  68. #define CLUSREG_NAME_NODE_DESC L"Description"
  69. #define CLUSREG_NAME_NODE_PAUSED L"Paused"
  70. #define CLUSREG_NAME_GRP_NAME L"Name"
  71. #define CLUSREG_NAME_GRP_DESC L"Description"
  72. #define CLUSREG_NAME_GRP_PERSISTENT_STATE L"PersistentState"
  73. #define CLUSREG_NAME_GRP_FAILBACK_TYPE L"AutoFailbackType"
  74. #define CLUSREG_NAME_GRP_FAILBACK_WIN_START L"FailbackWindowStart"
  75. #define CLUSREG_NAME_GRP_FAILBACK_WIN_END L"FailbackWindowEnd"
  76. #define CLUSREG_NAME_GRP_FAILOVER_THRESHOLD L"FailoverThreshold"
  77. #define CLUSREG_NAME_GRP_FAILOVER_PERIOD L"FailoverPeriod"
  78. #define CLUSREG_NAME_GRP_PREFERRED_OWNERS L"PreferredOwners"
  79. #define CLUSREG_NAME_GRP_CONTAINS L"Contains"
  80. #define CLUSREG_NAME_GRP_LOADBAL_STATE L"LoadBalState"
  81. #define CLUSREG_NAME_RES_NAME L"Name"
  82. #define CLUSREG_NAME_RES_TYPE L"Type"
  83. #define CLUSREG_NAME_RES_DESC L"Description"
  84. #define CLUSREG_NAME_RES_DEBUG_PREFIX L"DebugPrefix"
  85. #define CLUSREG_NAME_RES_SEPARATE_MONITOR L"SeparateMonitor"
  86. #define CLUSREG_NAME_RES_PERSISTENT_STATE L"PersistentState"
  87. #define CLUSREG_NAME_RES_LOOKS_ALIVE L"LooksAlivePollInterval"
  88. #define CLUSREG_NAME_RES_IS_ALIVE L"IsAlivePollInterval"
  89. #define CLUSREG_NAME_RES_RESTART_ACTION L"RestartAction"
  90. #define CLUSREG_NAME_RES_RESTART_THRESHOLD L"RestartThreshold"
  91. #define CLUSREG_NAME_RES_RESTART_PERIOD L"RestartPeriod"
  92. #define CLUSREG_NAME_RES_PENDING_TIMEOUT L"PendingTimeout"
  93. #define CLUSREG_NAME_RES_POSSIBLE_OWNERS L"PossibleOwners"
  94. #define CLUSREG_NAME_RES_DEPENDS_ON L"DependsOn"
  95. #define CLUSREG_NAME_RES_LOADBAL_STARTUP L"LoadBalStartupInterval"
  96. #define CLUSREG_NAME_RES_LOADBAL_SAMPLE L"LoadBalSampleInterval"
  97. #define CLUSREG_NAME_RES_LOADBAL_ANALYSIS L"LoadBalAnalysisInterval"
  98. #define CLUSREG_NAME_RES_LOADBAL_PROCESSOR L"LoadBalMinProcessorUnits"
  99. #define CLUSREG_NAME_RES_LOADBAL_MEMORY L"LoadBalMinMemoryUnits"
  100. #define CLUSREG_NAME_RESTYPE_NAME L"Name"
  101. #define CLUSREG_NAME_RESTYPE_DESC L"Description"
  102. #define CLUSREG_NAME_RESTYPE_LOOKS_ALIVE L"LooksAlivePollInterval"
  103. #define CLUSREG_NAME_RESTYPE_IS_ALIVE L"IsAlivePollInterval"
  104. #define CLUSREG_NAME_RESTYPE_DLL_NAME L"DllName"
  105. #define CLUSREG_NAME_RESTYPE_DEBUG_PREFIX L"DebugPrefix"
  106. #define CLUSREG_NAME_NET_NAME L"Name"
  107. #define CLUSREG_NAME_NET_DESC L"Description"
  108. #define CLUSREG_NAME_NET_ROLE L"Role"
  109. #define CLUSREG_NAME_NET_PRIORITY L"Priority"
  110. #define CLUSREG_NAME_NET_TRANSPORT L"Transport"
  111. #define CLUSREG_NAME_NET_ADDRESS L"Address"
  112. #define CLUSREG_NAME_NET_ADDRESS_MASK L"AddressMask"
  113. #define CLUSREG_NAME_NETIFACE_NAME L"Name"
  114. #define CLUSREG_NAME_NETIFACE_DESC L"Description"
  115. #define CLUSREG_NAME_NETIFACE_NODE L"Node"
  116. #define CLUSREG_NAME_NETIFACE_NETWORK L"Network"
  117. #define CLUSREG_NAME_NETIFACE_ADAPTER L"Adapter"
  118. #define CLUSREG_NAME_NETIFACE_ADDRESS L"Address"
  119. #define CLUSREG_NAME_NETIFACE_ENDPOINT L"ClusnetEndpoint"
  120. #define CLUSREG_NAME_QUORUM_RESOURCE L"Resource"
  121. #define CLUSREG_NAME_QUORUM_PATH L"Path"
  122. #define CLUSREG_NAME_QUORUM_MAX_LOG_SIZE L"MaxQuorumLogSize"
  123. #define CLUSREG_NAME_PROXY_RETRY_COUNT L"RetryCount"
  124. #define CLUSREG_NAME_PROXY_RETRY_INTERVAL L"RetryInterval"
  125. //
  126. // Standard Resource Type Names
  127. //
  128. #define CLUS_RESTYPE_NAME_GENAPP L"Generic Application"
  129. #define CLUS_RESTYPE_NAME_GENSVC L"Generic Service"
  130. #define CLUS_RESTYPE_NAME_FTSET L"Fault Tolerant Disk Set"
  131. #define CLUS_RESTYPE_NAME_PHYS_DISK L"Physical Disk"
  132. #define CLUS_RESTYPE_NAME_IPADDR L"IP Address"
  133. #define CLUS_RESTYPE_NAME_NETNAME L"Network Name"
  134. #define CLUS_RESTYPE_NAME_FILESHR L"File Share"
  135. #define CLUS_RESTYPE_NAME_PRTSPLR L"Print Spooler"
  136. #define CLUS_RESTYPE_NAME_TIMESVC L"Time Service"
  137. #define CLUS_RESTYPE_NAME_LKQUORUM L"Local Quorum"
  138. #define CLUS_RESTYPE_NAME_DHCP L"DHCP Server"
  139. #define CLUS_RESTYPE_NAME_MSMQ L"Microsoft Message Queue Server"
  140. #define CLUS_RESTYPE_NAME_MSDTC L"Distributed Transaction Coordinator"
  141. #define CLUS_NAME_DEFAULT_FILESPATH L"MSCS\\"
  142. #endif // _CLUSUDEF_H_
  143.