Jerome Doucerain | d18576b | 2018-03-17 14:21:42 -0400 | [diff] [blame^] | 1 | ############################################################################### |
| 2 | ## |
| 3 | ## Cambria API Server config |
| 4 | ## |
| 5 | ## - Default values are shown as commented settings. |
| 6 | ## |
| 7 | |
| 8 | ############################################################################### |
| 9 | ## |
| 10 | ## HTTP service |
| 11 | ## |
| 12 | ## - 3904 is standard as of 7/29/14. |
| 13 | # |
| 14 | ## Zookeeper Connection |
| 15 | ## |
| 16 | ## Both Cambria and Kafka make use of Zookeeper. |
| 17 | ## |
| 18 | # config.zk.servers=zookeeper.namespace-placeholder:2181 |
| 19 | config.zk.servers=zookeeper:2181 |
| 20 | #config.zk.servers=172.17.0.1:2181 |
| 21 | #dmaap.namespace-placeholder:2181 |
| 22 | #10.208.128.229:2181 |
| 23 | #config.zk.root=/fe3c/cambria/config |
| 24 | |
| 25 | |
| 26 | ############################################################################### |
| 27 | ## |
| 28 | ## Kafka Connection |
| 29 | ## |
| 30 | ## Items below are passed through to Kafka's producer and consumer |
| 31 | ## configurations (after removing "kafka.") |
| 32 | ## if you want to change request.required.acks it can take this one value |
| 33 | #kafka.metadata.broker.list=localhost:9092,localhost:9093 |
| 34 | kafka.metadata.broker.list=global-kafka:9092 |
| 35 | #kafka.metadata.broker.list=172.17.0.1:9092 |
| 36 | #dmaap.namespace-placeholder:9092 |
| 37 | #10.208.128.229:9092 |
| 38 | ##kafka.request.required.acks=-1 |
| 39 | #kafka.client.zookeeper=${config.zk.servers} |
| 40 | consumer.timeout.ms=100 |
| 41 | zookeeper.connection.timeout.ms=6000 |
| 42 | zookeeper.session.timeout.ms=6000 |
| 43 | zookeeper.sync.time.ms=2000 |
| 44 | auto.commit.interval.ms=1000 |
| 45 | fetch.message.max.bytes =1000000 |
| 46 | auto.commit.enable=false |
| 47 | |
| 48 | |
| 49 | ############################################################################### |
| 50 | ## |
| 51 | ## Secured Config |
| 52 | ## |
| 53 | ## Some data stored in the config system is sensitive -- API keys and secrets, |
| 54 | ## for example. to protect it, we use an encryption layer for this section |
| 55 | ## of the config. |
| 56 | ## |
| 57 | ## The key is a base64 encode AES key. This must be created/configured for |
| 58 | ## each installation. |
| 59 | #cambria.secureConfig.key= |
| 60 | ## |
| 61 | ## The initialization vector is a 16 byte value specific to the secured store. |
| 62 | ## This must be created/configured for each installation. |
| 63 | #cambria.secureConfig.iv= |
| 64 | |
| 65 | ## Southfield Sandbox |
| 66 | cambria.secureConfig.key=b/7ouTn9FfEw2PQwL0ov/Q== |
| 67 | cambria.secureConfig.iv=wR9xP5k5vbz/xD0LmtqQLw== |
| 68 | authentication.adminSecret=fe3cCompound |
| 69 | #cambria.secureConfig.key[pc569h]=YT3XPyxEmKCTLI2NK+Sjbw== |
| 70 | #cambria.secureConfig.iv[pc569h]=rMm2jhR3yVnU+u2V9Ugu3Q== |
| 71 | |
| 72 | |
| 73 | ############################################################################### |
| 74 | ## |
| 75 | ## Consumer Caching |
| 76 | ## |
| 77 | ## Kafka expects live connections from the consumer to the broker, which |
| 78 | ## obviously doesn't work over connectionless HTTP requests. The Cambria |
| 79 | ## server proxies HTTP requests into Kafka consumer sessions that are kept |
| 80 | ## around for later re-use. Not doing so is costly for setup per request, |
| 81 | ## which would substantially impact a high volume consumer's performance. |
| 82 | ## |
| 83 | ## This complicates Cambria server failover, because we often need server |
| 84 | ## A to close its connection before server B brings up the replacement. |
| 85 | ## |
| 86 | |
| 87 | ## The consumer cache is normally enabled. |
| 88 | #cambria.consumer.cache.enabled=true |
| 89 | |
| 90 | ## Cached consumers are cleaned up after a period of disuse. The server inspects |
| 91 | ## consumers every sweepFreqSeconds and will clean up any connections that are |
| 92 | ## dormant for touchFreqMs. |
| 93 | #cambria.consumer.cache.sweepFreqSeconds=15 |
| 94 | #cambria.consumer.cache.touchFreqMs=120000 |
| 95 | |
| 96 | ## The cache is managed through ZK. The default value for the ZK connection |
| 97 | ## string is the same as config.zk.servers. |
| 98 | #cambria.consumer.cache.zkConnect=${config.zk.servers} |
| 99 | |
| 100 | ## |
| 101 | ## Shared cache information is associated with this node's name. The default |
| 102 | ## name is the hostname plus the HTTP service port this host runs on. (The |
| 103 | ## hostname is determined via InetAddress.getLocalHost ().getCanonicalHostName(), |
| 104 | ## which is not always adequate.) You can set this value explicitly here. |
| 105 | ## |
| 106 | #cambria.api.node.identifier=<use-something-unique-to-this-instance> |
| 107 | |
| 108 | ############################################################################### |
| 109 | ## |
| 110 | ## Metrics Reporting |
| 111 | ## |
| 112 | ## This server can report its metrics periodically on a topic. |
| 113 | ## |
| 114 | #metrics.send.cambria.enabled=true |
| 115 | #metrics.send.cambria.topic=cambria.apinode.metrics #msgrtr.apinode.metrics.dmaap |
| 116 | #metrics.send.cambria.sendEverySeconds=60 |
| 117 | |
| 118 | cambria.consumer.cache.zkBasePath=/fe3c/cambria/consumerCache |
| 119 | |
| 120 | ############################################################################## |
| 121 | #100mb |
| 122 | maxcontentlength=10000 |
| 123 | |
| 124 | |
| 125 | ############################################################################## |
| 126 | #AAF Properties |
| 127 | msgRtr.namespace.aaf=org.openecomp.dcae.dmaap.mtnje2.mr.topic |
| 128 | msgRtr.topicfactory.aaf=org.openecomp.dcae.dmaap.topicFactory|:org.openecomp.dcae.dmaap.mtnje2.mr.topic: |
| 129 | enforced.topic.name.AAF=org.openecomp |
| 130 | forceAAF=false |
| 131 | transidUEBtopicreqd=false |
| 132 | defaultNSforUEB=org.openecomp.dmaap.mr.ueb |
| 133 | ############################################################################## |
| 134 | #Mirror Maker Agent |
| 135 | msgRtr.mirrormakeradmin.aaf=org.openecomp.dmaap.mr.dev.mirrormaker|*|admin |
| 136 | msgRtr.mirrormakeruser.aaf=org.openecomp.dmaap.mr.dev.mirrormaker|*|user |
| 137 | msgRtr.mirrormakeruser.aaf.create=org.openecomp.dmaap.mr.dev.topicFactory|:org.openecomp.dmaap.mr.dev.topic: |
| 138 | msgRtr.mirrormaker.timeout=15000 |
| 139 | msgRtr.mirrormaker.topic=org.openecomp.dmaap.mr.prod.mm.agent |
| 140 | msgRtr.mirrormaker.consumergroup=mmagentserver |
| 141 | msgRtr.mirrormaker.consumerid=1 |