From 93d2ff22d0c8c1bc1fc7a2ea5e5643c88a345667 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Thu, 16 Apr 2020 16:09:55 -0400 Subject: Fix link in RST file for Scale Out doc Issue-ID: INT-1536 Signed-off-by: Marco Platania Change-Id: Ic16b339332033cd487cf19458464c1dc86c61d65 Signed-off-by: mrichomme --- docs/docs_scaleout.rst | 105 ++++++++----- docs/files/scaleout/12.png | Bin 188128 -> 0 bytes docs/files/scaleout/13.png | Bin 235213 -> 0 bytes docs/files/scaleout/14.png | Bin 230675 -> 0 bytes docs/files/scaleout/15.png | Bin 410181 -> 0 bytes docs/files/scaleout/16.png | Bin 394513 -> 0 bytes docs/files/scaleout/17.png | Bin 466637 -> 0 bytes docs/files/scaleout/18.png | Bin 726385 -> 0 bytes docs/files/scaleout/19.png | Bin 354411 -> 0 bytes docs/files/scaleout/20.png | Bin 230514 -> 0 bytes docs/files/scaleout/clamp/1.png | Bin 0 -> 314501 bytes docs/files/scaleout/clamp/10.png | Bin 0 -> 552939 bytes docs/files/scaleout/clamp/11.png | Bin 0 -> 535871 bytes docs/files/scaleout/clamp/12.png | Bin 0 -> 441614 bytes docs/files/scaleout/clamp/13.png | Bin 0 -> 456595 bytes docs/files/scaleout/clamp/14.png | Bin 0 -> 463167 bytes docs/files/scaleout/clamp/15.png | Bin 0 -> 1567589 bytes docs/files/scaleout/clamp/16.png | Bin 0 -> 555752 bytes docs/files/scaleout/clamp/2.png | Bin 0 -> 322447 bytes docs/files/scaleout/clamp/3.png | Bin 0 -> 500921 bytes docs/files/scaleout/clamp/4.png | Bin 0 -> 542819 bytes docs/files/scaleout/clamp/5.png | Bin 0 -> 494548 bytes docs/files/scaleout/clamp/6.png | Bin 0 -> 460774 bytes docs/files/scaleout/clamp/7.png | Bin 0 -> 437053 bytes docs/files/scaleout/clamp/8.png | Bin 0 -> 508377 bytes docs/files/scaleout/clamp/9.png | Bin 0 -> 538782 bytes docs/files/scaleout/dcae_blueprint.yaml | 174 +++++++++++++++++++++ .../scaleout/k8s-tca-clamp-policy-05162019.yaml | 174 --------------------- 28 files changed, 236 insertions(+), 217 deletions(-) delete mode 100644 docs/files/scaleout/12.png delete mode 100644 docs/files/scaleout/13.png delete mode 100644 docs/files/scaleout/14.png delete mode 100644 docs/files/scaleout/15.png delete mode 100644 docs/files/scaleout/16.png delete mode 100644 docs/files/scaleout/17.png delete mode 100644 docs/files/scaleout/18.png delete mode 100644 docs/files/scaleout/19.png delete mode 100644 docs/files/scaleout/20.png create mode 100644 docs/files/scaleout/clamp/1.png create mode 100644 docs/files/scaleout/clamp/10.png create mode 100644 docs/files/scaleout/clamp/11.png create mode 100644 docs/files/scaleout/clamp/12.png create mode 100644 docs/files/scaleout/clamp/13.png create mode 100644 docs/files/scaleout/clamp/14.png create mode 100644 docs/files/scaleout/clamp/15.png create mode 100644 docs/files/scaleout/clamp/16.png create mode 100644 docs/files/scaleout/clamp/2.png create mode 100644 docs/files/scaleout/clamp/3.png create mode 100644 docs/files/scaleout/clamp/4.png create mode 100644 docs/files/scaleout/clamp/5.png create mode 100644 docs/files/scaleout/clamp/6.png create mode 100644 docs/files/scaleout/clamp/7.png create mode 100644 docs/files/scaleout/clamp/8.png create mode 100644 docs/files/scaleout/clamp/9.png create mode 100644 docs/files/scaleout/dcae_blueprint.yaml delete mode 100644 docs/files/scaleout/k8s-tca-clamp-policy-05162019.yaml (limited to 'docs') diff --git a/docs/docs_scaleout.rst b/docs/docs_scaleout.rst index 4e296c95a..b3404afa0 100644 --- a/docs/docs_scaleout.rst +++ b/docs/docs_scaleout.rst @@ -9,7 +9,6 @@ Source files Additional files ~~~~~~~~~~~~~~~~ -- DCAE blueprint: https://git.onap.org/integration/tree/docs/files/scaleout/k8s-tca-clamp-policy-05162019.yaml - TOSCA model template: https://git.onap.org/integration/tree/docs/files/scaleout/service-Vloadbalancercds-template.yml - Naming policy script: https://git.onap.org/integration/tree/docs/files/scaleout/push_naming_policy.sh @@ -62,7 +61,7 @@ The output below means that the vLB has been set up correctly, has forwarded the The Scale Out Use Case ~~~~~~~~~~~~~~~~~~~~~~ -The Scale Out use case shows how users/network operators can add Virtual Network Function Components (VNFCs) as part of a VF Module that has been instantiated in the Service model, in order to increase capacity of the network. ONAP El Alto release supports scale out with manual trigger by directly calling SO APIs and closed-loop-enabled automation from Policy. For El Alto, the APPC controller is used to demonstrate post-scaling VNF reconfiguration operations. APPC can handle different VNF types, not only the VNF described in this document. +The Scale Out use case shows how users/network operators can add Virtual Network Function Components (VNFCs) as part of a VF Module that has been instantiated in the Service model, in order to increase capacity of the network. ONAP Frankfurt release supports scale out with manual trigger by directly calling SO APIs and closed-loop-enabled automation from Policy. For Frankfurt, the APPC controller is used to demonstrate post-scaling VNF reconfiguration operations. APPC can handle different VNF types, not only the VNF described in this document. The figure below shows all the interactions that take place during scale out operations. @@ -133,9 +132,9 @@ For CDS parameters, users can search for names starting with "sdnc". These param :align: center -After importing the VSP, users need to onboard the DCAE blueprint and the Policy Model used to design closed loops in CLAMP. This step is only required for users that want to run closed loop; users interested in manual scale out only can skip the remainder of the section. +After importing the VSP, users need to onboard the DCAE blueprint used to design closed loops in CLAMP. This step is only required for users that want to run closed loop; users interested in manual scale out only can skip the remainder of the section. Note that since Frankfurt users are not required to upload a Policy model from SDC, as Policy models are now managed by the Policy Engine. -From the "Composition" tab in the service menu, select the artifact icon on the right, as shown below: +To upload a DCAE blueprint, from the "Composition" tab in the service menu, select the artifact icon on the right, as shown below: .. figure:: files/scaleout/1.png :align: center @@ -150,21 +149,6 @@ The blueprint will appear in the artifacts section on the right. .. figure:: files/scaleout/3.png :align: center -To attach a Policy Model to the service, open the Policy drop-down list on left. - -.. figure:: files/scaleout/4.png - :align: center - -Then, add the TCA Policy. - -.. figure:: files/scaleout/5.png - :align: center - -The Policy will be attached to the service defined in SDC - -.. figure:: files/scaleout/6.png - :align: center - Finally, users need to provide the maximum number of VNF instances that ONAP is allowed to create as part of the scale out use case by setting up deployment properties. .. figure:: files/scaleout/7.png @@ -195,48 +179,68 @@ In order to instantiate the VNF using CDS features, users need to deploy the nam ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This step is only required if closed loop is used. -Once the service model is distributed, users can design the closed loop from CLAMP, using the GUI at https://clamp.api.simpledemo.onap.org:30258/designer/index.html In El Alto, CLAMP doesn't authenticate with AAF, so users have to login using "admin" and "password" as username and password, respectively. +Once the service model is distributed, users can design the closed loop from CLAMP, using the GUI at https://clamp.api.simpledemo.onap.org:30258/designer/index.html -Use the "Closed Loop" link to open a distributed model. +Use the "Loop Instance" link to create a closed loop using a distributed model. -.. figure:: files/scaleout/12.png +.. figure:: files/scaleout/clamp/1.png :align: center -Select the closed loop associated to the distributed service model. +Select the distributed service model. -.. figure:: files/scaleout/13.png +.. figure:: files/scaleout/clamp/2.png :align: center The closed loop main page for TCA microservices is shown below. -.. figure:: files/scaleout/14.png +.. figure:: files/scaleout/clamp/3.png :align: center -Click on the TCA box to create a configuration policy. From the pop-up window, users need to click "Add item" to create a new policy and fill it in with specific information, as shown below. +Click on the TCA box to create a configuration policy. From the pop-up window, users need to click "Add" to create a new policy and fill it in with specific information, as shown below. -.. figure:: files/scaleout/15.png +.. figure:: files/scaleout/clamp/4.png :align: center For this use case, the control loop schema type is "VM", while the event name has to match the event name reported in the VNF telemetry, which is "vLoadBalancer". Once the policy item has been created, users can define a threshold that will be used at runtime to evaluate telemetry reported by the vLB. When the specified threshold is crossed, DCAE generates an ONSET event that will tell Policy Engine which closed loop to activate. -.. figure:: files/scaleout/16.png +.. figure:: files/scaleout/clamp/5.png + :align: center + +Since Frankfurt, users are required to define the PDP group for the configuration policy, as shown in the figure below. + +.. figure:: files/scaleout/clamp/6.png + :align: center + +After the configuration policy is created, users need to create the operational policy, which the Policy Engine uses to determine which actions and parameters should be used during closed loop. From the "Loop Instance" tab, users can select "Modify" to add a new Policy Model of type Drools: + +.. figure:: files/scaleout/clamp/7.png :align: center -After the configuration policy is created, users need to create the operational policy, which the Policy Engine uses to determine which actions and parameters should be used during closed loop. +Users are required to provide basic closed loop information, like ID, timeout, and trigger, as shown in the example below. The trigger name, in particular, must match the name of the root operational policy created during the next step. -.. figure:: files/scaleout/17.png +.. figure:: files/scaleout/clamp/8.png :align: center -Since El Alto, CLAMP adds the "Policy Decision Entry" parameter, which has to contain the name of the root operational policy in the decision tree. For this use case, there is only one operational policy, called "vlbpolicy2" in the example above ("Policy ID" parameter). As such, "Policy Decision Entry" has to be set to "vlbpolicy2" as well. During creation of the operational policy, the user should select "VF Module Create" recipe and "SO" actor. The payload section is: +To create a new operational policy, users can use the "Add" button below, and fill up the fields in the CLAMP GUI as shown in the example below, making sure that the "id" matches the "trigger" field defined before: + +.. figure:: files/scaleout/clamp/9.png + :align: center + +During creation of the operational policy, the user should select "VF Module Create" recipe and "SO" actor. The payload section is a JSON object like below: :: - requestParameters: '{"usePreload":false,"userParams":[]}' - configurationParameters: '[{"ip-addr":"$.vf-module-topology.vf-module-parameters.param[16].value","oam-ip-addr":"$.vf-module-topology.vf-module-parameters.param[30].value"}]' + {"requestParameters":"{\"usePreload\":true,\"userParams\":[]}", + "configurationParameters":"[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[16]\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[30]\"}]"} + +Users can use the "Edit JSON" button to upload the payload. -Policy Engine passes the payload to SO, which will then use it during VF module instantiation to resolve configuration parameters. The JSON path +.. figure:: files/scaleout/clamp/10.png + :align: center + +The Policy Engine passes the payload to SO, which will then use it during VF module instantiation to resolve configuration parameters. The JSON path :: @@ -244,19 +248,34 @@ Policy Engine passes the payload to SO, which will then use it during VF module indicates that resolution for parameter "ip-addr" is available at "$.vf-module-topology.vf-module-parameters.param[16].value" in the JSON object linked by the VF module self-link in AAI. See section 1-7 for an example of how to determine the right path to configuration parameters. -The target tab allows users to select the target type for the closed loop. For this use case, the user should select VF module as target type, as we are scaling a VF module. Please select the vDNS module as target resource ID. +The "targetType" tab allows users to select the target type for the closed loop. For this use case, the user should select VF module as target type, as we are scaling a VF module. Please select the vDNS module as target resource ID. + +.. figure:: files/scaleout/clamp/11.png + :align: center + +As with configuration policy, users need to assign the PDP group to the operational policy. + +.. figure:: files/scaleout/clamp/12.png + :align: center + +For what regards guard policies, either "Frequency Limiter", or "MinMax", or both can be used for the scale out use case. They can be added using the "Modify" item in the "Loop Instance" tab. + +.. figure:: files/scaleout/clamp/13.png + :align: center + +The example below shows the definition of a "Frequency Limiter" guard policy. Note that some optional fields, such as id and time interval, should be added to the policy using the "Object Properties" button: -.. figure:: files/scaleout/18.png +.. figure:: files/scaleout/clamp/14.png :align: center -For what regards guard policies, either "Frequency Limiter", or "MinMax", or both can be used for the scale out use case. The example below shows the definition of a "Frequency Limiter" guard policy. The policy name should be guard.frequency. for Frequency Limiter and guard.minmax. for MinMax, where is vlbpolicy2 in the example above. +The user needs to manually insert id, actor, and operation so as to match the same fields defined in the operational policy. -.. figure:: files/scaleout/19.png +.. figure:: files/scaleout/clamp/15.png :align: center -Once the operational policy design is completed, users can submit and then deploy the closed loop clicking the "Submit" and "Deploy" buttons, respectively, as shown below. +Once the operational policy design is completed, users can submit and then deploy the closed loop clicking the "Submit" and "Deploy" buttons from the "Loop Operations" tab, as shown below. -.. figure:: files/scaleout/20.png +.. figure:: files/scaleout/clamp/16.png :align: center At this point, the closed loop is deployed to Policy Engine and DCAE, and a new microservice will be deployed to the DCAE platform. @@ -2051,9 +2070,9 @@ PART 6 - Known Issues and Resolutions ------------------------------------- 1) When running closed loop-enabled scale out, the closed loop designed in CLAMP conflicts with the default closed loop defined for the old vLB/vDNS use case -Resolution: Change TCA configuration for the old vLB/vDNS use case +Resolution: Change TCA configuration for the old vLB/vDNS use case -- Connect to Consul: http://ANY_K8S_IP:30270 and click on "Key/Value" → "dcae-tca-analytics" +- Connect to Consul: http://ANY_K8S_IP:30270 and click on "Key/Value" → "dcae-tca-analytics" - Change "eventName" in the vLB default policy to something different, for example "vLB" instead of the default value "vLoadBalancer" -- Change "subscriberConsumerGroup" in the TCA configuration to something different, for example "OpenDCAE-c13" instead of the default value "OpenDCAE-c12" +- Change "subscriberConsumerGroup" in the TCA configuration to something different, for example "OpenDCAE-c13" instead of the default value "OpenDCAE-c12" - Click "UPDATE" to upload the new TCA configuration diff --git a/docs/files/scaleout/12.png b/docs/files/scaleout/12.png deleted file mode 100644 index c6e79a8dd..000000000 Binary files a/docs/files/scaleout/12.png and /dev/null differ diff --git a/docs/files/scaleout/13.png b/docs/files/scaleout/13.png deleted file mode 100644 index b64d57759..000000000 Binary files a/docs/files/scaleout/13.png and /dev/null differ diff --git a/docs/files/scaleout/14.png b/docs/files/scaleout/14.png deleted file mode 100644 index 959fef355..000000000 Binary files a/docs/files/scaleout/14.png and /dev/null differ diff --git a/docs/files/scaleout/15.png b/docs/files/scaleout/15.png deleted file mode 100644 index ed552d9d0..000000000 Binary files a/docs/files/scaleout/15.png and /dev/null differ diff --git a/docs/files/scaleout/16.png b/docs/files/scaleout/16.png deleted file mode 100644 index 78ec99002..000000000 Binary files a/docs/files/scaleout/16.png and /dev/null differ diff --git a/docs/files/scaleout/17.png b/docs/files/scaleout/17.png deleted file mode 100644 index 4165da725..000000000 Binary files a/docs/files/scaleout/17.png and /dev/null differ diff --git a/docs/files/scaleout/18.png b/docs/files/scaleout/18.png deleted file mode 100644 index c0fc3b57a..000000000 Binary files a/docs/files/scaleout/18.png and /dev/null differ diff --git a/docs/files/scaleout/19.png b/docs/files/scaleout/19.png deleted file mode 100644 index f83e1d5a9..000000000 Binary files a/docs/files/scaleout/19.png and /dev/null differ diff --git a/docs/files/scaleout/20.png b/docs/files/scaleout/20.png deleted file mode 100644 index 71147e3de..000000000 Binary files a/docs/files/scaleout/20.png and /dev/null differ diff --git a/docs/files/scaleout/clamp/1.png b/docs/files/scaleout/clamp/1.png new file mode 100644 index 000000000..acf850843 Binary files /dev/null and b/docs/files/scaleout/clamp/1.png differ diff --git a/docs/files/scaleout/clamp/10.png b/docs/files/scaleout/clamp/10.png new file mode 100644 index 000000000..17dcaa937 Binary files /dev/null and b/docs/files/scaleout/clamp/10.png differ diff --git a/docs/files/scaleout/clamp/11.png b/docs/files/scaleout/clamp/11.png new file mode 100644 index 000000000..f41f72988 Binary files /dev/null and b/docs/files/scaleout/clamp/11.png differ diff --git a/docs/files/scaleout/clamp/12.png b/docs/files/scaleout/clamp/12.png new file mode 100644 index 000000000..8acc00439 Binary files /dev/null and b/docs/files/scaleout/clamp/12.png differ diff --git a/docs/files/scaleout/clamp/13.png b/docs/files/scaleout/clamp/13.png new file mode 100644 index 000000000..74894e9e7 Binary files /dev/null and b/docs/files/scaleout/clamp/13.png differ diff --git a/docs/files/scaleout/clamp/14.png b/docs/files/scaleout/clamp/14.png new file mode 100644 index 000000000..52d1b2a02 Binary files /dev/null and b/docs/files/scaleout/clamp/14.png differ diff --git a/docs/files/scaleout/clamp/15.png b/docs/files/scaleout/clamp/15.png new file mode 100644 index 000000000..a5195450e Binary files /dev/null and b/docs/files/scaleout/clamp/15.png differ diff --git a/docs/files/scaleout/clamp/16.png b/docs/files/scaleout/clamp/16.png new file mode 100644 index 000000000..edec29070 Binary files /dev/null and b/docs/files/scaleout/clamp/16.png differ diff --git a/docs/files/scaleout/clamp/2.png b/docs/files/scaleout/clamp/2.png new file mode 100644 index 000000000..e5ff5f6cb Binary files /dev/null and b/docs/files/scaleout/clamp/2.png differ diff --git a/docs/files/scaleout/clamp/3.png b/docs/files/scaleout/clamp/3.png new file mode 100644 index 000000000..f0dcc352f Binary files /dev/null and b/docs/files/scaleout/clamp/3.png differ diff --git a/docs/files/scaleout/clamp/4.png b/docs/files/scaleout/clamp/4.png new file mode 100644 index 000000000..5563b2442 Binary files /dev/null and b/docs/files/scaleout/clamp/4.png differ diff --git a/docs/files/scaleout/clamp/5.png b/docs/files/scaleout/clamp/5.png new file mode 100644 index 000000000..590b01c7e Binary files /dev/null and b/docs/files/scaleout/clamp/5.png differ diff --git a/docs/files/scaleout/clamp/6.png b/docs/files/scaleout/clamp/6.png new file mode 100644 index 000000000..bbdd69878 Binary files /dev/null and b/docs/files/scaleout/clamp/6.png differ diff --git a/docs/files/scaleout/clamp/7.png b/docs/files/scaleout/clamp/7.png new file mode 100644 index 000000000..281f7bcf9 Binary files /dev/null and b/docs/files/scaleout/clamp/7.png differ diff --git a/docs/files/scaleout/clamp/8.png b/docs/files/scaleout/clamp/8.png new file mode 100644 index 000000000..81217e8a4 Binary files /dev/null and b/docs/files/scaleout/clamp/8.png differ diff --git a/docs/files/scaleout/clamp/9.png b/docs/files/scaleout/clamp/9.png new file mode 100644 index 000000000..ef8d3200d Binary files /dev/null and b/docs/files/scaleout/clamp/9.png differ diff --git a/docs/files/scaleout/dcae_blueprint.yaml b/docs/files/scaleout/dcae_blueprint.yaml new file mode 100644 index 000000000..c3d1a1db9 --- /dev/null +++ b/docs/files/scaleout/dcae_blueprint.yaml @@ -0,0 +1,174 @@ +# +# ============LICENSE_START==================================================== +# ============================================================================= +# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. +# ============================================================================= +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END====================================================== + +tosca_definitions_version: cloudify_dsl_1_3 + +description: > + This blueprint deploys/manages the TCA module as a Docker container + +imports: + - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml + - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.13/k8splugin_types.yaml +# - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml + - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/clamppolicyplugin/1.0.0/clamppolicyplugin_types.yaml +inputs: + aaiEnrichmentHost: + type: string + default: "aai.onap.svc.cluster.local" + aaiEnrichmentPort: + type: string + default: "8443" + enableAAIEnrichment: + type: string + default: true + dmaap_host: + type: string + default: message-router.onap + dmaap_port: + type: string + default: "3904" + enableRedisCaching: + type: string + default: false + redisHosts: + type: string + default: dcae-redis.onap.svc.cluster.local:6379 + tag_version: + type: string + default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.1" + consul_host: + type: string + default: consul-server.onap + consul_port: + type: string + default: "8500" + cbs_host: + type: string + default: "config-binding-service" + cbs_port: + type: string + default: "10000" + policy_id: + type: string + default: "onap.restart.tca" + external_port: + type: string + description: Kubernetes node port on which CDAPgui is exposed + default: "32012" + policy_model_id: + type: string + default: "onap.policies.monitoring.cdap.tca.hi.lo.app" +node_templates: + tca_k8s: + type: dcae.nodes.ContainerizedServiceComponent + relationships: + - target: tca_policy + type: cloudify.relationships.depends_on + properties: + service_component_type: 'dcaegen2-analytics-tca' + docker_config: {} + image: + get_input: tag_version + log_info: + log_directory: "/opt/app/TCAnalytics/logs" + application_config: + app_config: + appDescription: DCAE Analytics Threshold Crossing Alert Application + appName: dcae-tca + tcaAlertsAbatementTableName: TCAAlertsAbatementTable + tcaAlertsAbatementTableTTLSeconds: '1728000' + tcaSubscriberOutputStreamName: TCASubscriberOutputStream + tcaVESAlertsTableName: TCAVESAlertsTable + tcaVESAlertsTableTTLSeconds: '1728000' + tcaVESMessageStatusTableName: TCAVESMessageStatusTable + tcaVESMessageStatusTableTTLSeconds: '86400' + thresholdCalculatorFlowletInstances: '2' + app_preferences: + aaiEnrichmentHost: + get_input: aaiEnrichmentHost + aaiEnrichmentIgnoreSSLCertificateErrors: 'true' + aaiEnrichmentPortNumber: '8443' + aaiEnrichmentProtocol: https + aaiEnrichmentUserName: dcae@dcae.onap.org + aaiEnrichmentUserPassword: demo123456! + aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query + aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf + enableAAIEnrichment: + get_input: enableAAIEnrichment + enableRedisCaching: + get_input: enableRedisCaching + redisHosts: + get_input: redisHosts + enableAlertCEFFormat: 'false' + publisherContentType: application/json + publisherHostName: + get_input: dmaap_host + publisherHostPort: + get_input: dmaap_port + publisherMaxBatchSize: '1' + publisherMaxRecoveryQueueSize: '100000' + publisherPollingInterval: '20000' + publisherProtocol: http + publisherTopicName: unauthenticated.DCAE_CL_OUTPUT + subscriberConsumerGroup: OpenDCAE-clamp + subscriberConsumerId: c12 + subscriberContentType: application/json + subscriberHostName: + get_input: dmaap_host + subscriberHostPort: + get_input: dmaap_port + subscriberMessageLimit: '-1' + subscriberPollingInterval: '30000' + subscriberProtocol: http + subscriberTimeoutMS: '-1' + subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT + tca_policy: '' + service_component_type: dcaegen2-analytics_tca + interfaces: + cloudify.interfaces.lifecycle: + start: + inputs: + envs: + DMAAPHOST: + { get_input: dmaap_host } + DMAAPPORT: + { get_input: dmaap_port } + DMAAPPUBTOPIC: "unauthenticated.DCAE_CL_OUTPUT" + DMAAPSUBTOPIC: "unauthenticated.VES_MEASUREMENT_OUTPUT" + AAIHOST: + { get_input: aaiEnrichmentHost } + AAIPORT: + { get_input: aaiEnrichmentPort } + CONSUL_HOST: + { get_input: consul_host } + CONSUL_PORT: + { get_input: consul_port } + CBS_HOST: + { get_input: cbs_host } + CBS_PORT: + { get_input: cbs_port } + CONFIG_BINDING_SERVICE: "config_binding_service" + ports: + - concat: ["11011:", { get_input: external_port }] + tca_policy: + type: clamp.nodes.policy + properties: + policy_id: + get_input: policy_id + policy_model_id: + get_input: policy_model_id diff --git a/docs/files/scaleout/k8s-tca-clamp-policy-05162019.yaml b/docs/files/scaleout/k8s-tca-clamp-policy-05162019.yaml deleted file mode 100644 index fb7174bfa..000000000 --- a/docs/files/scaleout/k8s-tca-clamp-policy-05162019.yaml +++ /dev/null @@ -1,174 +0,0 @@ -# -# ============LICENSE_START==================================================== -# ============================================================================= -# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. -# ============================================================================= -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END====================================================== - -tosca_definitions_version: cloudify_dsl_1_3 - -description: > - This blueprint deploys/manages the TCA module as a Docker container - -imports: - - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml - - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.13/k8splugin_types.yaml -# - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml - - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/clamppolicyplugin/1.0.0/clamppolicyplugin_types.yaml -inputs: - aaiEnrichmentHost: - type: string - default: "aai.onap.svc.cluster.local" - aaiEnrichmentPort: - type: string - default: "8443" - enableAAIEnrichment: - type: string - default: true - dmaap_host: - type: string - default: message-router.onap - dmaap_port: - type: string - default: "3904" - enableRedisCaching: - type: string - default: false - redisHosts: - type: string - default: dcae-redis.onap.svc.cluster.local:6379 - tag_version: - type: string - default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.1.1" - consul_host: - type: string - default: consul-server.onap - consul_port: - type: string - default: "8500" - cbs_host: - type: string - default: "config-binding-service" - cbs_port: - type: string - default: "10000" - policy_id: - type: string - default: "onap.restart.tca" - external_port: - type: string - description: Kubernetes node port on which CDAPgui is exposed - default: "32012" - policy_model_id: - type: string - default: "onap.policies.monitoring.cdap.tca.hi.lo.app" -node_templates: - tca_k8s: - type: dcae.nodes.ContainerizedServiceComponent - relationships: - - target: tca_policy - type: cloudify.relationships.depends_on - properties: - service_component_type: 'dcaegen2-analytics-tca' - docker_config: {} - image: - get_input: tag_version - log_info: - log_directory: "/opt/app/TCAnalytics/logs" - application_config: - app_config: - appDescription: DCAE Analytics Threshold Crossing Alert Application - appName: dcae-tca - tcaAlertsAbatementTableName: TCAAlertsAbatementTable - tcaAlertsAbatementTableTTLSeconds: '1728000' - tcaSubscriberOutputStreamName: TCASubscriberOutputStream - tcaVESAlertsTableName: TCAVESAlertsTable - tcaVESAlertsTableTTLSeconds: '1728000' - tcaVESMessageStatusTableName: TCAVESMessageStatusTable - tcaVESMessageStatusTableTTLSeconds: '86400' - thresholdCalculatorFlowletInstances: '2' - app_preferences: - aaiEnrichmentHost: - get_input: aaiEnrichmentHost - aaiEnrichmentIgnoreSSLCertificateErrors: 'true' - aaiEnrichmentPortNumber: '8443' - aaiEnrichmentProtocol: https - aaiEnrichmentUserName: dcae@dcae.onap.org - aaiEnrichmentUserPassword: demo123456! - aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query - aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf - enableAAIEnrichment: - get_input: enableAAIEnrichment - enableRedisCaching: - get_input: enableRedisCaching - redisHosts: - get_input: redisHosts - enableAlertCEFFormat: 'false' - publisherContentType: application/json - publisherHostName: - get_input: dmaap_host - publisherHostPort: - get_input: dmaap_port - publisherMaxBatchSize: '1' - publisherMaxRecoveryQueueSize: '100000' - publisherPollingInterval: '20000' - publisherProtocol: http - publisherTopicName: unauthenticated.DCAE_CL_OUTPUT - subscriberConsumerGroup: OpenDCAE-clamp - subscriberConsumerId: c12 - subscriberContentType: application/json - subscriberHostName: - get_input: dmaap_host - subscriberHostPort: - get_input: dmaap_port - subscriberMessageLimit: '-1' - subscriberPollingInterval: '30000' - subscriberProtocol: http - subscriberTimeoutMS: '-1' - subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT - tca_policy: '' - service_component_type: dcaegen2-analytics_tca - interfaces: - cloudify.interfaces.lifecycle: - start: - inputs: - envs: - MAAPHOST: - { get_input: dmaap_host } - DMAAPPORT: - { get_input: dmaap_port } - DMAAPPUBTOPIC: "unauthenticated.DCAE_CL_OUTPUT" - DMAAPSUBTOPIC: "unauthenticated.VES_MEASUREMENT_OUTPUT" - AAIHOST: - { get_input: aaiEnrichmentHost } - AAIPORT: - { get_input: aaiEnrichmentPort } - CONSUL_HOST: - { get_input: consul_host } - CONSUL_PORT: - { get_input: consul_port } - CBS_HOST: - { get_input: cbs_host } - CBS_PORT: - { get_input: cbs_port } - CONFIG_BINDING_SERVICE: "config_binding_service" - ports: - - concat: ["11011:", { get_input: external_port }] - tca_policy: - type: clamp.nodes.policy - properties: - policy_id: - get_input: policy_id - policy_model_id: - get_input: policy_model_id -- cgit 1.2.3-korg