Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-52491

JS UDF execution degrades as more libraries are created

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.1.1
    • js-evaluator
    • None
    • 7.1.1-3113
    • Untriaged
    • 1
    • Unknown

    Description

      To repro, for n occurence do following:

      • post JS library lib_n
      • create UDF udf_n using library lib_n
      • execute udf_n

      As the number of library grows the execution time degrades, for example (ts is when operation is started)

      2022-06-09-08:34:07.656391045 create library 1:PASS
      2022-06-09-08:34:07.719802634 create function 1:PASS
      2022-06-09-08:34:07.822901460 execute function 1:PASS
      2022-06-09-08:34:07.879062975 create library 2:PASS
      2022-06-09-08:34:07.923149286 create function 2:PASS
      2022-06-09-08:34:07.973434842 execute function 2:PASS # takes < 1s
      2022-06-09-08:34:08.023545284 create library 3:PASS 
      ...
      2022-06-09-08:40:05.927474076 create library 500:PASS
      2022-06-09-08:40:05.999556258 create function 500:PASS
      2022-06-09-08:40:06.056852102 execute function 500:PASS # takes > 1s
      2022-06-09-08:40:07.058210714 create library 501:PASS 
      ...
      2022-06-09-08:57:11.991659626 create library 1000:PASS
      2022-06-09-08:57:12.122973667 create function 1000:PASS
      2022-06-09-08:57:12.191384983 execute function 1000:PASS
      2022-06-09-08:57:14.397599322 create library 1001:PASS
      ...
      2022-06-09-09:16:56.027115551 create library 1300:PASS
      2022-06-09-09:16:56.350479602 create function 1300:PASS
      2022-06-09-09:16:56.552797946 execute function 1300:PASS # takes > 5s
      2022-06-09-09:17:01.614956477 create library 1301:PASS
      ...
      2022-06-09-09:29:55.951520697 create library 1400:PASS
      2022-06-09-09:29:56.371971334 create function 1400:PASS
      2022-06-09-09:29:56.617708357 execute function 1400:PASS # takes > 11s
      2022-06-09-09:30:08.030673570 create library 1401:PASS
       

      Attachments

        Activity

          People

            abhishek.jindal Abhishek Jindal
            pierre.regazzoni Pierre Regazzoni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              PagerDuty