SevOne SDN Collector Set Container Resource Limit

This document provides the guidelines on how to set SevOne SDN container resource limit and then check the resource usage statistics.



To set resource limit to SevOne SDN container, execute the following steps.

  1. Using ssh, log in as support to SevOne NMS appliance you are linking SevOne SDN Controller with.
    $ ssh support@<SevOne NMS appliance IP address>
    Important: The commands below must be run from the host as root.
  2. Change directory to /etc/sevone/.
    $ cd /etc/sevone/
    By default, nms-collectors.yaml file is available.
  3. Using a text editor of your choice, add the following values to nms-collectors.yaml file under SDN section and save it.
    $ vi /etc/sevone/nms-collectors.yaml
    
    resources:
       limits:
        cpu: "2"
        memory: "4Gi"
       requests:
        cpu: "1"
        memory: "2Gi"
    
    Example:
    
    image: "na.artifactory.swg-devops.com/hyc-sevone-team-docker-staging-docker-local/solutions-central/sdn/plugin:7.2.0-
     build. 23"
    imagePullPolicy: "IfNotPresent"
    name: "sdn-plugin"
    ports: []
     securityContext: 
       capabilities:                                                           
         add:
         - "AUDIT_WRITE"
     readOnlyRootFilesystem: false 
    volumeMounts:
     - mountPath: "/secrets/mysql"
       name: "mariadb-pki"
     - mountPath:  "/var/lib/mysql-keyring"
       name: "mariadb-security"
     - mountPath: "/config"
       name: "config"
     - mountPath: "/var/log"
       name: "var-log"
      # Add resource limits for CPU and memory here
      
       resources: 
        limits:
          сри: "2"           # CPU limit set to 2 cores
          memory: "4Gi".     # Memory limit set to 4 GiB
       requests:
          сри: "1"           Request 1 CPU core (this is the amount reserved for the
          memory: "2Gi"      Request 2 GiB of memory (this is the guaranteed amount for the container
     - args: command:
     - "/opt/sdwan/plugin"
    
  4. Restart the NMS collector.
    $ systemctl restart nms-collectors
  5. Execute the following command to display a live stream of SevOne SDN container resource usage statistics.
    $ podman stats nms-collections-sdn-plugin
    Example:
    
    ID            NAME                        CPU %  MEM Usage / LIMIT   NET IO   BLOCK IO         PIDS  CPU TIME         AVG CPU %  
    ca0527dc1607  nms-collections-sdn-plugin  0.00%  16.16MB / 8.339GB   0B / 0B  121MB / 127.6MB  8     9m17.029907003s  0.35%
    
    Note: The output of the above command will continue to update in real-time until the command is interrupted.