Separate Dgraph compression level config for p and w directories


What version of Dgraph are you using?

v20.03.4

Have you tried reproducing the issue with the latest release?

Yes (v20.07.0)

What is the hardware spec (RAM, OS)?

Linux

Steps to reproduce the issue (command/config used to run Dgraph).

When running Alpha, I want to have compression enabled for the p directory, but turn off compression for the w directory. In v20.03 and v20.07, there’s a --badger.compresson_level flag that takes a single int that sets the compression level for both.

$ dgraph alpha --help
...
      --badger.compression_level int     The compression level for Badger. A higher value uses more resources. (default 3)
...

Expected behaviour and actual result.

There’s no option to set the compression level for one or the other.

The flag should take in two values to set per directory.

Fixed in master: feat(Dgraph): Add separate compression flag for z and wal dirs by vmrajas · Pull Request #6401 · dgraph-io/dgraph · GitHub
PRs for other branches:
v1.2: release/v1.2 - Feat(Dgraph): Add separate compression flag for z and wal dirs (#6401) by vmrajas · Pull Request #6419 · dgraph-io/dgraph · GitHub
v20.03: release/v20.03 - Feat(Dgraph): Add separate compression flag for z and wal dirs (#6401) by vmrajas · Pull Request #6420 · dgraph-io/dgraph · GitHub
v20.07: release/v20.07 - Feat(Dgraph): Add separate compression flag for z and wal dirs (#6401) by vmrajas · Pull Request #6421 · dgraph-io/dgraph · GitHub

1 Like