Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-2190

NCMP id-searches endpoint has long response time with some module filters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • New Delhi Release
    • New Delhi Release
    • NCMP
    • None

      Hi Team,
      I am performing requests on the endpoint /ncmp/v1/ch/id-searches with module filter
      however with some modules the response time is quite high.

      I am using the following setup to run NCMP:

      version: '3.1'
      
      services:
      
        database-pg:
          container_name: dbpostgresql
          image: postgres:14.1-alpine
          restart: always
          environment:
            POSTGRES_USER: postgres
            POSTGRES_PASSWORD: postgrespwd
            POSTGRES_DB: cpsdb
          ports:
            - 5432:5432
          healthcheck:
            test: ["CMD-SHELL", "pg_isready"]
            interval: 10s
            timeout: 5s
            retries: 5
      
        cps:
          container_name: cps-service-container
          image: <IMAGE>
          restart: always
          environment:
            DB_HOST: dbpostgresql
            DB_USERNAME: postgres
            DB_PASSWORD: postgrespwd
            CPS_USERNAME: cpsuser
            CPS_PASSWORD: cpsr0cks!
            DMI_USERNAME: cpsuser
            DMI_PASSWORD: cpsr0cks!
            DB_PORT: 5432
            JAVA_TOOL_OPTIONS: -Xmx1500m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
          ports:
            - 8080:8080
          depends_on:
            database-pg:
              condition: service_healthy
          deploy:
            resources:
              reservations:
                cpus: '2'
                memory: 2G
              limits:
                cpus: '3'
                memory: 3G
      

      I get the following results from module search:

      module1 619,355381s
      module2 163,167262s
      module3 121,089099s
      module4 57,498838s
      module5 33,593499s
      module6 29,823383s
      module7 20,378262s
      module8 17,535839s
      module9 15,164234s
      module10 15,055445s
      

            danielhanrahan Daniel Hanrahan
            eaiushf Faisal Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: