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.

118 lines
5.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. mbconsts.h
  5. Abstract:
  6. Common place for defaults and ranges to be declared
  7. for metabase properties used atleast by WAS.
  8. Author:
  9. EmilyK 4/17/2002
  10. Revision History:
  11. --*/
  12. #ifndef _MBCONST_H_
  13. #define _MBCONST_H_
  14. #include <httpp.h>
  15. //
  16. // Internal defines to make numbers easier to understand.
  17. #define MBCONST_UTIL_DEFINE_MAX_ULONG 0xFFFFFFFF
  18. #define MBCONST_UTIL_DEFINE_MAX_KB_IN_ULONG_OF_BYTES ( MAX_ULONG / 1024 )
  19. #define MBCONST_UTIL_DEFINE_3_GIG_IN_KB ( 1024 * 1024 * 3 )
  20. #define MBCONST_UTIL_DEFINE_MAX_SECONDS_IN_ULONG_OF_MS MBCONST_UTIL_DEFINE_MAX_ULONG / 1000
  21. #define MBCONST_UTIL_DEFINE_MAX_MINS_IN_ULONG_OF_MS MBCONST_UTIL_DEFINE_MAX_SECONDS_IN_ULONG_OF_MS / 60
  22. //
  23. // W3SVC properties
  24. //
  25. #define MBCONST_MAX_GLOBAL_BANDWIDTH_NAME L"MaxGlobalBandwidth"
  26. #define MBCONST_MAX_GLOBAL_BANDWIDTH_DEFAULT MBCONST_UTIL_DEFINE_MAX_ULONG
  27. #define MBCONST_MAX_GLOBAL_BANDWIDTH_LOW 1024
  28. // value is not defined yet in the version of httpp.h that we have so
  29. // at some later date we should remove the above line and activate this line.
  30. // #define MBCONST_MAX_GLOBAL_BANDWIDTH_LOW HTTP_MIN_ALLOWED_BANDWIDTH_THROTTLING_RATE
  31. #define MBCONST_MAX_GLOBAL_BANDWIDTH_HIGH MBCONST_UTIL_DEFINE_MAX_ULONG
  32. //
  33. // Site properties
  34. //
  35. #define MBCONST_MAX_BANDWIDTH_NAME L"MaxBandwidth"
  36. #define MBCONST_MAX_BANDWIDTH_DEFAULT MBCONST_UTIL_DEFINE_MAX_ULONG
  37. #define MBCONST_MAX_BANDWIDTH_LOW 1024
  38. // value is not defined yet in the version of httpp.h that we have so
  39. // at some later date we should remove the above line and activate this line.
  40. // #define MBCONST_MAX_GLOBAL_BANDWIDTH_LOW HTTP_MIN_ALLOWED_BANDWIDTH_THROTTLING_RATE
  41. #define MBCONST_MAX_BANDWIDTH_HIGH MBCONST_UTIL_DEFINE_MAX_ULONG
  42. #define MBCONST_CONNECTION_TIMEOUT_NAME L"ConnectionTimeout"
  43. #define MBCONST_CONNECTION_TIMEOUT_DEFAULT 120
  44. #define MBCONST_CONNECTION_TIMEOUT_LOW 0
  45. #define MBCONST_CONNECTION_TIMEOUT_HIGH 0xFFFF
  46. #define MBCONST_HEADER_WAIT_TIMEOUT_NAME L"HeaderWaitTimeout"
  47. #define MBCONST_HEADER_WAIT_TIMEOUT_DEFAULT 0
  48. #define MBCONST_HEADER_WAIT_TIMEOUT_LOW 0
  49. #define MBCONST_HEADER_WAIT_TIMEOUT_HIGH 0xFFFF
  50. //
  51. // AppPool poperties
  52. //
  53. #define MBCONST_PERIODIC_RESTART_PRIVATE_MEMORY_NAME L"PeriodicRestartPrivateMemory"
  54. #define MBCONST_PERIODIC_RESTART_PRIVATE_MEMORY_DEFAULT 0
  55. #define MBCONST_PERIODIC_RESTART_PRIVATE_MEMORY_LOW 0
  56. #define MBCONST_PERIODIC_RESTART_PRIVATE_MEMORY_HIGH MBCONST_UTIL_DEFINE_3_GIG_IN_KB
  57. #define MBCONST_PERIODIC_RESTART_VIRTUAL_MEMORY_NAME L"PeriodicRestartMemory"
  58. #define MBCONST_PERIODIC_RESTART_VIRTUAL_MEMORY_DEFAULT 512000
  59. #define MBCONST_PERIODIC_RESTART_VIRTUAL_MEMORY_LOW 0
  60. #define MBCONST_PERIODIC_RESTART_VIRTUAL_MEMORY_HIGH MBCONST_UTIL_DEFINE_MAX_KB_IN_ULONG_OF_BYTES
  61. #define MBCONST_PERIODIC_RESTART_TIME_NAME L"PeriodicRestartTime"
  62. #define MBCONST_PERIODIC_RESTART_TIME_DEFAULT 60 // every hour ( 60 minutes )
  63. #define MBCONST_PERIODIC_RESTART_TIME_LOW 0
  64. #define MBCONST_PERIODIC_RESTART_TIME_HIGH MBCONST_UTIL_DEFINE_MAX_MINS_IN_ULONG_OF_MS
  65. #define MBCONST_APP_POOL_QUEUE_LENGTH_NAME L"AppPoolQueueLength"
  66. #define MBCONST_APP_POOL_QUEUE_LENGTH_DEFAULT 1000
  67. #define MBCONST_APP_POOL_QUEUE_LENGTH_LOW 10
  68. #define MBCONST_APP_POOL_QUEUE_LENGTH_HIGH 65535
  69. #define MBCONST_PING_INTERVAL_NAME L"PingInterval"
  70. #define MBCONST_PING_INTERVAL_DEFAULT 30
  71. #define MBCONST_PING_INTERVAL_LOW 1
  72. #define MBCONST_PING_INTERVAL_HIGH MBCONST_UTIL_DEFINE_MAX_SECONDS_IN_ULONG_OF_MS
  73. #define MBCONST_RAPID_FAIL_INTERVAL_NAME L"RapidFailProtectionInterval"
  74. #define MBCONST_RAPID_FAIL_INTERVAL_DEFAULT 5
  75. #define MBCONST_RAPID_FAIL_INTERVAL_LOW 1
  76. #define MBCONST_RAPID_FAIL_INTERVAL_HIGH MBCONST_UTIL_DEFINE_MAX_MINS_IN_ULONG_OF_MS
  77. #define MBCONST_RAPID_FAIL_CRASHES_NAME L"RapidFailProtectionMaxCrashes"
  78. #define MBCONST_RAPID_FAIL_CRASHES_DEFAULT 5
  79. #define MBCONST_RAPID_FAIL_CRASHES_LOW 1
  80. #define MBCONST_RAPID_FAIL_CRASHES_HIGH MBCONST_UTIL_DEFINE_MAX_ULONG
  81. #define MBCONST_DEMAND_START_THRESHOLD_NAME L"DemandStartThreshold"
  82. #define MBCONST_DEMAND_START_THRESHOLD_DEFAULT MBCONST_UTIL_DEFINE_MAX_ULONG
  83. #define MBCONST_DEMAND_START_THRESHOLD_LOW 10
  84. #define MBCONST_DEMAND_START_THRESHOLD_HIGH MBCONST_UTIL_DEFINE_MAX_ULONG
  85. #define MBCONST_WP_STARTUP_TIMELIMIT_NAME L"StartupTimeLimit"
  86. #define MBCONST_WP_STARTUP_TIMELIMIT_DEFAULT 90
  87. #define MBCONST_WP_STARTUP_TIMELIMIT_LOW 1
  88. #define MBCONST_WP_STARTUP_TIMELIMIT_HIGH MBCONST_UTIL_DEFINE_MAX_SECONDS_IN_ULONG_OF_MS
  89. #endif // _REGCONST_H_