##	Required for cluster environments
AUTOWIRE_CLUSTER_TRANSPORT=true

# Run the heartbeat job which updates the servers information in the sitelic table
HEARTBEAT_CRON_EXPRESSION=0 0/1 * * * ?

# Period of time before a dotCMS node is considered timed out and its license 
# is returned to the cluster for use by another node.  In containerized environments, where nodes 
# come in and out of a cluster and the /dotsecure folder is not persisted, this value should be 
# low, e.g. 5-10m.  In non-containerized environments, or environments where the /dotsecure folder
# is persisted across startups, this value can be raised to 30m or more.
# 
# Expressed in seconds. 10 mins by default.
HEARTBEAT_TIMEOUT=600


#########################################
##	CLUSTERED CACHE SETTINGS
#########################################

# The minimum amount of time to wait before returning the cluster results in the network tab
CLUSTER_SERVER_THREAD_SLEEP=2000


##################### ElasticSearch & Reindexing Configuration #####################

## limits the number of contents to reindex in each put request to elasticsearch 
## this number will be divided by the number of nodes in your cluster in order to 
## prevent overloading of the ES infrastructure.
REINDEX_THREAD_ELASTICSEARCH_BULK_ACTIONS=250

## single threaded puts to elasticsearch
REINDEX_THREAD_CONCURRENT_REQUESTS=1

## 10mb max put size - limits the max size of the put request to elasticsearch 
REINDEX_THREAD_ELASTICSEARCH_BULK_SIZE=10  




## Enable filters instead of regular score querys.
## This only apply for contentlet search. SiteSearch isn't affected by this value.
## Disable this if you plan to use "_score" to sort contentlets.
## Enable if you're unsure or looking for better performance.
## Usually avoiding score computation speeds up elasticsearch requests.
ELASTICSEARCH_USE_FILTERS_FOR_SEARCHING=true

##  Elasticsearch index config rule of thumb:
##  Having more *shards* enhances the _indexing_ performance and allows to
##    _distribute_ a big index across disks.   More shards on the same disk can
##    actually slow down search performance
##    Make sure your ulimit -n is set to more than 1024
es.index.number_of_shards=1



## A COMMA SEPARATED LIST OF ELASTICSEARCH HTTP/HTTPS Endpoints that dotCMS will try to connect to.
## load will be distributed across all the values in this list.  e.g.
## https://es1.dotcms.com:9200, https://es2.dotcms.com:9201, http://es3.dotcms.com:9202
ES_ENDPOINTS=http://localhost:9200


#ES_PROTOCOL=https
#ES_HOSTNAME=localhost
#ES_PORT=9200

##These settings must be changed on production environments
#ES_AUTH_TYPE can take any of the following values: BASIC or JWT.
#If ES_AUTH_TYPE=BASIC, these properties must be set ES_AUTH_BASIC_USER and ES_AUTH_BASIC_PASSWORD
#If ES_AUTH_TYPE=JWT, a valid token (ES_AUTH_JWT_TOKEN property) must be set
ES_AUTH_TYPE=BASIC
ES_AUTH_BASIC_USER=admin
ES_AUTH_BASIC_PASSWORD=admin

#Enable TLS for ES rest api layer. If ES_TLS_ENABLED=true, certificates must be specified (ES_AUTH_TLS_CLIENT_CERT, ES_AUTH_TLS_CLIENT_KEY, ES_AUTH_TLS_CA_CERT)
ES_TLS_ENABLED=false
#Path relative to assets folder
ES_AUTH_TLS_CLIENT_CERT=certs/elasticsearch.pem
ES_AUTH_TLS_CLIENT_KEY=certs/elasticsearch.key
ES_AUTH_TLS_CA_CERT=certs/root-ca.pem

#Set token in case ES_AUTH_TYPE=JWT
#ES_AUTH_JWT_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6ImFkbWluIiwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3QiLCJzdWIiOiJhZG1pbiIsImV4cCI6MTU2MjExODY1OTA0Mn0.f-t30zgA53Am3w7ueWNFpnhz_5SWiJjKaOT-rNeEp_M

##	These lines should be last to allow plugins to override values - touche pas!
## BEGIN PLUGINS
## END PLUGINS
