Folder2RAM config

  • Hi all,


    I'm just installed NetData, a system performance monitor, and I would like to add this to folder2ram.
    https://github.com/firehol/netdata
    I'm currently using Flashmemory plugin.


    Here's netdata directories:

    Code
    - the daemon at /usr/sbin/netdata
     - config files at /etc/netdata
     - web files at /usr/share/netdata
     - plugins at /usr/libexec/netdata
     - cache files at /var/cache/netdata
     - db files at /var/lib/netdata
     - log files at /var/log/netdata
     - pid file at /var/run


    How/where do I add those config files to folder2ram?
    /etc/folder2ram/folder2ram.conf


    /var/folder2ram/

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    • Offizieller Beitrag

    Depends on how many writes are performed in those directories. I'm guessing /var/log/netdata is probably going to be high writes but /var/log is already in folder2ram. So, nothing to do there. /var/cache/netdata might be high writes but I don't know for sure. I don't think the other directories don't need to be added to folder2ram.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Ok.
    Not sure if this matter, the netdata installation is in /opt/netdata.
    If I want to add /var/cache/netdata to folder2ram, how would I do it?


    Thanks for the fast response.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    • Offizieller Beitrag

    The config file is pretty easy. Just add the line:


    tmpfs /var/cache/netdata

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • In here? /etc/folder2ram/folder2ram.conf or the /etc/fstab ?


    By default:

    Zitat

    save (the default) where the data are only in RAM while netdata runs and are saved to / loaded from disk on netdata restart.



    Netdata has three memory modes.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    • Offizieller Beitrag

    /etc/folder2ram/folder2ram.conf is the place you want to put it BUT if ram or save mode keeps everything in memory until restart, there is no need to add a folder2ram config

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I know; I just want to know how to configure in the future.
    Thanks.


    Good news, I managed to get it running on Nginx. :D

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    4 Mal editiert, zuletzt von tinh_x7 ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!