blob: 644f0fe23611807e36a66ab498d191449caebeae [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF 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.
# scheduler class for distributing the topology for execution
heron.class.scheduler: org.apache.heron.scheduler.nomad.NomadScheduler
# launcher class for submitting and launching the topology
heron.class.launcher: org.apache.heron.scheduler.nomad.NomadLauncher
# working directory for the topologies
heron.scheduler.local.working.directory: ${HOME}/.herondata/topologies/${CLUSTER}/${ROLE}/${TOPOLOGY_ID}
# location of java - pick it up from shell environment
heron.directory.sandbox.java.home: $JAVA_HOME
# The URI of Nomad API
heron.nomad.scheduler.uri: http://127.0.0.1:4646
#Invoke the IScheduler as a library directly
heron.scheduler.is.service: False
# The nomad schedules CPU resources in terms of clock frequency (e.g. MHz), while Heron topologies
# specify CPU requests in term of cores. This config maps core to clock freqency.
heron.nomad.core.freq.mapping: 2000
# specify whether to run heron via raw java execs or in docker containers
# options: docker or raw_exec
heron.nomad.driver: "docker"
# The docker image to use for heron if the docker driver is used,
heron.executor.docker.image: 'apache/heron:latest'
# Set networking mode networking when driver is docker
heron.nomad.network.mode: "default"
# whether to register metrics service endpoints for prometheus metrics sink in consul
# the service will be named in the format: metrics-heron-<topology-name>-<container-index>
heron.nomad.metrics.service.register: True
# interval at which health checks should be conducted for metrics service endpoint
heron.nomad.metrics.service.check.interval.sec: 10
# timeout of metrics service endpoint health check
heron.nomad.metrics.service.check.timeout.sec: 2
# additional tags to be attached to metrics service
# A tag of <topology-name>-<container-index> with be automatically attached
heron.nomad.metrics.service.additional.tags: "prometheus,metrics,heron"