Project

General

Profile

ring.conf

Jean-Marie Saurel, 04/19/2016 12:26 PM

 
1
# Example ringserver configuration file.
2
#
3
# Default values are in comments where appropriate.
4
#
5
# Dynamic parameters: some parameters will be re-read by ringserver
6
# whenever the configuration file is modified.
7
#
8
# Comment lines begin with a '#' or '*' character.
9

    
10

    
11
# Specify the directory where the ringserver will store
12
# the packet and stream buffers.  This must be specified.
13

    
14
#RingDirectory ring
15
RingDirectory /home/sysop/ringserver/ring
16

    
17
# Specify the ring packet buffer size in bytes.  A trailing
18
# 'K', 'M' or 'G' may be added for kilo, mega or giga bytes.
19

    
20
RingSize 150M
21

    
22

    
23
# Specify the maximum packet ID.  The maximum ID for SeedLink
24
# is 16,777,215 (2^16).
25

    
26
#MaxPacketID 16777215
27

    
28

    
29
# Specify the maximum packet data size in bytes.
30

    
31
#MaxPacketSize 512
32

    
33

    
34
# Listen for DataLink connections on a specified port.  This parameter
35
# can be specified multiple times to listen for DataLink connections
36
# on multiple ports.
37

    
38
DataLinkPort 16000
39

    
40

    
41
# Listen for SeedLink connections on a specified port.  This parameter
42
# can be specified multiple times to listen for SeedLink connections
43
# on multiple ports.
44

    
45
SeedLinkPort 18000
46

    
47

    
48
# Specify the Server ID as reported to the clients.  The parameter may
49
# be a quoted string including spaces.  Default is "Ring Server".
50
# This is a dynamic parameter.
51

    
52
#ServerID "Ring Server"
53

    
54

    
55
# Specify the level of verbosity for the server log output.  Valid
56
# verbosity levels are 0 - 3.  This is a dynamic parameter.
57

    
58
Verbosity 3
59

    
60

    
61
# Specify the maximum number of clients per IP address, regardless of
62
# protocol, allowed to be connected concurrently.  This limit does
63
# not apply to addresses with write permission.  Set to 0 for unlimited.
64
# This is a dynamic parameter.
65

    
66
#MaxClientsPerIP 0
67

    
68

    
69
# Specify the maximum number of clients, regardless of protocol,
70
# allowed to be connected simulataneously, set to 0 for unlimited.
71
# This is a dynamic parameter.
72

    
73
#MaxClients 600
74

    
75

    
76
# Specify a timeout in seconds after which to drop client connections
77
# that have exchanged no packets with the server within the timeout
78
# window, set to 0 to disable.  This is a dynamic parameter.
79

    
80
#ClientTimeout 3600
81

    
82

    
83
# Control the usage of memory mapping of the ring packet buffer.  If
84
# this parameter is 1 (or not defined) the packet buffer will be
85
# memory-mapped directly from the packet buffer file, otherwise it
86
# will be stored in memory during operation and only read/written
87
# to/from the packet buffer file during startup and shutdown.
88
# Normally memory mapping the packet buffer is the best option,
89
# this parameter allows for operation in environments where memory
90
# mapping is slow or not possible (e.g. NFS storage).
91

    
92
#MemoryMapRing 1
93

    
94

    
95
# Control auto-recovery after corruption detection.  Be default if
96
# corruption is detected in the ring packet buffer file or stream
97
# index file during initialization the ring and stream files will be
98
# renamed with .corrupt extensions and initialization will be
99
# attempted a 2nd time.  If this option is 0 (off) the server will
100
# exit on these corruption errors.
101

    
102
AutoRecovery 1
103

    
104

    
105
# Control reverse DNS lookups to resolve hostnames for client IPs.
106
# By default a reverse lookup is performed whenever a client connects.
107
# When a reverse DNS lookup fails a small delay will occur, this can
108
# be avoided by setting this option to 0 (off).
109
# This is a dynamic parameter.
110

    
111
#ResolveHostnames 1
112

    
113

    
114
# Specify a limit, in percent, of the packet buffer to search for time
115
# windowing requests.  By default the entire packet buffer will be
116
# searched starting from the earliest packet traversing forward.  If
117
# this option is set, only the specified percent of the ring will be
118
# searched starting from the latest packet traversing backward.  To
119
# turn off time window requsts set this parameter to 0.  This is a
120
# dynamic parameter, but updated values will only apply to new
121
# connections.
122

    
123
#TimeWindowLimit 100
124

    
125

    
126
# Define the base directory for data transfer logs including both
127
# data transmission and reception logs.  By default no logs are written.
128
# This facility will log the number of data packet bytes and packet
129
# count sent to and/or received from each client during the log interval.
130
# If this parameter is specified and the directory exists, files will
131
# be written at a user defined interval with the format:
132
# "<dir>/[prefix-]txlog-YYYYMMDDTHH:MM-YYYYMMDDTHH:MM" and
133
# "<dir>/[prefix-]rxlog-YYYYMMDDTHH:MM-YYYYMMDDTHH:MM"
134
# This is a dynamic parameter.
135

    
136
TransferLogDirectory /home/sysop/ringserver/tlog
137

    
138
# Specify the transfer log interval in hours.  This is a dynamic
139
# parameter.
140

    
141
TransferLogInterval 0.1
142

    
143
# Specify a transfer log file prefix, the default is no
144
# prefix. This is a dynamic parameter.
145

    
146
#TransferLogPrefix <prefix>
147

    
148
# Control the logging of data transmission and reception independently,
149
# by default both are logged.  The TransferLogDirectory must be set for
150
# any transfer logs to be written.  To turn off logging of either
151
# transmission (TX) or reception (RX) set the appropriate parameter to 0.
152
# These are dynamic parameters.
153

    
154
TransferLogTX 1
155
TransferLogRX 1
156

    
157

    
158
# Specify IP addresses or ranges which are allowed to submit (write)
159
# data to the ringserver.  This parameter can be specified multiple
160
# times and should be specified in IP and netmask format, e.g.:
161
# "WriteIP 192.168.0.1/255.255.255.0" or equivalently in bit-count
162
# format: "WriteIP 192.168.0.1/24".  The netmask may be omitted in
163
# which case a 32-bit netmask is assumed.  If no addresses are explicitly
164
# granted write permission, permission is granted to clients from
165
# 127.0.0.1 (local loopback).
166
# This is a dynamic parameter.
167

    
168
#WriteIP <IP>[/netmask]
169
WriteIP 127.0.0.1 
170
WriteIP 195.83.188.234 
171

    
172
# Limit IP addresses or ranges to only specified stream IDs in the
173
# ringserver.  A regular expression is used to specify which Stream IDs
174
# the IP(s) are allowed access to, the expression may be compound and
175
# must not contain spaces.  By default clients can access any streams
176
# in the buffer.  This parameter can be specified multiple times and
177
# should be specified in IP and netmask format, e.g.: "LimitIP
178
# 192.168.0.1/255.255.255.0" or equivalently in bit-count format:
179
# "LimitIP 192.168.0.1/24".  The netmask may be omitted in which case
180
# a 32-bit netmask is assumed.  This is a dynamic parameter.
181

    
182
#LimitIP <IP>[/netmask] <StreamID Pattern>
183
#LimitIP <IP>[/netmask] <StreamID Pattern>
184

    
185

    
186
# Specify IP addresses or ranges which should be specifically allowed
187
# to connect while all others will be rejected.  By default all IPs 
188
# are allowed to connect.  This parameter can be specified multiple times
189
# and should be specified in IP and netmask format, e.g.: "MatchIP
190
# 192.168.0.1/255.255.255.0" or equivalently in bit-count format:
191
# "MatchIP 192.168.0.1/24".  The netmask may be omitted in which case
192
# a 32-bit netmask is assumed.  This is a dynamic parameter.
193
#
194
#MatchIP <IP>[/netmask]
195

    
196

    
197

    
198
# Specify IP addresses or ranges which should be rejected immediately
199
# after connecting.  This parameter can be specified multiple times
200
# and should be specified in IP and netmask format, e.g.: "RejectIP
201
# 192.168.0.1/255.255.255.0" or equivalently in bit-count format:
202
# "RejectIP 192.168.0.1/24".  The netmask may be omitted in which case
203
# a 32-bit netmask is assumed.  This is a dynamic parameter.
204

    
205
#RejectIP <IP>[/netmask]
206
#RejectIP <IP>[/netmask]
207

    
208

    
209
# Enable a special mode of operation where all Mini-SEED records
210
# received using the DataLink protocol are written to user specified
211
# directory and file structures.  See the ringserver(1) man page for
212
# more details.
213

    
214
#MSeedWrite <format>
215

    
216

    
217
# Enable a special mode of operation where files containing Mini-SEED 
218
# are scanned continuously and data records are inserted into the ring.
219
# By default all sub-directories will be recursively scanned.  Sub-options
220
# can be used to control the scanning, the StateFile sub-option is highly
221
# recommended.  Values for sub-options should not be quoted and cannot
222
# contain spaces.
223
# See the ringserver(1) man page for more details.
224

    
225
#MSeedScan <directory> [StateFile=scan.state] [Match=pattern] [Reject=pattern]
226
MSeedScan /dev/shm/indata StateFile=/home/sysop/ringserver/scan.state InitCurrentState=y