blob: 76e822e74596022f7d19892ab23eeb772e0bbf48 [file] [log] [blame]
Chengkai Yan7f278e32018-11-06 16:32:03 +01001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
elinuxhenrik9297dd92019-07-01 08:42:50 +00004Configuration and Performance
5=============================
Chengkai Yan7f278e32018-11-06 16:32:03 +01006
7**datafile** configuration is controlled via a single JSON file called datafile_endpoints.json.
8This is located under datafile-app-server/config.
9
elinuxhenrik9297dd92019-07-01 08:42:50 +000010Json Configuration Explained
Chengkai Yan7f278e32018-11-06 16:32:03 +010011^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
maximesson4ad68382019-06-05 17:51:29 +020013Variables of interest (e.g. variables that should be inspected/modified for a specific runtime environment) are listed below for convenience. The entire file is provided later in this page for reference.
Chengkai Yan7f278e32018-11-06 16:32:03 +010014
15dmaapConsumerConfiguration
16""""""""""""""""""""""""""
17
18.. code-block:: json
19
20 "dmaapHostName": <name of DMaaP/MR host>
21 "dmaapPortNumber": <DMaaP/MR host port>
22 "dmaapTopicName": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
23 "dmaapProtocol": "http"
24 "dmaapUserName": ""
25 "dmaapUserPassword": ""
26 "dmaapContentType": "application/json"
27 "consumerId": "C12"
28 "consumerGroup": "OpenDcae-c12"
29 "timeoutMS": -1
30 "messageLimit": 1
31
32dmaapProducerConfiguration
33""""""""""""""""""""""""""
34
35.. code-block:: json
36
37 "dmaapHostName": <name of DMaaP/DR host>
38 "dmaapPortNumber": <DMaaP/DR host port>
39 "dmaapTopicName": "publish"
maximessone707b222019-05-09 14:27:34 +000040 "dmaapProtocol": "https"
Chengkai Yan7f278e32018-11-06 16:32:03 +010041 "dmaapUserName": "dradmin"
42 "dmaapUserPassword": "dradmin"
43 "dmaapContentType": "application/octet-stream"
44
45ftpesConfiguration
46""""""""""""""""""
47
48.. code-block:: json
49
50 "keyCert": <path to DFC certificate>
maximessonc762eb12019-04-04 14:43:43 +000051 "keyPassword": <password for DFC certificate>
52 "trustedCa": <path to xNF certificate>
53 "trustedCaPassword": <password for xNF certificate>
54
55securityConfiguration
56"""""""""""""""""""""
57
58.. code-block:: json
59
60 "trustStorePath": <path to trust store>
maximessone707b222019-05-09 14:27:34 +000061 "trustStorePasswordPath": <path to trust store password>
maximessonc762eb12019-04-04 14:43:43 +000062 "keyStorePath": <path to key store>
63 "keyStorePasswordPath": <path to key store password>
64 "enableDmaapCertAuth": <boolean>. If false, all information above are ignored.
65
Chengkai Yan7f278e32018-11-06 16:32:03 +010066
67
68Sample JSON configuration
69"""""""""""""""""""""""""
70
71The format of the JSON configuration that drives all behavior of DFC is probably best described using an example:
72
73.. code-block:: json
74
75 {
76 "configs": {
77 "dmaap": {
78 "dmaapConsumerConfiguration": {
79 "dmaapHostName": "localhost",
80 "dmaapPortNumber": 2222,
81 "dmaapTopicName": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT",
82 "dmaapProtocol": "http",
83 "dmaapUserName": "",
84 "dmaapUserPassword": "",
85 "dmaapContentType": "application/json",
86 "consumerId": "C12",
87 "consumerGroup": "OpenDcae-c12",
88 "timeoutMS": -1,
89 "messageLimit": 1
90 },
91 "dmaapProducerConfiguration": {
92 "dmaapHostName": "localhost",
93 "dmaapPortNumber": 3907,
94 "dmaapTopicName": "publish",
95 "dmaapProtocol": "https",
96 "dmaapUserName": "dradmin",
97 "dmaapUserPassword": "dradmin",
98 "dmaapContentType": "application/octet-stream"
99 }
100 },
101 "ftp": {
maximessonc762eb12019-04-04 14:43:43 +0000102 "ftpesConfiguration": {
103 "keyCert": "config/dfc.jks",
104 "keyPassword": "secret",
105 "trustedCa": "config/ftp.jks",
106 "trustedCaPassword": "secret"
107 }
108 },
109 "security": {
110 "trustStorePath" : "change it",
111 "trustStorePasswordPath" : "change it",
112 "keyStorePath" : "change it",
113 "keyStorePasswordPath" : "change it",
114 "enableDmaapCertAuth" : "false"
Chengkai Yan7f278e32018-11-06 16:32:03 +0100115 }
Chengkai Yan7f278e32018-11-06 16:32:03 +0100116 }
117 }
elinuxhenrik9297dd92019-07-01 08:42:50 +0000118
119Performance
120^^^^^^^^^^^
121
122To see the performance of DFC, see "`Datafile Collector (DFC) performance baseline results`_".
123
124.. _Datafile Collector (DFC) performance baseline results: https://wiki.onap.org/display/DW/Datafile+Collector+%28DFC%29+performance+baseline+results