Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License.
|
| 2 | .. http://creativecommons.org/licenses/by/4.0
|
| 3 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 4 | =============================
|
elinuxhenrik | 9297dd9 | 2019-07-01 08:42:50 +0000 | [diff] [blame] | 5 | Configuration and Performance
|
| 6 | =============================
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 7 | The DataFile Collector (DFC) gets fileReady messages from the Message Router (MR) sent from xNFs, via the VES Collector.
|
| 8 | These messages contains data about files ready to get from the xNF. DFC then collects these files from the xNF and
|
| 9 | publishes them to the DataRouter (DR) on a feed. Consumers can subscribe to the feed from DR and process the file for
|
| 10 | its specific purpose. The connection between a file type and the feed it will be published to is the
|
| 11 | **changeIdentifier**. DFC can handle multiple **changeIdentifier**/feed combinations, see picture below.
|
| 12 |
|
| 13 | .. image:: ../../images/DFC_config.png
|
| 14 |
|
| 15 |
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 16 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 17 | Configuration
|
| 18 | ^^^^^^^^^^^^^
|
| 19 | By default, DFC handles the "PM_MEAS_FILES" change identifier and publishes these files on the "bulk_pm_feed" feed.
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 20 | But it can also be configured to handle more/other change identifiers and publish them to more/other feeds. The
|
| 21 | configuration of DFC is controlled via a blueprint.
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 22 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 23 | Blueprint Configuration Explained
|
| 24 | """""""""""""""""""""""""""""""""
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 25 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 26 | For the communication with the Message Router, the user must provide the **host name**, **port**, and **protocol** of
|
| 27 | the DMaaP Message router.
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 28 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 29 | .. code-block:: yaml
|
| 30 | :emphasize-lines: 2,6,10
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 31 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 32 | inputs:
|
| 33 | dmaap_mr_host:
|
| 34 | type: string
|
| 35 | description: dmaap messagerouter host
|
| 36 | default: message-router.onap.svc.cluster.local
|
| 37 | dmaap_mr_port:
|
| 38 | type: integer
|
| 39 | description: dmaap messagerouter port
|
| 40 | default: 3904
|
| 41 | dmaap_mr_protocol:
|
| 42 | type: string
|
| 43 | description: dmaap messagerouter protocol
|
| 44 | default: "http"
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 45 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 46 | The user can also specify which version of DFC to use.
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 47 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 48 | .. code-block:: yaml
|
| 49 | :emphasize-lines: 2
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 50 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 51 | inputs:
|
| 52 | tag_version:
|
| 53 | type: string
|
| 54 | description: DFC image tag/version
|
| 55 | default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.2.0"
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 56 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 57 | The user can also enable secure communication with the DMaaP Message Router.
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 58 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 59 | .. code-block:: yaml
|
| 60 | :emphasize-lines: 2
|
maximesson | c762eb1 | 2019-04-04 14:43:43 +0000 | [diff] [blame] | 61 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 62 | inputs:
|
| 63 | secureEnableCert:
|
| 64 | type: boolean
|
| 65 | description: enable certificate based connection with DMaap
|
| 66 | default: false
|
maximesson | c762eb1 | 2019-04-04 14:43:43 +0000 | [diff] [blame] | 67 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 68 | DFC can handle multiple change identifiers. For each change identifier/feed combination the user must provide the
|
| 69 | **change identifier**, **feed name**, and **feed location**.
|
maximesson | c762eb1 | 2019-04-04 14:43:43 +0000 | [diff] [blame] | 70 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 71 | **Note!** The **feed name** provided should be used by the consumer/s to set up the subscription to the feed.
|
maximesson | c762eb1 | 2019-04-04 14:43:43 +0000 | [diff] [blame] | 72 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 73 | The **feed name** and **feed location** are defined as inputs for the user to provide.
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 74 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 75 | .. code-block:: yaml
|
| 76 | :emphasize-lines: 2,6
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 77 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 78 | inputs:
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 79 | feed0_name:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 80 | type: string
|
| 81 | description: The name of the feed the files will be published to. Should be used by the subscriber.
|
| 82 | default: "bulk_pm_feed"
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 83 | feed0_location:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 84 | type: string
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 85 | description: The location of the feed.
|
| 86 | default: "loc00"
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 87 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 88 | The **feed name** shall be used in the definition of the feed for the DMaaP plugin under the "**node_templates**"
|
| 89 | section under a tag for the internal "**feed identifier**" for the feed (feed0 in the example).
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 90 |
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 91 | .. code-block:: yaml
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 92 | :emphasize-lines: 1,5
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 93 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 94 | feed0:
|
| 95 | type: ccsdk.nodes.Feed
|
| 96 | properties:
|
| 97 | feed_name:
|
| 98 | get_input: feed0_name
|
| 99 | useExisting: true
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 100 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 101 | The **feed location** shall be used under the **streams_publishes** section under a tag for the internal
|
| 102 | "**feed identifier**" for the feed.
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 103 |
|
| 104 | .. code-block:: yaml
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 105 | :emphasize-lines: 2,4
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 106 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 107 | streams_publishes:
|
| 108 | - name: feed0
|
| 109 | location:
|
| 110 | get_input: feed0_location
|
| 111 | type: data_router
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 112 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 113 | The **change identifier** shall be defined as an item under the **streams_publishes** tag in the "**application_config**"
|
| 114 | section. Under this tag the internal "**feed identifier**" for the feed shall also be added to get the
|
| 115 | info about the feed substituted in by CBS (that's what the <<>> tags are for).
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 116 |
|
| 117 | .. code-block:: yaml
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 118 | :emphasize-lines: 4,5
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 119 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 120 | application_config:
|
| 121 | service_calls: []
|
| 122 | streams_publishes:
|
| 123 | PM_MEAS_FILES:
|
| 124 | dmaap_info: <<feed0>>
|
| 125 | type: data_router
|
| 126 |
|
| 127 | And, lastly, to set up the publication relationship for the feed, the "**feed identifier**" must be added to the
|
| 128 | "**relationships**" section of the blueprint.
|
| 129 |
|
| 130 | .. code-block:: yaml
|
| 131 | :emphasize-lines: 3
|
| 132 |
|
| 133 | relationships:
|
| 134 | - type: ccsdk.relationships.publish_files
|
| 135 | target: feed0
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 136 |
|
| 137 | Sample blueprint configuration
|
| 138 | """"""""""""""""""""""""""""""
|
| 139 |
|
| 140 | The format of the blueprint configuration that drives all behavior of DFC is probably best described using an example.
|
| 141 | The blueprint below configures DFC to handle the two feeds shown in the picture above.
|
| 142 |
|
| 143 | .. code-block:: yaml
|
| 144 |
|
| 145 | inputs:
|
| 146 | dmaap_mr_host:
|
| 147 | type: string
|
| 148 | description: dmaap messagerouter host
|
| 149 | default: message-router.onap.svc.cluster.local
|
| 150 | dmaap_mr_port:
|
| 151 | type: integer
|
| 152 | description: dmaap messagerouter port
|
| 153 | default: 3904
|
| 154 | dmaap_mr_protocol:
|
| 155 | type: string
|
| 156 | description: dmaap messagerouter protocol
|
| 157 | default: "http"
|
| 158 | tag_version:
|
| 159 | type: string
|
| 160 | description: DFC image tag/version
|
| 161 | default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.2.0"
|
| 162 | replicas:
|
| 163 | type: integer
|
| 164 | description: number of instances
|
| 165 | default: 1
|
| 166 | secureEnableCert:
|
| 167 | type: boolean
|
| 168 | description: enable certificate based connection with DMaap
|
| 169 | default: false
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 170 | envs:
|
| 171 | default: {}
|
| 172 | feed0_name:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 173 | type: string
|
| 174 | description: The name of the feed the files will be published to. Should be used by the subscriber.
|
| 175 | default: "bulk_pm_feed"
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 176 | feed0_location:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 177 | type: string
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 178 | description: The location of the feed.
|
| 179 | default: "loc00"
|
| 180 | feed1_name:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 181 | type: string
|
| 182 | description: The name of the feed the files will be published to. Should be used by the subscriber.
|
| 183 | default: "log_feed"
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 184 | feed1_location:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 185 | type: string
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 186 | description: The location of the feed.
|
| 187 | default: "loc00"
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 188 | node_templates:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 189 | datafile-collector:
|
| 190 | type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 191 | interfaces:
|
| 192 | cloudify.interfaces.lifecycle:
|
| 193 | start:
|
| 194 | inputs:
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 195 | envs:
|
| 196 | get_input: envs
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 197 | properties:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 198 | application_config:
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 199 | service_calls: []
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 200 | dmaap.security.enableDmaapCertAuth: { get_input: secureEnableCert }
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 201 | streams_subscribes:
|
| 202 | dmaap_subscriber:
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 203 | dmaap_info:
|
| 204 | topic_url:
|
| 205 | { concat: [{ get_input: dmaap_mr_protocol },"://",{ get_input: dmaap_mr_host },
|
| 206 | ":",{ get_input: dmaap_mr_port },"/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"]}
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 207 | streams_publishes:
|
| 208 | PM_MEAS_FILES:
|
| 209 | dmaap_info: <<feed0>>
|
| 210 | type: data_router
|
| 211 | LOG_FILES:
|
| 212 | dmaap_info: <<feed1>>
|
| 213 | type: data_router
|
| 214 | image:
|
| 215 | get_input: tag_version
|
| 216 | service_component_type: datafile-collector
|
maximesson | 26d51b6 | 2019-07-23 09:40:54 +0000 | [diff] [blame] | 217 | streams_publishes:
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 218 | - name: feed0
|
| 219 | location:
|
| 220 | get_input: feed0_location
|
| 221 | type: data_router
|
| 222 | - name: feed1
|
| 223 | location:
|
| 224 | get_input: feed1_location
|
| 225 | type: data_router
|
| 226 | relationships:
|
| 227 | - type: ccsdk.relationships.publish_files
|
| 228 | target: feed0
|
| 229 | - type: ccsdk.relationships.publish_files
|
| 230 | target: feed1
|
| 231 | feed0:
|
| 232 | type: ccsdk.nodes.Feed
|
| 233 | properties:
|
| 234 | feed_name:
|
| 235 | get_input: feed0_name
|
| 236 | useExisting: true
|
| 237 | feed1:
|
| 238 | type: ccsdk.nodes.Feed
|
| 239 | properties:
|
| 240 | feed_name:
|
| 241 | get_input: feed1_name
|
| 242 | useExisting: true
|
elinuxhenrik | 9297dd9 | 2019-07-01 08:42:50 +0000 | [diff] [blame] | 243 |
|
| 244 | Performance
|
| 245 | ^^^^^^^^^^^
|
| 246 |
|
| 247 | To see the performance of DFC, see "`Datafile Collector (DFC) performance baseline results`_".
|
| 248 |
|
maximesson | e0a4285 | 2019-08-16 08:43:37 +0000 | [diff] [blame] | 249 | .. _Datafile Collector (DFC) performance baseline results: https://wiki.onap.org/display/DW/Datafile+Collector+%28DFC%29+performance+baseline+results
|