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 |
|
elinuxhenrik | 9297dd9 | 2019-07-01 08:42:50 +0000 | [diff] [blame] | 4 | Configuration and Performance
|
| 5 | =============================
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 6 |
|
| 7 | **datafile** configuration is controlled via a single JSON file called datafile_endpoints.json.
|
| 8 | This is located under datafile-app-server/config.
|
| 9 |
|
elinuxhenrik | 9297dd9 | 2019-07-01 08:42:50 +0000 | [diff] [blame] | 10 | Json Configuration Explained
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 12 |
|
maximesson | 4ad6838 | 2019-06-05 17:51:29 +0200 | [diff] [blame] | 13 | Variables 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 Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 14 |
|
| 15 | dmaapConsumerConfiguration
|
| 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 |
|
| 32 | dmaapProducerConfiguration
|
| 33 | """"""""""""""""""""""""""
|
| 34 |
|
| 35 | .. code-block:: json
|
| 36 |
|
| 37 | "dmaapHostName": <name of DMaaP/DR host>
|
| 38 | "dmaapPortNumber": <DMaaP/DR host port>
|
| 39 | "dmaapTopicName": "publish"
|
maximesson | e707b22 | 2019-05-09 14:27:34 +0000 | [diff] [blame] | 40 | "dmaapProtocol": "https"
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 41 | "dmaapUserName": "dradmin"
|
| 42 | "dmaapUserPassword": "dradmin"
|
| 43 | "dmaapContentType": "application/octet-stream"
|
| 44 |
|
| 45 | ftpesConfiguration
|
| 46 | """"""""""""""""""
|
| 47 |
|
| 48 | .. code-block:: json
|
| 49 |
|
| 50 | "keyCert": <path to DFC certificate>
|
maximesson | c762eb1 | 2019-04-04 14:43:43 +0000 | [diff] [blame] | 51 | "keyPassword": <password for DFC certificate>
|
| 52 | "trustedCa": <path to xNF certificate>
|
| 53 | "trustedCaPassword": <password for xNF certificate>
|
| 54 |
|
| 55 | securityConfiguration
|
| 56 | """""""""""""""""""""
|
| 57 |
|
| 58 | .. code-block:: json
|
| 59 |
|
| 60 | "trustStorePath": <path to trust store>
|
maximesson | e707b22 | 2019-05-09 14:27:34 +0000 | [diff] [blame] | 61 | "trustStorePasswordPath": <path to trust store password>
|
maximesson | c762eb1 | 2019-04-04 14:43:43 +0000 | [diff] [blame] | 62 | "keyStorePath": <path to key store>
|
| 63 | "keyStorePasswordPath": <path to key store password>
|
| 64 | "enableDmaapCertAuth": <boolean>. If false, all information above are ignored.
|
| 65 |
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 66 |
|
| 67 |
|
| 68 | Sample JSON configuration
|
| 69 | """""""""""""""""""""""""
|
| 70 |
|
| 71 | The 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": {
|
maximesson | c762eb1 | 2019-04-04 14:43:43 +0000 | [diff] [blame] | 102 | "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 Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 115 | }
|
Chengkai Yan | 7f278e3 | 2018-11-06 16:32:03 +0100 | [diff] [blame] | 116 | }
|
| 117 | }
|
elinuxhenrik | 9297dd9 | 2019-07-01 08:42:50 +0000 | [diff] [blame] | 118 |
|
| 119 | Performance
|
| 120 | ^^^^^^^^^^^
|
| 121 |
|
| 122 | To 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 |