This repository has been archived by the owner on Apr 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
settings.py
698 lines (632 loc) · 23.6 KB
/
settings.py
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
# -*- coding: utf-8 -*-
"""
EIDA NG web services settings.
"""
import os
# -----------------------------------------------------------------------------
# general purpose constants
APP_ROOT = os.path.dirname(os.path.abspath(__file__))
PATH_VAR_RUN = '/var/run/'
PATH_VAR_TMP = '/var/tmp/'
PATH_LOCKDIR = '/var/lock/mediatorws/'
PATH_EIDANGWS_CONF = '/var/www/mediatorws/config/eidangws_config'
# -----------------------------------------------------------------------------
# NOTE: arclink servers/ports are from
# http://eida.gfz-potsdam.de/eida/status/master_table.php
# (last accessed 2017-08-17)
EIDA_NODES = {
'gfz': {
'name': 'Deutsches GeoForschungsZentrum Potsdam',
'services': {
'arclink': {
'server': 'eida.gfz-potsdam.de',
'port': 18002},
'fdsn': {
'server': 'http://geofon.gfz-potsdam.de',
'station': True,
'dataselect': True,
'event': False},
'eida': {
'routing': {
'service': True,
'server': 'http://geofon.gfz-potsdam.de',
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'static_file': ''},
'wfcatalog': {
'url': 'http://geofon.gfz-potsdam.de/eidaws/wfcatalog/"\
"alpha/query',
'server': 'http://geofon.gfz-potsdam.de',
'uri_path_query': "/eidaws/wfcatalog/alpha/query"}
}
},
'testquerysncls': {
'network': 'CZ',
'station': 'VRAC',
'location': '--',
'channel': 'HH?',
'startdate': '2012-06-01T00:00:00'}
},
'odc': {
'name': 'Orfeus Data Center',
'services': {
'arclink': {
# was (until 2017-09-04):
# bhlsa02.knmi.nl
'server': 'eida.orfeus-eu.org',
'port': 18002},
'fdsn': {
'server': 'http://www.orfeus-eu.org',
'station': True,
'dataselect': True,
'event': False},
'eida': {
'routing': {
'service': True,
'server': 'http://www.orfeus-eu.org',
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'static_file': ''},
'wfcatalog': {
'url': 'http://www.orfeus-eu.org/eidaws/wfcatalog/1/query',
'server': 'http://www.orfeus-eu.org',
'uri_path_query': "/eidaws/wfcatalog/1/query"}
}
},
'testquerysncls': {
'network': 'NL',
'station': 'OPLO',
'location': '01',
'channel': 'BH?',
'startdate': '2009-11-01T00:00:00'}
},
'eth': {
'name': 'Swiss Seismological Service',
'services': {
'arclink': {
'server': 'eida.ethz.ch',
'port': 18001},
'fdsn': {
'server': 'http://eida.ethz.ch',
'station': True,
'dataselect': True,
'event': True},
'eida': {
'routing': {
'service': True,
'server': 'http://eida.ethz.ch',
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'static_file': ''},
'wfcatalog': {
'url': '',
'server': 'http://eida.ethz.ch',
'uri_path_query': '/eidaws/wfcatalog/1/query'}
}
},
'testquerysncls': {
'network': 'CH',
'station': 'DAVOX',
'location': '--',
'channel': 'HH?',
'startdate': '2002-08-01T00:00:00'}
},
'resif': {
'name': u'Réseau sismologique & géodésique français',
'services': {
'arclink': {
'server': 'eida.resif.fr',
'port': 18001},
'fdsn': {
'server': 'http://ws.resif.fr',
'station': True,
'dataselect': True,
'event': False},
'eida': {
'routing': {
'service': False,
'server': 'http://ws.resif.fr',
'uri_path_config': '/eida_routing.xml',
'uri_path_config_vnet': '/eida_routing.xml',
'static_file': 'http://ws.resif.fr/eida_routing.xml'},
'wfcatalog': {
'url': 'http://ws.resif.fr/eidaws/wfcatalog/1/query',
'server': 'http://ws.resif.fr',
'uri_path_query': "/eidaws/wfcatalog/1/query"}
}
},
'testquerysncls': {
'network': 'FR',
'station': 'SJAF',
'location': '00',
'channel': 'HH?',
'startdate': '2007-02-01T00:00:00'}
},
'ingv': {
'name': 'Italian Seismic Data Center',
'services': {
'arclink': {
'server': 'eida.ingv.it',
'port': 18002},
'fdsn': {
'server': 'http://webservices.ingv.it',
'station': True,
'dataselect': True,
'event': True},
'eida': {
'routing': {
'service': True,
'server': ' http://webservices.ingv.it',
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'static_file': ''},
'wfcatalog': {
'url': 'http://catalog.data.ingv.it/wfcatalog/1/query',
'server': 'http://catalog.data.ingv.it',
'uri_path_query': "/wfcatalog/1/query"}
}
},
'testquerysncls': {
'network': 'IV',
'station': 'BOB',
'location': '--',
'channel': 'HHZ',
'startdate': '2003-08-01T00:00:00'}
},
'bgr': {
'name': 'BGR Hannover',
'services': {
'arclink': {
'server': 'eida.bgr.de',
'port': 18001},
'fdsn': {
'server': 'http://eida.bgr.de',
'station': True,
'dataselect': True,
'event': False},
'eida': {
'routing': {
'service': True,
'server': 'http://eida.bgr.de',
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'static_file': ''},
'wfcatalog': {
'url': 'http://eida.bgr.de/eidaws/wfcatalog/1/query',
'server': 'http://eida.bgr.de',
'uri_path_query': "/eidaws/wfcatalog/1/query"}
}
},
'testquerysncls': {
'network': 'GR',
'station': 'BFO',
'location': '--',
'channel': 'HH?',
'startdate': '1991-01-01T00:00:00'}
},
'lmu': {
'name': 'BayernNetz',
'services': {
'arclink': {
'server': 'erde.geophysik.uni-muenchen.de',
'port': 18001},
'fdsn': {
'server': 'http://erde.geophysik.uni-muenchen.de',
'station': True,
'dataselect': True,
'event': False},
'eida': {
'routing': {
'service': True,
'server': 'http://erde.geophysik.uni-muenchen.de',
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'static_file': ''},
'wfcatalog': {
'url': 'http://erde.geophysik.uni-muenchen.de/eidaws/"\
"wfcatalog/1/query',
'server': 'http://erde.geophysik.uni-muenchen.de',
'uri_path_query': "/eidaws/wfcatalog/1/query"}
}
},
'testquerysncls': {
'network': 'BW',
'station': 'ZUGS',
'location': '--',
'channel': 'EHZ',
'startdate': '2006-03-01T00:00:00'}
},
'niep': {
'name': 'National Institute for Earth Physics Romania',
'services': {
'arclink': {
'server': 'eida-sc3.infp.ro',
'port': 18001},
'fdsn': {
'server': 'http://eida-sc3.infp.ro',
'station': True,
'dataselect': True,
'event': True},
'eida': {
'routing': {
'service': False,
# 'server': 'http://eida-sc3.infp.ro',
# 'uri_path_config': '/eidaws/routing/1/localconfig',
# 'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'server': 'http://eida-routing.infp.ro/',
'uri_path_config': '/eidaws/routing/1/routing.xml',
'uri_path_config_vnet': '/eidaws/routing/1/routing.xml',
'static_file': ''},
'wfcatalog': {
'url': '',
'server': '',
'uri_path_query': ''}
}
},
'testquerysncls': {
'network': 'RO',
'station': 'MLR',
'location': '--',
'channel': 'HH?',
'startdate': '2001-04-01T00:00:00'}
},
'koeri': {
'name': 'Bogazici University Kandilli Observatory and ERI',
'services': {
'arclink': {
'server': 'eida-service.koeri.boun.edu.tr',
'port': 18001},
'fdsn': {
'server': 'http://eida-service.koeri.boun.edu.tr',
'station': True,
'dataselect': True,
'event': False},
'eida': {
'routing': {
'service': True,
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'server': 'http://eida.koeri.boun.edu.tr',
'static_file': ''},
'wfcatalog': {
'url': '',
'server': '',
'uri_path_query': ''}
}
},
'testquerysncls': {
'network': 'KO',
'station': 'ELL',
'location': '--',
'channel': 'BH?',
'startdate': '2006-10-01T00:00:00'}
},
'noa': {
'name': 'National Observatory of Athens, Institute of Geodynamics',
'services': {
'arclink': {
'server': 'eida.gein.noa.gr',
'port': 18001},
'fdsn': {
'server': 'http://eida.gein.noa.gr',
'station': True,
'dataselect': True,
'event': False},
'eida': {
'routing': {
'service': True,
'server': 'http://eida.gein.noa.gr',
'uri_path_config': '/eidaws/routing/1/localconfig',
'uri_path_config_vnet': '/eidaws/routing/1/localconfig',
'static_file': ''},
'wfcatalog': {
'url': 'http://eida.gein.noa.gr/eidaws/wfcatalog/1/query',
'server': 'http://eida.gein.noa.gr',
'uri_path_query': '/eidaws/wfcatalog/1/query'}
}
},
'testquerysncls': {
'network': 'HL',
'station': 'IDI',
'location': '--',
'channel': 'HH?',
'startdate': '2011-01-01T00:00:00'}
},
'uib': {
'name': 'University of Bergen',
'services': {
'eida': {
'routing': {
'service': True,
'server': 'http://eida.geo.uib.no/',
'uri_path_config': 'eidaws/routing.xml',
'uri_path_config_vnet': 'eidaws/routing.xml',
'static_file': ''}
}
}
}
}
OTHER_SERVERS = {
'iris': {
'name': 'IRIS Data Management Center',
'services': {
# is there an IRIS arclink server?
'fdsn': {
'server': 'http://service.iris.edu',
'station': True,
'dataselect': True,
'event': True}
},
# HHZ, HH1, HH2 (100 sps) ??
'testquerysncls': {
'network': 'IU',
'station': 'ULN',
'location': '10',
'channel': 'BH?',
'startdate': '2013-10-01T00:00:00'}
},
# service.ncedc.org
'ncedc': {
'name': 'Northern California Earthquake Data Center',
'services': {
'fdsn': {
'server': 'http://service.ncedc.org',
'station': True,
'dataselect': True,
'event': True}
},
# ????
'testquerysncls': {
'network': 'BK',
'station': 'VAK',
'location': '00',
'channel': 'BH?',
'startdate': '2010-09-01T00:00:00'}
},
# scedc.caltech.edu/
# disabled, because it seems to have strict surge protection, and does not
# provide POST
# 'scedc': {
# 'name': 'SCEDC',
# 'services': {
# 'fdsn': {
# 'server': 'http://service.scedc.caltech.edu',
# 'station': True,
# 'dataselect': True,
# 'event': True}
# },
# 'testquerysncls': {
# 'network': 'CI',
# 'station': 'CJM',
# 'location': '--',
# 'channel': 'HH?',
# 'startdate': '2011-11-01T00:00:00'}
# },
# www.moho.iag.usp.br
'usp': {
'name': u'Centro de Sismologia da Universidade de São Paulo',
'services': {
'arclink': {
'server': 'seisrequest.iag.usp.br',
'port': 18001},
'fdsn': {
'server': 'http://seisrequest.iag.usp.br',
'station': True,
'dataselect': True,
'event': False}
},
'testquerysncls': {
'network': 'BR',
'station': 'SALV',
'location': '--',
'channel': 'HH?',
'startdate': '2012-06-01T00:00:00'}
}
}
FDSN_EVENT_SERVICES = {
'eth': {
'server': 'http://arclink.ethz.ch',
'arrivals': True},
'ingv': {
'server': 'http://webservices.rm.ingv.it',
'arrivals': False},
'niep': {
'server': 'http://eida-sc3.infp.ro',
'arrivals': True},
'iris': {
'server': 'http://service.iris.edu',
'arrivals': False},
'usgs': {
'server': 'https://earthquake.usgs.gov',
'arrivals': False},
'ncedc': {
'server': 'http://service.ncedc.org',
'arrivals': True},
'scedc': {
'server': 'http://service.scedc.caltech.edu',
'arrivals': True},
'isc': {
'server': 'http://www.isc.ac.uk',
'arrivals': True}
}
# -----------------------------------------------------------------------------
# FDSN webservice specific configuration
FDSN_QUERY_METHOD_TOKEN = 'query'
FDSN_QUERYAUTH_METHOD_TOKEN = 'queryauth'
FDSN_VERSION_METHOD_TOKEN = 'version'
FDSN_WADL_METHOD_TOKEN = 'application.wadl'
FDSN_DATASELECT_VERSION = '1.1.0'
FDSN_STATION_VERSION = '1.1.0'
FDSNWS_QUERY_VALUE_SEPARATOR_CHAR = '='
FDSNWS_QUERY_LIST_SEPARATOR_CHAR = ','
FDSNWS_QUERY_WILDCARD_MULT_CHAR = '*'
FDSNWS_QUERY_WILDCARD_SINGLE_CHAR = '?'
FDSN_STATION_PATH = '/fdsnws/station/1/'
FDSN_DATASELECT_PATH = '/fdsnws/dataselect/1/'
FDSN_EVENT_PATH = '/fdsnws/event/1/'
FDSN_WADL_DIR = 'share'
FDSN_DATASELECT_WADL_FILENAME = 'dataselect.wadl'
FDSN_STATION_WADL_FILENAME = 'station.wadl'
FDSN_DEFAULT_NO_CONTENT_ERROR_CODE = 204
FDSN_NO_CONTENT_CODES = (FDSN_DEFAULT_NO_CONTENT_ERROR_CODE, 404)
FDSN_SERVICE_DOCUMENTATION_URI = 'http://www.fdsn.org/webservices/'
# -----------------------------------------------------------------------------
# EIDA webservice specific configuration
EIDA_WFCATALOG_VERSION = '1.0.0'
EIDA_WFCATALOG_PATH = '/eidaws/wfcatalog/1/'
EIDA_WFCATALOG_WADL_FILENAME = 'wfcatalog.wadl'
EIDA_ROUTING_PATH = '/eidaws/routing/1/'
# -----------------------------------------------------------------------------
# EIDA NG webservice specific
MIMETYPE_MSEED = 'application/vnd.fdsn.mseed'
MIMETYPE_TEXT = 'text/plain'
MIMETYPE_JSON = 'application/json'
MIMETYPE_XML = 'application/xml'
DATASELECT_MIMETYPE = MIMETYPE_MSEED
STATION_MIMETYPE_XML = MIMETYPE_XML
STATION_MIMETYPE_TEXT = MIMETYPE_TEXT
WFCATALOG_MIMETYPE = MIMETYPE_JSON
VERSION_MIMETYPE = MIMETYPE_TEXT
WADL_MIMETYPE = MIMETYPE_XML
ERROR_MIMETYPE = MIMETYPE_TEXT
CHARSET_TEXT = 'charset=utf-8'
STATIONXML_NAMESPACES = (
'{http://www.fdsn.org/xml/station/1}', )
STATIONXML_ELEMENT_NETWORK = 'Network'
STATIONXML_ELEMENT_STATION = 'Station'
STATIONXML_ELEMENT_CHANNEL = 'Channel'
# max bytes allowed for post requests
MAX_POST_CONTENT_LENGTH = 1024 * 1024
# -----------------------------------------------------------------------------
# Federator configuration parameters
EIDA_FEDERATOR_CONFIG_SECTION = 'CONFIG_FEDERATOR'
EIDA_FEDERATOR_SERVICE_ID = 'federator'
# default port configuration for flask test wsgi federator instance
EIDA_FEDERATOR_DEFAULT_SERVER_PORT = 5000
# default StationLite service URL
EIDA_FEDERATOR_DEFAULT_ROUTING_URL = \
'http://localhost/eidaws/routing/1/'
# default storage (Redis) URL
EIDA_FEDERATOR_DEFAULT_STORAGE_URL = \
'redis://localhost:6379/0'
# default federator endpoint resources
EIDA_FEDERATOR_DEFAULT_RESOURCES = (
'fdsnws-dataselect', 'fdsnws-station', 'eidaws-wfcatalog')
# timeout the federator is waiting before the first endpoint request must be
# answered. Note, when deploying with Apache2 and mod_wsgi: The timeout should
# be less than the socket-timeout configured of the mod_wsgi WSGIDeamonProcess
# in order to avoid Gateway errors.
EIDA_FEDERATOR_STREAMING_TIMEOUT = 895
# timeout (federator) for endpoint requests. Should be <
# EIDA_FEDERATOR_STREAMING_TIMEOUT
EIDA_FEDERATOR_ENDPOINT_TIMEOUT = 540
# timeout in seconds allowing processors a graceful shutdown
EIDA_FEDERATOR_SHUTDOWN_TIMEOUT = 30
# number of federator-dataselect download threads
EIDA_FEDERATOR_THREADS_DATASELECT = 10
# number of federator-station-xml download threads
EIDA_FEDERATOR_THREADS_STATION_XML = 5
# number of federator-station-text download threads
EIDA_FEDERATOR_THREADS_STATION_TEXT = 10
# number of federator-WFCatalog download threads
EIDA_FEDERATOR_THREADS_WFCATALOG = 10
# default HTTP request method when issuing requests to endpoint datacenters
EIDA_FEDERATOR_DEFAULT_HTTP_METHOD = 'POST'
# default netloc prefixed to all URLs (used for routing service)
EIDA_FEDERATOR_DEFAULT_NETLOC_PROXY = None
# default maximum stream epoch days per single stream epoch before raising HTTP
# code 413
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS = None
# default maximum total stream epoch days before raising HTTP code 413
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS_TOTAL = None
EIDA_FEDERATOR_RESOURCE_CONFIG = {
"fdsnws-dataselect": {
'num_threads': EIDA_FEDERATOR_THREADS_DATASELECT,
'request_strategy': 'granular',
'request_method': EIDA_FEDERATOR_DEFAULT_HTTP_METHOD,
'proxy_netloc': EIDA_FEDERATOR_DEFAULT_NETLOC_PROXY,
'max_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS,
'max_total_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS_TOTAL,
},
"fdsnws-station-xml": {
'num_threads': EIDA_FEDERATOR_THREADS_STATION_XML,
'request_strategy': 'adaptive-bulk',
'request_method': EIDA_FEDERATOR_DEFAULT_HTTP_METHOD,
'proxy_netloc': EIDA_FEDERATOR_DEFAULT_NETLOC_PROXY,
'max_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS,
'max_total_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS_TOTAL,
},
"fdsnws-station-text": {
'num_threads': EIDA_FEDERATOR_THREADS_STATION_TEXT,
'request_strategy': 'bulk',
'request_method': EIDA_FEDERATOR_DEFAULT_HTTP_METHOD,
'proxy_netloc': EIDA_FEDERATOR_DEFAULT_NETLOC_PROXY,
'max_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS,
'max_total_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS_TOTAL,
},
"eidaws-wfcatalog": {
'num_threads': EIDA_FEDERATOR_THREADS_WFCATALOG,
'request_strategy': 'granular',
'request_method': EIDA_FEDERATOR_DEFAULT_HTTP_METHOD,
'proxy_netloc': EIDA_FEDERATOR_DEFAULT_NETLOC_PROXY,
'max_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS,
'max_total_stream_epoch_duration':
EIDA_FEDERATOR_DEFAULT_MAX_STREAM_EPOCH_DAYS_TOTAL,
}
}
EIDA_FEDERATOR_CACHE_CONFIG = {
'CACHE_TYPE': 'null',
'CACHE_KWARGS': {},
}
EIDA_FEDERATOR_REQUEST_STRATEGIES = (
'granular',
'bulk',
'adaptive-bulk',
'combining')
EIDA_FEDERATOR_REQUEST_METHODS = ('POST', 'GET')
# Per client retry-budget cut-off error ratio in percent
EIDA_FEDERATOR_DEFAULT_RETRY_BUDGET_CLIENT = 1.0
# default TTL of response codes used for stats
EIDA_FEDERATOR_DEFAULT_RETRY_BUDGET_CLIENT_TTL = 1800
# default rolling window size with respect to response code time series
EIDA_FEDERATOR_DEFAULT_RETRY_BUDGET_CLIENT_WSIZE = 4096
EIDA_FEDERATOR_SHARE_DIR = FDSN_WADL_DIR
EIDA_FEDERATOR_APP_SHARE = os.path.join(APP_ROOT, EIDA_FEDERATOR_SERVICE_ID,
EIDA_FEDERATOR_SHARE_DIR)
# -----------------------------------------------------------------------------
# StationLite configuration parameters
EIDA_STATIONLITE_CONFIG_SECTION = 'CONFIG_STATIONLITE'
EIDA_STATIONLITE_SERVICE_ID = 'stationlite'
# default port configuration for flask test wsgi stationlite instance
EIDA_STATIONLITE_DEFAULT_SERVER_PORT = 5002
EIDA_STATIONLITE_SHARE_DIR = FDSN_WADL_DIR
EIDA_STATIONLITE_APP_SHARE = os.path.join(APP_ROOT,
EIDA_STATIONLITE_SERVICE_ID,
EIDA_STATIONLITE_SHARE_DIR)
EIDA_ROUTING_WADL_FILENAME = 'routing.wadl'
# ----
EIDA_STATIONLITE_HARVEST_CONFIG_SECTION = 'CONFIG_STATIONLITE_HARVEST'
EIDA_STATIONLITE_HARVEST_PATH_PIDFILE = \
os.path.join(PATH_VAR_TMP, 'eida-stationlite-harvesting.pid')
EIDA_STATIONLITE_HARVEST_SERVICES = ('station', 'dataselect', 'wfcatalog')
# -----------------------------------------------------------------------------
# Mediator related
DEFAULT_ROUTING_SERVICE = 'gfz'
DEFAULT_EVENT_SERVICE = 'usgs'
SERVER_NAME_MEDIATOR = 'EIDA Mediator (alpha)'
EIDA_MEDIATOR_PATH = '/eidaws/mediator/'
EIDA_MEDIATOR_DQ_PATH = '/eidaws/mediator/dq/'
EIDA_MEDIATOR_RQ_PATH = '/eidaws/mediator/rq/'
EIDA_MEDIATOR_AQ_PATH = '/eidaws/mediator/aq/'
MEDIATOR_QUERY_METHOD_TOKEN = 'query'
MEDIATOR_VERSION_METHOD_TOKEN = 'version'
EIDA_FEDERATOR_BASE_URL = 'http://mediator-devel.ethz.ch'
EIDA_FEDERATOR_PORT = 80
EIDA_FEDERATOR_SERVICES = ('dataselect', 'station')