Context & Device Performance Enhancements

Manifests:

  • Updated CockroachDB manifests to always pull last 22.2.x version
  • Increased resources requested and limits for Device, Service and Slice components

Deploy scripts:

  • Minor cosmetic changes

Grafana Dashboards:

  • Added Grafana dashboard to plot time consumed by ConfigureDevice

Common - Method Wrappers:

  • Updated default histogram buckets for monitoring component's performance

Common - Tools - Context Queries:

  • Added generic queries for Connection
  • Extended generic queries for Device and migrated to new SelectDevice method
  • Extended generic queries for Service and migrated to new SelectService method
  • Extended generic queries for Slice and migrated to new SelectSlice method

Compute component:

  • Updated to use new generic context queries

Context component:

  • Separated ConfigRuleModel into Device/Service/Slice-ConfigRuleModel to reduce transaction contention
  • Separated ConstraintModel into Service/Slice-ConstraintModel to reduce transaction contention
  • Removed redundant indexes in *ConfigRuleModel and *ConstraintModel
  • Activated component placeholders in DeviceModel
  • Updated performance enhancements for CockroachDB
  • Updated and generalized helper methods for ConfigRule and Constraint
  • Implemented UnsetService gRPC method and backend logic
  • Corrected name of gRPC method handler "SelectDevices" to "SelectDevice"

Device component:

  • Removed unused customized histogram buckets per device driver
  • Added metric to plot performance of ConfigureDevice method and export results to Prometheus
  • Updated to use new generic context queries

Service component:

  • Removed unused customized histogram buckets per service handler
  • Corrected handler name in performance metric for L2NM IETF L2VPN service handler
  • Removed unneeded deconfig rules in L2NM OpenConfig service handler
  • Updated to use new generic context queries

Slice component:

  • Updated to use new generic context queries

WebUI component:

  • Updated to use new generic context queries
Edited by Lluis Gifre Renom

Merge request reports

Loading
+1 −1
Changes for deploy/tfs.sh: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ if [[ "$TFS_COMPONENTS" == *"webui"* ]]; then
        },
        "secureJsonData": {"password": "'${QDB_PASSWORD}'"}
    }' ${GRAFANA_URL_UPDATED}/api/datasources
    printf "\n\n"
    echo

    # adding the datasource of the metrics collection framework
    curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{
+2 −1
Changes for manifests/cockroachdb/cluster.yaml: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -42,7 +42,8 @@ spec:
# You can set either a version of the db or a specific image name
# cockroachDBVersion: v22.2.0
  image:
    name: cockroachdb/cockroach:v22.2.0
    #name: cockroachdb/cockroach:v22.2.0
    name: cockroachdb/cockroach:latest-v22.2
  # nodes refers to the number of crdb pods that are created
  # via the statefulset
  nodes: 3
+1 −0
Changes for manifests/cockroachdb/single-node.yaml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ spec:
      containers:
      - name: cockroachdb
        image: cockroachdb/cockroach:latest-v22.2
        imagePullPolicy: Always
        args:
        - start-single-node
        ports:
+4 −4
Changes for manifests/deviceservice.yaml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -45,11 +45,11 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:2020"]
        resources:
          requests:
            cpu: 128m
            memory: 64Mi
          limits:
            cpu: 256m
            cpu: 250m
            memory: 128Mi
          limits:
            cpu: 1000m
            memory: 1024Mi
---
apiVersion: v1
kind: Service
+4 −4
Changes for manifests/serviceservice.yaml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -45,11 +45,11 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:3030"]
        resources:
          requests:
            cpu: 32m
            memory: 32Mi
            cpu: 250m
            memory: 128Mi
          limits:
            cpu: 128m
            memory: 64Mi
            cpu: 1000m
            memory: 1024Mi
---
apiVersion: v1
kind: Service
Loading
Loading