Where does dgraph store all its data on-disk?

(Georgecapsule8) #1

Where does dgraph store all its on-disk files ?

I’m doing some disk storage benchmarking and need to know the on-disk footprint for various use cases.

Currently, I specify write-ahead and posting lists directories via the “-p” and “-w”, setting both to the same directory. Then I run some mutations, wait for the batches to process, and then get the size of that directory.

Is there some other storage I might be missing ?

Thanks !

(Manish R Jain) #2

Don’t do that. These directories need to be separate.

Dgraph stores it’s state in p directory, and write ahead log in w. If you want to check the on-disk files, you should write your data, and shutdown dgraph, so it will push everything it has in memory to disk. Note that the disk usage shown by w can vary depending upon how many logs it carries. These logs though get periodically deleted, and will get purged later.

(Georgecapsule8) #3

Great thanks !

It looks like it takes a snapshot every so often as well. I assume that also flushed in-memory contents to disk ?

(Manish R Jain) #4

No. We don’t really take any snapshots. The data gets pushed out continuously.

(system) #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.