Config error: no such flag -stw_ram_mb
The instructions for configuration at https://docs.dgraph.io/deploy/#config lead to an error:
Jul 27 00:19:20 localhost systemd[1]: Started Dgraph graph database.
Jul 27 00:19:20 localhost dgraph[19691]: 2017/07/27 00:19:20 main.go:166: Loading configuration from file: /var/lib/dgraph/config.yaml
Jul 27 00:19:20 localhost dgraph[19691]: 2017/07/27 00:19:20 init.go:75: Picked flag from config: ["port" = 8080]
Jul 27 00:19:20 localhost dgraph[19691]: 2017/07/27 00:19:20 init.go:75: Picked flag from config: ["workerport" = 12345]
Jul 27 00:19:20 localhost dgraph[19691]: 2017/07/27 00:19:20 init.go:75: Picked flag from config: ["stw_ram_mb" = 4000]
Jul 27 00:19:20 localhost dgraph[19691]: 2017/07/27 00:19:20 While setting flag from config. error: no such flag -stw_ram_mb
@deepakjois : This should be simple. This flag has been replaced by another, which sounds similar.
@manishrjain: So I assume it is max_memory_mb? Pls confirm and I will make the change.
No longer. It's max_memory. You can compile the dgraph bin from master and verify.
Sent from Nexus 6P
On Jul 31, 2017 7:54 PM, "Deepak Jois" [email protected] wrote:
@manishrjain https://github.com/manishrjain: So I assume it is max_memory_mb? Pls confirm and I will make the change.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dgraph-io/dgraph/issues/1261#issuecomment-319022190, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsyNG71JhY5ZyAgffWSi2Ydv4lsTtOZks5sTaQ3gaJpZM4OkpnO .
From https://github.com/dgraph-io/dgraph/commit/10ac0555cb245bf5cff332889d380712a9cc7913 it seems it's now memory_mb