Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update swapfile instructions

This document will walk you through installing and running the essential EdgeX Foundry microservices on a RaspberryPi for testing and evaluation. This should not be used in a production environment. This guide is for developers who want to learn EdgeX by running it as a mock gateway device on a commonly available hobbyist device. 

...

The RaspberryPi 3B+ has a full gig of ram, but while running MongoDB (and also when building from source if you choose to do so) this may not be enough. So before going any further you will first want to create some additional memory capacity by adding a swap file to your filesystem. Run the following command to create a new 2GB swap file, start swapping on it, and automatically remount the swapfile on reboot:

sudo touch /var/swap
sudo chmod 600 /var/swap
sudo dd if=/dev/zero of=/var/swap bs=1M count=2048
sudo mkswap /var/swap 
sudo swapon /var/swap
sudo sh -c "echo " /var/swap swap swap defaults 0 0 >> /etc/fstab"

...