OKA Parameter Reference
Here are all the parameters that can be configured to customize the OKA.
They can be specified in the ${OKA_INSTALL_DIR}/conf/oka.conf file:
OKA server
SECRET_KEY:yourawesomeksecretkeyA secret key. This is used to provide cryptographic signing, and should be set to a unique, unpredictable value.ALLOWED_HOSTS:localhost,127.0.0.1A list of strings representing the host/domain names that this OKA site can serve.CSRF_TRUSTED_ORIGINS:http://instance.my.domain, https://instance.my.domainA list os strings representing the host/domain names that will be trusted when serving OKA through a proxy. See Django documentation for more info.
Databases
Elasticsearch
ELASTICSEARCH_HOSTS[INIT]:127.0.0.1:8080Elasticsearch URL
PostgreSQL
DB_NAME:ok_dbName of the PostgreSQL database for OKA.DB_USER:okaPostgreSQL username for OKA.DB_PASSWORD:okapwdPostgreSQL password for the OKA user.DB_HOST:localhostHost of PostgreSQL database.DB_PORT:5432Port PostgreSQL is listening on.
Input data
DEFAULT_FILE_PATH[INIT]:""[OPTIONAL] Absolute path to a job scheduler accounting file to load.DEFAULT_FILE_NRJ_PATH[INIT]:""[OPTIONAL] Absolute path to a directory containing powercompute_all_.*.txtfiles. These files must follow this format:node: node namewatts: node power consumption in kilowattstemp_inlet: temperature for the inlet in Celsiustemp_CPU1: temperature for the CPU1 in Celsiustemp_CPU2: temperature for the CPU2 in Celsius
DEFAULT_NODES_PATH[INIT]:""[OPTIONAL] Absolute path to a directory or a file containing nodes statistics from a job scheduler (Memory and CPU allocations). You must use one file per datetime named according to the following format:.*_YYYY-MM-DD_HH:MM:SS.txt.DEFAULT_PARTITIONS_PATH[INIT]:""[OPTIONAL] Absolute path to a directory or a file containing partitions statistics from a job scheduler (Nodes and CPUs details of each partition). You must use one file per datetime named according to the following format:.*_YYYY-MM-DD_HH:MM:SS.txt.
SMTP Email server
EMAIL_HOST:"SMTP HOST"The host used to send emails (to create a new user for example).EMAIL_PORT:"SMTP PORT "SMTP port to use.DEFAULT_FROM_EMAIL:"FROM EMAIL"Default email address to use for various automated correspondence from the OKA manager.EMAIL_HOST_USER:"SENDER EMAIL"Username to use for the SMTP server defined in EMAIL_HOST. If empty, OKA won’t attempt authentication.EMAIL_HOST_PASSWORD:"PASSWORD"Password to use for the SMTP server defined in EMAIL_HOST. This setting is used in conjunction with EMAIL_HOST_USER when authenticating to the SMTP server. If either of these settings is empty, OKA won’t attempt authentication.EMAIL_USE_TLS:TrueWhether to use a TLS (secure) connection when talking to the SMTP server.EMAIL_USE_SSL:FalseWhether to use an implicit TLS (secure) connection when talking to the SMTP server.
Licensing
LICENSE_FILE:/path/to/license/license.licAbsolute path to license file. By default it will be${OKA_INSTALL_DIR}/license/license.lic
Caching
MAIN_CACHE: [OPTIONAL] Backend and location of the main cache. Default is set on LocMemCache. See the Cache section for more details.CACHE_DURATION:86400Cache duration in seconds.
Debugging
DEBUG:True | FalseA boolean that turns on/off debug mode.
Logging
LOGGING_ROTATE:True | FalseA boolean that turns on/off logrotate settings.LOGGING_INTERVAL_TYPE:DA string value used to specify the type of interval.S: SecondsM: MinutesH: HoursD: DaysW0-W6: Weekday example: 0=Mondaymidnight: Roll over at midnight.
LOGGING_INTERVAL:1An integer to specify the value of the interval. How many times should the interval type occur prior to log rotation.LOGGING_BACKUP_COUNT:30An integer value used to determine the maximum number of log files to keep.
See Logs for more information.
Rest Api
ACCESS_TOKEN_LIFETIME:1An integer value used to determine how many days the access token lifetime will be valid.REFRESH_TOKEN_LIFETIME:30An integer value used to determine how many days the refresh token lifetime will be valid.
Tasks
CELERY_BROKER_URL:amqp://A string value used to specify the URL of the broker that will be used by Celery.
Static variables
The following variables are used during installation/update, and cannot be updated.
INSTALL_PATH: Absolute path to OKA’s installation directoryOKA_USER: User running the OKA processes
Other variables
BLOCK_ADMIN_PANEL:FalseA boolean used to block admin panel access.BLOCK_CUSTOM_DATAENHANCER:FalseA boolean used to block the use of “custom” Data Enhancer.BLOCK_CATEGORY_BUTTONS:FalseA boolean used to block the switch performance / cost / energy buttons.BLOCK_FORGOT_PASSWORD:FalseA boolean used to block the forgot password button.BLOCK_CRON_SCHEDULED_TASK:TrueA boolean used to block scheduled task from running automatically by default in cron mode when they are created.ALLOWED_JS_INGESTION_TYPE:*Comma separated values used to specify the available ingestion types options provided to the user while creating a cluster.LOCAL: Local job scheduler command executionFILE: Local reading of file(s)FORWARDED_PWD: Command execution remotely forwarded through SSH, login with a passwordFORWARDED_KEYFILE: Command execution remotely forwarded through SSH, login with an ssh key file*: Select any of the previous type when creating a cluster.