When creating a GSI index on a dataset of 3million documents the indexer process seems to use all available memory on the server and then restart. The memory used by the indexer seems to higher than then limit set in the node config. The index fragmentation for the index appears in the metrics as a negative value.
Indexer memory size set to 500m
14586 couchbas 20 0 3495m 2.2g 3760 S 50.2 59.4 3:17.20 indexer
Shows resident memory as 2.2G