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

Queries get constantly rejected by app herder due to high idle memory usage

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      Steps to reproduce

      1. Created a 1 node cluster on MacOS 14 Sonoma x86(on a EC2 Mac Mini)

      2. Created a magma bucket named "test_bucket" and loaded 10k documents with vectors of 1536 dims

      3. Created a vector index - definition attached

      4. Post indexing completion ran a create workload and number of docs increased from 10k to around 35k. The ops rate was around 100-200 ops/sec

      5. Stopped the query workload at around 35k docs and started an update (mutation) workload. The ops rate was around 100-200 ops/sec

      6. Continuously ran a query workload during step 4 and 5. The rate was around 40-60 qps

      7. Stopped the query workload and kv workload and waited for 30 minutes

      8. It can be seen that memory usage does not reduce

      9. Started the mutation and query workload after 30 minutes. All queries are constantly rejected by app-herder 

       

      2024-04-24T20:05:20.863+00:00 [ERRO] rest: error code: 429, msg: rest_index: Query, indexName: test_bucket._default.test_index, err: query request rejected -- rest.ShowErrorBody() at rest.go:59
      2024-04-24T20:05:20.882+00:00 [INFO] app_herder: querying over queryQuota: 8388608000, estimated size: 96, runningQueryUsed: 2120, memUsed: 8395212600 

       

       


       

      Logs for 2 instances of the same

      1. MacOS Sonoma x86 - 
      https://cb-engineering.s3.amazonaws.com/Mac_vec_search/collectinfo-2024-04-24T210815-ns_1%40127.0.0.1.zip
      2. MacOS Ventura x86 - https://cb-engineering.s3.amazonaws.com/Mac_vec_search/collectinfo-2024-04-24T210828-ns_1%40127.0.0.1.zip
       
      The definition of index - https://cb-engineering.s3.amazonaws.com/Mac_vec_search/index_def.json

      Attachments

        1. AfterRAM.png
          AfterRAM.png
          54 kB
        2. AfterRSS.png
          AfterRSS.png
          109 kB
        3. BeforeRam.png
          BeforeRam.png
          55 kB
        4. BeforeRSS.png
          BeforeRSS.png
          105 kB
        5. finalLeak2.svg
          31 kB
        6. image-2024-04-25-12-53-46-247.png
          image-2024-04-25-12-53-46-247.png
          252 kB
        7. image-2024-04-25-17-42-47-513.png
          image-2024-04-25-17-42-47-513.png
          176 kB
        8. image-2024-04-25-17-54-04-363.png
          image-2024-04-25-17-54-04-363.png
          122 kB
        9. image-2024-04-25-18-00-20-619.png
          image-2024-04-25-18-00-20-619.png
          59 kB
        10. image-2024-04-25-18-01-43-050.png
          image-2024-04-25-18-01-43-050.png
          59 kB
        11. image-2024-04-25-18-01-48-174.png
          image-2024-04-25-18-01-48-174.png
          59 kB
        12. macos1.png
          macos1.png
          71 kB
        13. macos2.png
          macos2.png
          266 kB
        14. Screenshot 2024-04-25 at 1.58.04 AM.png
          Screenshot 2024-04-25 at 1.58.04 AM.png
          213 kB
        15. Screenshot 2024-04-25 at 2.52.15 AM.png
          Screenshot 2024-04-25 at 2.52.15 AM.png
          321 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              raghav.sk Raghav S K
              raghav.sk Raghav S K
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty