commit | bf532c6af9e8e96ead0a98b9d7dbe4397633afa8 | [log] [tgz] |
---|---|---|
author | Jessica Wagantall <jwagantall@linuxfoundation.org> | Mon Nov 20 14:56:57 2017 -0800 |
committer | Lusheng Ji <lji@research.att.com> | Tue Nov 28 01:25:59 2017 +0000 |
tree | 260d2abb0060d2b957d1db778743d0907c64a5dd | |
parent | 44693e83e54614732b8c2689f87d82ce1d6556cb [diff] |
Bump patch version Bump patch version in preparation for Amsterdam branching. Change-Id: Id277498099869b36f859127d5b3d2237df45d1cf Issue-ID: CIMAN-120 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
This repo is the thing in red:
DCAE has a "templating language" built into components' configurations, as explained further below. The orchestrator populates one/two keys (depending on the blueprint) into Consul that are used to bind component configurations config, a "rels key" and a "dmaap key". If component A wants to connect to a component of type B, then A's rels key holds what specific service component name of B that A should connect to over direct HTTP. Service component name here means the full name that the component of type B is registered under in Consul (there can be multiple components of type B registered in Consul). The CBS (config binding service) then pulls down that rels key, fetches the connection information about that B (IP:Port), and replaces it into A's config. There is also a "dmaap key", which is the same concept, except what gets injected is a JSON of DMaaP connection information instead of an IP:Port.
hit url_of_this/service_component/service_component_name
and you are returned your bound config.
(Note: there is also a backdoor in the client
module that allows you to pass in a direct JSON and a direct rels, but this isn't exposed via the HTTP API as of now)
CONSUL_HOST
is set as an environmental variable where this binding service is run. If it is not, it defaults to the Rework Consul which is probably not what you want.service_component_name
is in consul as a key and holds the configservice_component_name:rel
is in consul as a key if you are expecting a direct HTTP resolution, and holds the service component names of connections.service_component_name:dmaap
is in consul if you are expecting a DMaaP resolution, and holds the components DMaaP information.The CBS tries to resolve a component's configuration with a templating language. We have two templating languages embedded in our component's configuration ({{...}}
and <<...>>
). There are two because the CBS has to be able to distinguish between a rels-key-resolve and a dmaap-key-resolve. That is, if component X is trying to bind their component, and they want to talk to Y, someone has to tell the CBS whether they are trying to talk via IP:port or a feed.
Specifically, if the CBS sees:
X's configuration: { ... config_key : << F >> // will try to resolve via X:dmaap and look for F config_key : {{ F }} // will try to resolve via X:rels and look for F }
tox -c tox-local.ini