Parameters

Runtime parameters for crystalline are defined via environmeent variables. The following table lists the available parameters and their default values:

ParameterDefaultDescription
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_IP0.0.0.0IP address to bind the HTTP server to
CRYSTALLINE_HTTP_PORT8080Port number to bind the HTTP server to
CRYSTALLINE_BATCH_SIZE500Number of documents to process in a single batch
CRYSTALLINE_SCALE_FACTORNumber of available CPUsScaling factor for parallel processing
CRYSTALLINE_PARALLEL_BUCKET_READERS2Number of buckets that can be online for reading at the same time
CRYSTALLINE_PARALLEL_BUCKET_WRITERS2Number of buckets that can be online for writing at the same time
CRYSTALLINE_WRITER_WORKER_MEM16The amount of memory (in MB) to use per bucket writer worker thread.
CRYSTALLINE_WRITER_WORKER_THREADS2Number of threads a currently writing bucket can use for parallel processing.
CRYSTALLINE_IDLE_READER_TIMEOUT10(Not currently used) Timeout in seconds after which an idle bucket readeris closed.
CRYSTALLINE_IDLE_WRITER_TIMEOUT5Timeout in seconds after which an idle bucket writer is closed.
CRYSTALLINE_COMMIT_INTERVAL5Time in seconds before forcing bucket writers to commit their changes to disk.
CRYSTALLINE_SEARCH_JOB_TTL7200 (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_CONFIGNot SetOptionally set this to the path of a bootstrap JSON file to initialise the application configuration