Skip to main content

Configuration

This document describes all available configuration options for the system.

Address Configuration

Network addresses for various services.

FieldTypeDefaultDescription
address.httpstring:9002HTTP listen address
address.grpcstring:9004GRPC listen address
address.debugstring:9200Debug listen address

Storage Configuration

Storage settings for data persistence.

FieldTypeDefaultDescription
storage.data_dirstring-Path to a directory where fractions will be stored
storage.frac_sizeBytes128MiBMaximum size of an active fraction before it gets sealed
storage.total_sizeBytes1GiBUpper bound of how much disk space can be occupied by sealed fractions before they get deleted (or offloaded)

Cluster Configuration

Cluster topology and replication settings.

FieldTypeDefaultDescription
cluster.write_stores[]string-Cold store instances which will be written to
cluster.read_stores[]string-Cold store instances wich will be queried from
cluster.hot_stores[]string-Store instances which will be written to and queried from
cluster.hot_read_stores[]string-Store instances which will be queried from. This field is optional but if specified will take precedence over cluster.hot_stores
cluster.replicasint1Number of instances that belong to one shard
cluster.hot_replicasint-Number if hot instances that belong to one shard. If specified will take precedence over cluster.replicas for hot stores
cluster.shuffle_replicasboolfalseWhether to shuffle replicas
cluster.mirror_addressstring-Host to which search queries will be mirrored. It can be useful if you have development cluster and you want to have same search pattern as you have on production cluster

Slow Logs Configuration

Thresholds for logging slow operations.

FieldTypeDefaultDescription
slow_logs.bulk_thresholdDuration0msDuration to determine slow bulks. When bulk request exceeds this threshold it will be logged
slow_logs.search_thresholdDuration3sDuration to determine slow searches. When search request exceeds this threshold it will be logged
slow_logs.fetch_thresholdDuration3sDuration to determine slow fetches. When fetch request exceeds this threshold it will be logged

Limits Configuration

Rate limiting and resource constraints.

General Limits

FieldTypeDefaultDescription
limits.query_ratefloat642Maximum amount of requests per second
limits.search_requestsint32Maximum amount of simultaneous requests per second
limits.bulk_requestsint32Maximum amount of simultaneous requests per second
limits.inflight_bulksint32Maximum amount of simultaneous requests per second
limits.fraction_hitsint6000Maximum amount of fractions that can be processed within single search request
limits.search_docsint100000Maximum amount of documents that can be returned within single search request
limits.doc_sizeBytes128KiBMaximum possible size for single document. Document larger than this threshold will be skipped

Aggregation Limits

FieldTypeDefaultDescription
limits.aggregation.field_tokensint1000000Maximum amount of unique field tokens that can be processed in single aggregation requests. Setting this field to 0 disables limit
limits.aggregation.group_tokensint2000Maximum amount of unique group tokens that can be processed in single aggregation requests. Setting this field to 0 disables limit
limits.aggregation.fraction_tokensint100000Maximum amount of unique tokens that are contained in single fraction which was picked up by aggregation request. Setting this field to 0 disables limit

Circuit Breaker Configuration

Circuit breaker settings for bulk operations. See CircuitBreaker documentation for more information.

FieldTypeDefaultDescription
circuit_breaker.bulk.shard_timeoutDuration10sCheckout CircuitBreaker for more information
circuit_breaker.bulk.err_percentageint50Checkout CircuitBreaker for more information
circuit_breaker.bulk.bucket_widthDuration1sCheckout CircuitBreaker for more information
circuit_breaker.bulk.buckets_countint10Checkout CircuitBreaker for more information
circuit_breaker.bulk.sleep_windowDuration5sCheckout CircuitBreaker for more information
circuit_breaker.bulk.volume_thresholdint5Checkout CircuitBreaker for more information

Resources Configuration

Resource allocation settings.

FieldTypeDefaultDescription
resources.reader_workersintruntime.GOMAXPROCSNumber of workers for readers pool. By default this setting is equal to runtime.GOMAXPROCS
resources.search_workersintruntime.GOMAXPROCSNumber of workers for searchers pool. By default this setting is equal to runtime.GOMAXPROCS
resources.cache_sizeBytes30% of available RAMMaxium size of cache. By default this setting is equal to 30% of available RAM
resources.sort_docs_cache_sizeBytes-Size of the sorted documents cache
resources.skip_fsyncboolfalseWhether to skip fsync operations

Compression Configuration

Compression level settings for various data types.

FieldTypeDefaultDescription
compression.docs_zstd_compression_levelint1Zstandard compression level for documents
compression.metas_zstd_compression_levelint1Zstandard compression level for metadata
compression.sealed_zstd_compression_levelint3Zstandard compression level for sealed fractions
compression.doc_block_zstd_compression_levelint3Zstandard compression level for document blocks

Indexing Configuration

Settings for document indexing behavior.

FieldTypeDefaultDescription
indexing.max_token_sizeint72Maximum token size
indexing.case_sensitiveboolfalseWhether indexing is case sensitive
indexing.partial_field_indexingboolfalseWhether to enable partial field indexing
indexing.past_allowed_time_driftDuration24hHow much time can elapse since the message's timestamp. If more time than this has passed since the message's timestamp, the message's timestamp gets overwritten
indexing.future_allowed_time_driftDuration5mMaximum allowable offset for a message's timestamp into the future. If a message's timestamp is further in the future than this, it is overwritten

Mapping Configuration

Field mapping configuration.

FieldTypeDefaultDescription
mapping.pathstring-Path to mapping file or 'auto' to index all fields as keywords
mapping.enable_updatesboolfalseWill periodically check mapping file and reload configuration if there is an update
mapping.update_periodDuration30sManages how often mapping file will be checked for updates

Documents Sorting Configuration

Settings for document sorting functionality.

FieldTypeDefaultDescription
docs_sorting.enabledboolfalseEnables/disables documents sorting
docs_sorting.doc_block_sizeBytes-Sets document block size. Large size consumes more RAM but improves compression ratio

Async Search Configuration

Configuration for asynchronous search operations.

FieldTypeDefaultDescription
async_search.data_dirstringsubdirectory in storage.data_dirDirectory that contains data for asynchronous searches. By default will be subdirectory in storage.data_dir
async_search.concurrencyint-Concurrency level for async searches
async_search.max_total_sizeBytes1GiB-
async_search.max_size_per_requestBytes100MiB-
async_search.max_documents_per_requestint100000-

API Configuration

API-related settings.

FieldTypeDefaultDescription
api.es_versionstring8.9.0Default version that will be returned in the / handler

Tracing Configuration

Distributed tracing settings.

FieldTypeDefaultDescription
tracing.sampling_ratefloat640.01Sampling rate for distributed tracing

Notes

  • Bytes: Size values can be specified with units like KiB, MiB, GiB (e.g., 128MiB)
  • Duration: Time values can be specified with units like ms, s, m, h (e.g., 3s, 24h)
  • Default Values: Fields without explicit defaults are required unless marked as optional
  • Arrays: Fields of type []string accept multiple values