#
#  Copyright 2005-2014 Red Hat, Inc.
#
#  Red Hat licenses this file to you under the Apache License, version
#  2.0 (the "License"); you may not use this file except in compliance
#  with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
#  implied.  See the License for the specific language governing
#  permissions and limitations under the License.
#

# By default, all nodes contain data
node.data = true

# Use the known IP as the host
network.host = ${container:ip}

# Enable JMX for Elasticsearch
jmx.domain = org.elasticsearch
jmx.export = true

# Enable HTTP
http.enabled = true

# Use fabric discovery
discovery.type=org.elasticsearch.discovery.fabric.FabricDiscoveryModule
discovery.zookeeper.node=/fabric/registry/clusters/elasticsearch

# Thread pools
threadpool.cached.scheduled_size = 6

#
# Initial delay before the first indices management run.
#
insight.indices.management.initial = 1h
#
# Interval between two management run.
#
insight.indices.management.interval = 8h

#
# Number of indices to keep opened (one index per day, so one week by default).
# Older indices will be eventually stored and then closed or deleted.
#  -1: unlimited
#
insight.indices.management.opened = 7

#
# Number of indices to close and keep in ES.
# Older indices will be eventually stored and then deleted from ES.
#  -1: unlimited
#   0: do not close indices
#
insight.indices.management.closed = -1

#
# Number of repositories to store and keep in the repository.
# The indices will be stored in the repositories defined below.
#  -1: unlimited
#   0: do not store indices
#
insight.indices.management.stored = 0

#
# Local file system repository.
# Only the elasticsearch master will store indices, but in order to keep
# the location stable, it may be preferable to point to a networked storage
# instead of the local file system.
#
insight.indices.management.repository.local.type = fs
insight.indices.management.repository.local.settings.location = ${karaf.data}/insight-backup
