Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
80 lines (75 loc) · 3.29 KB
/
Copy path.env.example
File metadata and controls
80 lines (75 loc) · 3.29 KB
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
# UDAV Environment Configuration Example
# Copy this file to .env and modify values as needed
# ============================================
# Database Configuration
# ============================================
DB_URL=jdbc:postgresql://postgres:5432/udav
DB_USER=postgres
DB_PASS=postgres
POSTGRES_DB=udav
DB_SCHEMA=public
DB_DIALECT=POSTGRES
# Batch size for database inserts (default: 10000)
# Higher = fewer DB roundtrips, more memory. Range: 1000-15000
DB_BATCH_SIZE=10000
# Max identifier length (PostgreSQL: 63, MySQL: 64, MSSQL: 128)
DB_MAX_IDENT=63
# ============================================
# DUUI Importer Configuration
# ============================================
# Enable/disable DUUI importer
DUUI_IMPORTER=false
# Host folder with the XMI/GZ files, absolute or relative to this file (mounted into the container)
DUUI_IMPORTER_PATH=./data/input
# File extension: .xmi (uncompressed) or .gz (gzip compressed)
DUUI_IMPORTER_FILE_ENDING=.gz
# Number of parallel workers (default: 4, rule: 1 per CPU core)
DUUI_IMPORTER_WORKERS=4
# UIMA CAS pool size (default: 12)
DUUI_IMPORTER_CAS_POOL_SIZE=12
# Number of DB writer workers
DUUI_IMPORTER_DB_WORKERS=4
# Reader batch size (number of documents read per batch)
DUUI_IMPORTER_READER_BATCH_SIZE=8
# Prepare DB schema on startup
DUUI_IMPORTER_PREPARE_DB_SCHEMA=true
# Store covered text of annotations
DUUI_IMPORTER_STORE_COVERED_TEXT=false
# TypeSystem XML file on the host, mounted into the container at /app/data/types. The importer
# requires a file here when it is enabled; the default is an empty folder, so point this at your
# type system before setting DUUI_IMPORTER=true (see README).
DUUI_IMPORTER_TYPE_SYSTEM_PATH=./data/types
# ============================================
# Pipeline Configuration
# ============================================
# Import pipeline definitions at startup. The image ships the demo and evaluation pipelines in
# /app/pipelines and their JSON sources in /app/sourcefilesJSON; mount your own folders and point
# these at them to import something else.
PIPELINE_IMPORTER=true
PIPELINE_IMPORTER_FOLDER=/app/pipelines
PIPELINE_IMPORTER_REPLACE_IF_DIFFERENT=false
JSON_IMPORTER_FOLDER=/app/sourcefilesJSON
# ============================================
# Batch Export API (headless browser)
# ============================================
# The Docker image ships Chromium; only override this for a custom browser binary.
BROWSER_EXECUTABLE_PATH=/usr/lib/chromium/chromium
# Chromium's sandbox needs unprivileged user namespaces, which Docker's default seccomp
# profile blocks; true is required in the default container (security trade-off, see README).
EXPORT_NO_SANDBOX=true
# Widgets exported in parallel within one page / browsers kept alive for reuse
EXPORT_CONCURRENCY=4
EXPORT_POOL_MAX_SESSIONS=2
# Per-request measurements (log block + X-UDAV-Export-Metrics header); the evaluation harness needs them
EXPORT_METRICS=false
# ============================================
# Memory
# ============================================
# The defaults start on a laptop. For importing large corpora raise the heap and give Postgres
# more memory; the corpus import server ran with the commented values.
JAVA_OPTS="-Xmx4G -Xms1024m"
#JAVA_OPTS="-Xmx10G -Xms1024m"
#PG_SHARED_BUFFERS=8GB
#PG_MAINTENANCE_WORK_MEM=2GB
#PG_EFFECTIVE_CACHE_SIZE=24GB
#PG_MAX_WAL_SIZE=8GB