Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon using CRDTs fails to start on Raspberry Pi #771

Closed
lanzafame opened this issue May 1, 2019 · 2 comments · Fixed by #776
Closed

Daemon using CRDTs fails to start on Raspberry Pi #771

lanzafame opened this issue May 1, 2019 · 2 comments · Fixed by #776
Assignees
Labels
kind/bug A bug in existing code (including security flaws) status/in-progress In progress

Comments

@lanzafame
Copy link
Contributor

Additional information:

  • OS: linux
  • IPFS Cluster version: master
  • Installation method: built from source for ARM

Running ipfs-cluster-service daemon on a Raspberry Pi 3 B with CRDT consensus fails due to badger not being able to mmap memory.

$ ipfs-cluster-service daemon --consensus=crdt
06:07:40.790  INFO    service: Initializing. For verbose output run with "-l debug". Please wait... daemon.go:48
error creating datastore: Mmap value log file. Path=/home/pi/.ipfs-cluster/badger/000000.vlog. Error=cannot allocate memory

I found this badgerdb issue which is resolved and if I ran that main.go on the RPi, it worked but if I changed the options.ValueLogLoadingMode back to the default, which is to use options.MemoryMap, that example program fails.

@hsanjuan when you get the chance could you please confirm this?

The fix, if this is a problem, is to allow passing through the configuration of value for options.ValueLogLoadingMode to badger.

@lanzafame lanzafame added kind/bug A bug in existing code (including security flaws) need/review Needs a review labels May 1, 2019
@hsanjuan
Copy link
Collaborator

hsanjuan commented May 2, 2019

@lanzafame ValueLogFileSize is set to 1GB by default. Can you try reducing it? How much RAM is there in these Raspberry Pis ? Ideally we would automatically handle this in systems with lower memory somehow. We can always expose [needed] badger options though.

@hsanjuan
Copy link
Collaborator

Closed by #776 and configuring file loading mode for badger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) status/in-progress In progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants