MCPcopy Create free account
hub / github.com/antirez/disque / getMemoryWarningLevel

Function getMemoryWarningLevel

src/server.c:2301–2309  ·  view source on GitHub ↗

Get the memory warning level: * * 0 - No memory warning. * 1 - Over 75% of maxmemory setting. * 2 - Over 95% of maxmemory setting. * 3 - Over 95% of maxmemory setting and RSS over 100% of maxmemory setting. * * The server may change behavior depending on the memory warning level. * For example at warning >= 1, new jobs are only replicated to * external nodes and a localy copy is not retai

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

evictIdleQueuesFunction · 0.85
freeMemoryIfNeededFunction · 0.85
clusterProcessPacketFunction · 0.85
addjobCommandFunction · 0.85

Calls 1

zmalloc_used_memoryFunction · 0.85

Tested by

no test coverage detected