I’m running CSG 3.0.9 and Couchbase Server 7.1.1. Lately, a strange problem started to appear: changing CSG user passwords for existing users via POST to the _user REST api is incredibly slow (sometimes > 1 minute). However, setting a password for new users is fast (< 1s).
I tried to debug the problem:
- When changing password of an existing users,
sg_info.log
contains entries like2025-07-01T17:42:16.792+02:00 [INF] Query: N1QL Query("sessions") took 1m1.327559001s
- in the “slowest completed queries” section of couchbase server interface I see plans like these:
→ if I interpret it correctly, this means that:
- the
syncDocs
index emits nearly 100k keys (I just checked: 100k is also the total number of_sync:session:%
docs in my DB) - these 100k keys are fetched ← this seems to be the slow step
- after they were fetched, only a single document is emitted
Strangely, my cluster has been working flawlessly for ages. This slowness only appeared after I upgraded my servers recently and increased indexer RAM – but I don’t see how this could be connected.
Do you have any idea what’s going on / how to fix the problem? Thanks a lot!
7 posts - 4 participants