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

[Suggestion] Install on low resources virtual machine / LXC container #446

Open
javierspn opened this issue Jan 10, 2024 · 0 comments
Open

Comments

@javierspn
Copy link

Hi team!

Just informative.

I do not use the docker image because I use LXC containers on proxmox. I have successfully installed it but thee are some caveats:

  1. On the documentation for the non dockerized installation it is a prerequisite to install (obviously) npm. npm is not installed within node on some distributions. For Debian 12 bookworm you have to install node AND npm.

  2. When you create the LXC container assign at least 4GB of RAM. The npm build process will fail if because of lack of resources (HEAP memory). Also as a precaution assign more RAM to node with the following env variable:

export NODE_OPTIONS=--max-old-space-size=4096

Once flame is compiled and running yo can reduce the amount of RAM to 512MB and will run without issues.

  1. You can create a systemd service to run the application,if not, you have to manually run it each time the machine is rebooted:

a. Create system service on /lib/systemd/system/flame.service
b. Add the following content (adapt the flame project folder location, user and password to your liking):

[Unit]
Description=Flame dashboard
Documentation=https://github.com/pawelmalak/flame
After=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/node /root/flame/server.js
WorkingDirectory=/root/flame/
Restart=on-failure

[Install]
WantedBy=multi-user.target
  1. Run a systemctl daemon-reload.
  2. Enable the service with systemctl enable flame.service
  3. Start the service with systemctl start flame.service

You are good to go. You can now power off the LXC container and assign 512MB or even less of RAM and flame will work.

I have it running on a LXC container with 512MB or RAM, 6GB of hardisk and two cores and it is essentially not consuming resources:

flame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant