Parameters
Runtime parameters for crystalline are defined via environmeent variables. The following table lists the available parameters and their default values:
Parameter | Default | Description |
---|---|---|
CRYSTALLINE_DB_DIR | /config (container)/etc/crystalline (host) | Directory containing the configuration database |
CRYSTALLINE_DATA_DIR | /data (container)/var/lib/crystalline/data (host) | Directory containing stored data and index contents |
CRYSTALLINE_CACHE_DIR | /cache (container)/var/lib/crystalline/cache (host) | Directory containing the cache files. |
CRYSTALLINE_HTTP_IP | 0.0.0.0 | IP address to bind the HTTP server to |
CRYSTALLINE_HTTP_PORT | 8080 | Port number to bind the HTTP server to |
CRYSTALLINE_BATCH_SIZE | 500 | Number of documents to process in a single batch |
CRYSTALLINE_SCALE_FACTOR | Number of available CPUs | Scaling factor for parallel processing |
CRYSTALLINE_PARALLEL_BUCKET_READERS | 2 | Number of buckets that can be online for reading at the same time |
CRYSTALLINE_PARALLEL_BUCKET_WRITERS | 2 | Number of buckets that can be online for writing at the same time |
CRYSTALLINE_WRITER_WORKER_MEM | 16 | The amount of memory (in MB) to use per bucket writer worker thread. |
CRYSTALLINE_WRITER_WORKER_THREADS | 2 | Number of threads a currently writing bucket can use for parallel processing. |
CRYSTALLINE_IDLE_READER_TIMEOUT | 10 | (Not currently used) Timeout in seconds after which an idle bucket readeris closed. |
CRYSTALLINE_IDLE_WRITER_TIMEOUT | 5 | Timeout in seconds after which an idle bucket writer is closed. |
CRYSTALLINE_COMMIT_INTERVAL | 5 | Time in seconds before forcing bucket writers to commit their changes to disk. |
CRYSTALLINE_SEARCH_JOB_TTL | 7200 (2 hours) | Time in seconds after which a search job is considered expired and will be have its results deleted from the cache. |
CRYSTALLINE_BOOTSTRAP_CONFIG | Not Set | Optionally set this to the path of a bootstrap JSON file to initialise the application configuration |