dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Config error: no such flag -stw_ram_mb

Open elbow-jason opened this issue 9 years ago • 4 comments

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

elbow-jason avatar Jul 27 '17 00:07 elbow-jason

@deepakjois : This should be simple. This flag has been replaced by another, which sounds similar.

manishrjain avatar Jul 27 '17 00:07 manishrjain

@manishrjain: So I assume it is max_memory_mb? Pls confirm and I will make the change.

deepakjois avatar Jul 31 '17 09:07 deepakjois

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 .

manishrjain avatar Jul 31 '17 10:07 manishrjain

From https://github.com/dgraph-io/dgraph/commit/10ac0555cb245bf5cff332889d380712a9cc7913 it seems it's now memory_mb

mpires avatar Jul 31 '17 11:07 mpires