⚙️ Configuration
INFO
The configuration options can be specified using Environment Variables.
Configuration Options in Beacon
Beacon provides several configuration options that allow users to customize the behavior of the tool to their needs.
ENVIRONMENT VARIABLES
Some of the configuration options can be set using environment variables. The following environment variables can be used to set the configuration options:
BEACON_HOST- IP address to listen on. (Default is0.0.0.0)BEACON_PORT- Port number to listen on. (Default is5001)BEACON_ADMIN_USERNAME- The admin username for the beacon admin panel.BEACON_ADMIN_PASSWORD- The admin password for the beacon admin panel.BEACON_VM_MEMORY_SIZE- The amount of memory to allocate to the Beacon Virtual Machine in MB (default is 4096MB). More is better for performance, especially when working with larger datasets and performing actions such as spatial joins and group by.BEACON_ENABLE_SQL- Whether to enable the SQL query engine. Set totrueto enable. Default isfalse.BEACON_WORKER_THREADS- Number of worker threads to use (default is 8).BEACON_ST_WITHIN_POINT_CACHE_SIZE- Size of the cache for ST_WithinPoint queries (default is 10000).BEACON_DEFAULT_TABLE- The default table to use when no table is specified in thefromclause of a query.BEACON_LOG_LEVEL- Log level [DEBUG,INFO,WARNING,ERROR,CRITICAL]. Default isINFO.BEACON_S3_DATA_LAKE- Whether to enable S3 data lake support. Set totrueto enable. Default isfalseand uses local system file storage. To connect to S3-compatible object storage, the following environment variables should also be set:AWS_ACCESS_KEY_ID- S3 access_key_id. Only required when the S3-compatible object storage requires authentication.AWS_SECRET_ACCESS_KEY- S3 secret_access_key. Only required when the S3-compatible object storage requires authentication.AWS_DEFAULT_REGION- S3 optional regionAWS_ENDPOINT- S3 endpoint. This should include the full URL to the S3-compatible object storage service. If the endpoint URL does not contain the bucket name, the bucket name should be specified using theBEACON_S3_BUCKETenvironment variable.AWS_SKIP_SIGNATURE- Set totrueto skip request signing. Useful for local S3-compatible object storage that does not require signed requests.
BEACON_S3_BUCKET- The bucket name for the S3-compatible object storage. If the env variableBEACON_S3_DATA_LAKEis enabled, and theAWS_ENDPOINTdoesn't contain the bucket name, the bucket name should be specified here.BEACON_ENABLE_FS_EVENTS- Whether to enable file system events monitoring. Set totrueto enable. Uses inotify on Linux systems. Default isfalse. This is not supported when using S3 data lake.BEACON_ENABLE_SYS_INFO- Whether to expose system information. Set totrueto enable.BEACON_CORS_ALLOWED_METHODS- Comma-separated list of allowed HTTP methods for CORS (default isGET,POST,PUT,DELETE,OPTIONS).BEACON_CORS_ALLOWED_ORIGINS- Comma-separated list of allowed origins for CORS (default is*).BEACON_CORS_ALLOWED_HEADERS- Comma-separated list of allowed headers for CORS (default isContent-Type,Authorization).BEACON_CORS_ALLOWED_CREDENTIALS- Whether to allow credentials for CORS (default isfalse).BEACON_CORS_MAX_AGE- The maximum age for CORS preflight requests (default is 3600).
NetCDF
BEACON_NETCDF_USE_SCHEMA_CACHE- Whether to cache discovered NetCDF Arrow schemas in-memory (default istrue).BEACON_NETCDF_SCHEMA_CACHE_SIZE- Max number of schema entries to keep in the in-memory schema cache (default is1024).BEACON_NETCDF_USE_READER_CACHE- Whether to cache opened NetCDF readers in-memory (default istrue).BEACON_NETCDF_READER_CACHE_SIZE- Max number of reader entries to keep in the in-memory reader cache (default is128).
NetCDF multiplexer (MPIO)
BEACON_ENABLE_MULTIPLEXER_NETCDF- Enable NetCDF multiplexer mode (multi-process worker pool) (default isfalse).BEACON_NETCDF_MULTIPLEXER_PROCESSES- Number of worker processes to spawn when NetCDF multiplexer is enabled (default is half of CPU cores).BEACON_NETCDF_MPIO_WORKER- Optional path to thebeacon-arrow-netcdf-mpioexecutable (used when NetCDF MPIO is enabled).BEACON_NETCDF_MPIO_REQUEST_TIMEOUT_MS- Per-request timeout (in milliseconds) for NetCDF MPIO worker requests. Set to0to disable (default is0).