3
A brief file description
5
@section license License
7
Licensed to the Apache Software Foundation (ASF) under one
8
or more contributor license agreements. See the NOTICE file
9
distributed with this work for additional information
10
regarding copyright ownership. The ASF licenses this file
11
to you under the Apache License, Version 2.0 (the
12
"License"); you may not use this file except in compliance
13
with the License. You may obtain a copy of the License at
15
http://www.apache.org/licenses/LICENSE-2.0
17
Unless required by applicable law or agreed to in writing, software
18
distributed under the License is distributed on an "AS IS" BASIS,
19
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
See the License for the specific language governing permissions and
21
limitations under the License.
28
#define BUILD_MACHINE "NT"
32
#define BUILD_PERSON "BOBCAT"
35
#define COMPANY_REG_KEY "SOFTWARE\\Inktomi"
36
#define TS_ROOT_REG_KEY "TrafficServer\\5.2"
37
#define TS_BASE_REG_KEY "TSBase"
38
#define TS_CATEGORY_MSG_KEY "CategoryMessageFile"
39
#define TS_CATEGORY_COUNT_KEY "CategoryCount"
41
#define TCP_SRVS_REG_KEY "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"
42
#define MAX_USER_PORT "MaxUserPort"
43
#define OPTIMAL_MAX_USER_PORT 0xfffe
45
#define TCP_WINDOW_SIZE "TcpWindowSize"
46
#define OPTIMAL_TCP_WINDOW_SZ 0x4470
48
#define TCP_TIMED_WAIT_DELAY "TcpTimedWaitDelay"
49
#define OPTIMAL_TCP_TIMED_WAIT_DELAY 0xb4
52
// If this location is changed, then perfdll/TrafficServer.reg or the
53
// install shield editor needs to be changed as well.
54
#define TS_PERFMON_SVC_REG_KEY "SYSTEM\\CurrentControlSet\\Services\\TrafficServer\\Performance"
55
#define TS_EVENT_LOG_SRC_KEY "SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\TrafficServer"
56
#define TS_EVENT_LOG_MESSAGE_FILE "%SystemRoot%\\System32\\TSMsgs.DLL"
58
#define TS_EXIT_STR "Inktomi Traffic Server Process %d Please Exit"
59
#define TS_ABORT_STR "Inktomi Traffic Server Process %d Please Abort"
60
#define TS_DUMP_STATE_STR "Inktomi Traffic Server Process %d Please Dump State"
62
//***************** shared between manager and server *****************//
63
#define STR_IOC_PORT "IOCPort"
64
#define STR_PIPE_NAME "\\\\.\\pipe\\INKTrafficServer"
65
#define STR_MANAGER_ID "ManagerProcId"
66
#define STR_FDLIST_SZ "FDListSize"
68
#define ENV_BLOCK_SZ 256
69
#define NPIPE_BUFFER_SZ (MAX_PROXY_SERVER_PORTS+1)*1024
70
#define DEF_WAIT_FOR_PIPE 10*1000 // 10 Sec
71
//********************************************************************//
75
#define TS_MGR_SERVICE_NAME "InktomiTrafficManager"
76
#define TS_MGR_SERVICE_DISPLAY_NAME "Inktomi Traffic Manager"
78
// These are the attributes for creating the manager service.
80
// LPCTSTR lpServiceName = TS_MGR_SERVICE_NAME // pointer to name of service to start
81
// LPCTSTR lpDisplayName = TS_MGR_SERVICE_DISPLAY_NAME // pointer to display name
82
// DWORD dwDesiredAccess = SERVICE_ALL_ACCESS // type of access to service
83
// DWORD dwServiceType = SERVICE_WIN32_OWN_PROCESS // type of service
84
// DWORD dwStartType = SERVICE_AUTO_START // when to start service
85
// DWORD dwErrorControl = SERVICE_ERROR_NORMAL // severity if service fails to start
87
#endif // MGMT_SERVICE
91
#define TS_COP_SERVICE_NAME "InktomiTrafficCop"
92
#define TS_COP_SERVICE_DISPLAY_NAME "Inktomi Traffic Cop"
93
#define TS_COP_SERVICE_DESCRIPTION "Monitors the health of Traffic Server and Traffic Manager"
95
// These are the attributes for creating the cop service.
97
// LPCTSTR lpServiceName = TS_COP_SERVICE_NAME // pointer to name of service to start
98
// LPCTSTR lpDisplayName = TS_COP_SERVICE_DISPLAY_NAME // pointer to display name
99
// DWORD dwDesiredAccess = SERVICE_ALL_ACCESS // type of access to service
100
// DWORD dwServiceType = SERVICE_WIN32_OWN_PROCESS // type of service
101
// DWORD dwStartType = SERVICE_AUTO_START // when to start service
102
// DWORD dwErrorControl = SERVICE_ERROR_NORMAL // severity if service fails to start
104
#endif // COP_SERVICE