This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
WWS.config
173 lines (171 loc) · 6.39 KB
/
WWS.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
################################################################################
# WWS configuration file
################################################################################
#
# WWS (Winston Wave Server) is an Earthworm Wave Server emulator for presenting
# data from a Winston system to the outside world. It implements the Wave
# Server protocol as defined in the wave_serverV.c file in the Earthworm source
# distribution, with a few exceptions. These exceptions are so this program
# accurately behaves like a Wave Server, emulating some, but not all, of its
# bugs. Due to buggy support in Earthworm Wave Server, *PIN commands are not
# implemented in WWS. The author knows of no programs that rely on *PIN
# commands.
#
# This server program uses the Java NIO Asynchronous I/O system. This system
# typically is run on a single thread. However, because the server has to rely
# on the database and can end up waiting for it this program uses multiple
# threads; these threads are called 'handlers'. There is a configuration
# variable below which specifies the number of handlers to use. Each of these
# handlers has a connection to the database. This variable can be tweaked
# depending on the expected server load. However, I wouldn't suggest using
# a value much above 4 unless you do testing and are convinced you need more.
# Raising this value on a disk-bound system will further degrade performance.
# A server which sees a high number of either concurrent request for HTTP plots
# or clients on slow links, and has the available resources required, may benefit
# from raising this value.
#
# This configuration file is simply an unordered list of [key]=[value] pairs.
# The different keys for this file are listed below.
#
# Command-line usage:
#
# java gov.usgs.volcanoes.winston.server.WWS [options] [config file]
#
# Valid options are:
# --noinput, -i disables listening for keystrokes
#
# The [config file] parameter optionally specifies which WWS configuration file
# to use (if it doesn't start with '-'). Otherwise, the file 'WWS.config' in
# the current directory is used.
#
# Type q<enter> in the WWS window to exit kill WWS. Or, if running in --noinput
# or -i mode, then ctrl-c or kill the process the directly.
#
################################################################################
# key: winston.driver
# required, unique
# 'winston.driver' is the fully qualified class name for the database driver to
# use to connect to Winston. Most likely you'll never have to change
# this.
#
# example:
# winston.driver=com.mysql.jdbc.Driver
#
################################################################################
# key: winston.url
# required, unique
# 'winston.url' is the jdbc url to connect to the Winston. You'll only have to
# change this if the database server resides on a different computer than the
# Import program is running on. Of course, you'll have to change the user name
# and password to whatever you have set up for your system.
#
# example:
# winston.url=jdbc:mysql://localhost/?user=winstonuser&password=winstonpass
#
################################################################################
# key: winston.prefix
# required, unique
# 'winston.prefix' is the prefix to all of the Winston databases. Unless you
# already have databases starting with W_ or are running two separate Winstons
# in the same database you shouldn't need to change this.
#
# example:
# winston.prefix=W
#
################################################################################
# key: wws.port
# required, unique
# 'wws.port' is the port to listen on. The default port for Earthworm Wave
# Servers is 16022
#
# example:
# port=16022
#
################################################################################
# key: wws.keepalive
# optional, unique
# 'wws.keepalive' is a boolean value (legal true values: '1' or 'true',
# everything else is false) that specifies whether the SO_KEEPALIVE option
# should be set on acepted connections. This may be helpful for systems behind
# firewalls.
#
# example:
# keepalive=true
#
################################################################################
# key: wws.handlers
# required, unique
# 'wws.handlers' is the number of handlers. See above for a discussion of
# handlers.
#
# example:
# handlers=4
#
################################################################################
# key: wws.maxConnections
# required, unique
# 'wws.maxConnections' is the maximum number of connections to the WWS
# at the same time. Specify 0 for unlimited.
#
# example:
# maxConnections=20
#
################################################################################
# key: wws.idleTime
# optional, unique
# 'wws.idleTime' is the length of time, in seconds, that a connection can
# remain quiet before WWS will consider it idle
#
# example:
# idleTime=7200
#
################################################################################
# key: wws.allowHttp
# required, unique
# 'wws.allowHttp' is a boolean value (legal true values: '1' or 'true',
# everything else is false) that specifies whether the WWS should respond to
# HTTP GET requests.
#
# example:
# allowHttp=true
#
################################################################################
# key: wws.httpMaxSize
# optional, unique
# 'wws.httpMaxSize' is an integer value that specifies whether the maximum product
# of requested width and height WWS should respond to HTTP GET requests.
#
# example:
# httpMaxSize=1000000
#
################################################################################
# key: wws.maxDays
# required, unique
# 'wws.maxDays' is the maximum age of data, in days, that will be returned to a
# client. If 0, all data will be available to fill client requests.
#
# The intent of this setting is to permit multiple WWS instances to feed from a
# single database while providing different retention policies.
# example:
# maxdays=0
#################################################################################
# key: wws.slowCommandTime
# unique
# 'wws.slowCommandTime' is the length of time, in milliseconds, a command can run
# before being logged as slow.
#
# example:
# slowCommandTime=1000
#
wws.addr=127.0.0.1
wws.port=16022
wws.keepalive=true
wws.handlers=4
wws.maxConnections=50
wws.idleTime=7200
wws.allowHttp=true
wws.httpMaxSize=10000000
wws.httpRefreshInterval=300
wws.maxDays=0
wws.slowCommandTime=15000
@include Winston.config