blob: 59ed8158543b73e5e04f1e668085d0706e421a88 [file] [log] [blame]
Varun Gudisenaca63da62017-08-30 16:00:10 -05001###############################################################################
2# ============LICENSE_START=======================================================
3# org.onap.dmaap
4# ================================================================================
5# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6# ================================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# ============LICENSE_END=========================================================
18#
19# ECOMP is a trademark and service mark of AT&T Intellectual Property.
20#
21###############################################################################
22###############################################################################
23##
24## Cambria API Server config
25##
26## - Default values are shown as commented settings.
27##
28
29
30###############################################################################
31##
32## HTTP service
33##
34## - 3904 is standard as of 7/29/14.
35## - At this time, Cambria always binds to 0.0.0.0
36##
37cambria.service.port=${CAMBRIA_SERVICE_PORT}
38
39###############################################################################
40##
41## Broker Type
42##
43## The Cambria server can run either as a memory-only implementation, meant
44## for testing, or against Kafka. For a memory-only server, use "memory" for
45## the broker.type setting.
46##
47broker.type=${CAMBRIA_BROKER_TYPE}
48
49###############################################################################
50##
51## Zookeeper Connection
52##
53## Both Cambria and Kafka make use of Zookeeper.
54#
55config.zk.servers=${CAMBRIA_ZOOKEEPER_NODES}
56config.zk.root=/fe3c/cambria/config
57
58
59###############################################################################
60##
61## Kafka Connection
62##
63## Items below are passed through to Kafka's producer and consumer
64## configurations (after removing "kafka.")
65##
66kafka.metadata.broker.list=${KAFKA_BROKER_LIST}
67kafka.client.zookeeper=${CAMBRIA_ZOOKEEPER_NODES}
68
69###############################################################################
70##
71## Secured Config
72##
73## Some data stored in the config system is sensitive -- API keys and secrets,
74## for example. to protect it, we use an encryption layer for this section
75## of the config.
76##
77## The key is a base64 encode AES key. This must be created/configured for
78## each installation.
79#cambria.secureConfig.key=
80##
81## The initialization vector is a 16 byte value specific to the secured store.
82## This must be created/configured for each installation.
83#cambria.secureConfig.iv=
84
85###############################################################################
86##
87## Consumer Caching
88##
89## Kafka expects live connections from the consumer to the broker, which
90## obviously doesn't work over connectionless HTTP requests. The Cambria
91## server proxies HTTP requests into Kafka consumer sessions that are kept
92## around for later re-use. Not doing so is costly for setup per request,
93## which would substantially impact a high volume consumer's performance.
94##
95## This complicates Cambria server failover, because we often need server
96## A to close its connection before server B brings up the replacement.
97##
98
99## The consumer cache is normally enabled.
100cambria.consumer.cache.enabled=true
101
102## Cached consumers are cleaned up after a period of disuse. The server inspects
103## consumers every sweepFreqSeconds and will clean up any connections that are
104## dormant for touchFreqMs.
105cambria.consumer.cache.sweepFreqSeconds=15
106cambria.consumer.cache.touchFreqMs=120000
107
108## The cache is managed through ZK. The default value for the ZK connection
109## string is the same as config.zk.servers.
110cambria.consumer.cache.zkConnect=${CAMBRIA_ZOOKEEPER_NODES}
111
112##
113## Shared cache information is associated with this node's name. The default
114## name is the hostname plus the HTTP service port this host runs on. (The
115## hostname is determined via InetAddress.getLocalHost ().getCanonicalHostName(),
116## which is not always adequate.) You can set this value explicitly here.
117##
118#cambria.api.node.identifier=<use-something-unique-to-this-instance>
119
120###############################################################################
121##
122## Metrics Reporting
123##
124## This server can report its metrics periodically on a topic.
125##
126metrics.send.cambria.enabled=true
127metrics.send.cambria.baseUrl=localhost:${CAMBRIA_SERVICE_PORT}
128metrics.send.cambria.topic=cambria.apinode.metrics
129metrics.send.cambria.sendEverySeconds=60
130