We experience sync gateway crashes (outofmemory crashes) while running tests on our configuration :
Single Sync Gateway 1.2.1-4 (VM with dual core - RAM 4 Go)
3 nodes CouchBase cluster
Test details :
Insertion of about 5000 documents (of 300Ko) - each doc being associated with its own channel.
=> Memory consumption increases continuously, until the sync gateway craches (by reporting outofmemory error).
SG database configuration is based on default values.
It appears that when changing the rev_cache_size value to ‘1’ (instead of default value ‘5000’), SG memory consumption does not exceed 10% of the available RAM.
(a) Should we consider the SG crashes as "normal’ with respect to our configuration/context ?
(b) Is there any rules/advices in order to tune the rev_cache_size parameter according to a given use case and hardware capabilities?