Dgraph Alpha Eating Up All RAM

Nope, Dgraph doesn’t push the dataset to RAM. It has a mmap that goes to RAM, but it is small.

That is important.

What is the size of it?

Weird, are you sure there isn’t any other thing running at the same time?

Yes, storing Graphs require some space. Also, there are some tmp data that will be wiped out soon.

That Alpha(the leader) might be dead.

Looks like you are doing a heavy load. During a load, Dgraph expands the dataset a bit in RAM. And it should be cleaned with time by jemalloc.

To avoid this, I would recommend balancing the load between Alphas. So the memory handler works evenly across the cluster.

There were some issues related to RAM, some of them were addressed, so updated is a good thing to do.