I Want to Do
I want to use Dgraph with windows. I am using the latest master:
.\dgraph.exe version [Decoder]: Using assembly version of decoder Page Size: 4096 Dgraph version : v20.11.0-g28b75cf26 Dgraph codename : unnamed-mod Dgraph SHA-256 : 276a70655e4c56f996a080590645d200808c7d5b71677d7f5bc3e55d68dca6fe Commit SHA-1 : 28b75cf26 Commit timestamp : 2021-01-27 16:54:35 +0530 Branch : master Go version : go1.15.6 jemalloc enabled : false
I compiled dgraph for windows with adding the following to the make file and then run make windows:
windows: @GOOS=windows $(MAKE) dgraph @mkdir windows @mv ./dgraph/dgraph ./windows/dgraph
However, when I start dgraph alpha and zero on the windows system and post the schema the space of the harddrive used up quickly (>100GB in the “t” folder, no data, just schema posted) resulting in the following dgraph error:
(important log lines …)
I0127 18:05:50.622405 3604 log.go:34] Rebuilding index for predicate Denkbox.dockerId (1/2): Streaming about 0 B of uncompressed data (0 B on disk) I0127 18:05:50.639406 3604 log.go:34] Rebuilding index for predicate ResearchBoxTag.name (1/2): Streaming about 0 B of uncompressed data (0 B on disk) I0127 18:05:50.716405 3604 log.go:34] Rebuilding index for predicate User.lastSyncedAt (1/2): Streaming about 0 B of uncompressed data (0 B on disk) fatal error: out of memory allocating heap arena metadata fatal error: runtime: cannot allocate memory
What I Did
I don’t know what to do. In linux the same setup results in 0 GB “t” folder. Maybe it has sth to do with jemalloc that is not enabled in windows?
Thanks in advance!