Skip to content

LRU memory in Alpha server by default set to a negative value in MacOS #4737

@prashant-shahi

Description

@prashant-shahi

What version of Dgraph are you using?

Dgraph version   : v1.2.0
Dgraph SHA-256   : ff6a20cdd76a03a37f916b039b82bf0120b1d8ffb89edba90cecbac0652cc207
Commit SHA-1     : 24b4b7439
Commit timestamp : 2020-01-27 15:53:31 -0800
Branch           : HEAD
Go version       : go1.13.5

What is the hardware spec (RAM, OS)?

MacOS Catlina version 10.15.2
Memory: 8 GB 1600 MHz DDR3

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

curl -sSf https://get.dgraph.io | bash
$ /usr/local/bin/dgraph alpha
[Decoder]: Using assembly version of decoder

2020/02/06 02:04:39 LRU memory (--lru_mb) must be at least 1024 MB. Currently set to: -1.000000

For more information on --lru_mb please read https://docs.dgraph.io/deploy/#config

Expected behaviour and actual result.

Expected to bring up the Alpha server by setting LRU memory to 25% of the total memory as it is done in Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething is broken.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions