Jump to content

Node going in a infinite loop every x hours


Recommended Posts

Hi all,

Not sure if this is the right place, but anyway.

I was running a node on a 4GB 240GB 2x2.4GHz Ubuntu 18.04 VPS, but every +/- 1 hour it was jumping to 99% memory and then restarting the node after a few minutes:

1642115153_Screenshot2021-04-02at22_05_57.thumb.png.b4ccbe7e0b59b10f69151f9e4a2c665e.png

After I upped the ram to 16GB, just to check it out, and now it seemed to take 6 hours until the same happend:

560682542_Screenshot2021-04-02at22_04_42.thumb.png.36f2528f9adddac44009574631836958.png

Is this normal?

Link to post
Share on other sites

Seems to have been resolved after the changes below and when the sync was done.

I noticed the syslog was getting massive, so in

nano /etc/systemd/system/elrond-node-%INDEX%.service

changed

-log-level *:DEBUG

to

-log-level *:INFO

 

 

Also, just in case I want to set it back to `*:DEBUG` the rotation of the syslog can use some improvements on a clean install:

nano /etc/logrotate.d/rsyslog

Add `maxsize 1G` in both blocks:

/var/log/syslog
{
        rotate 7
        daily
        maxsize 1G
        missingok
        notifempty
        delaycompress
        compress
        postrotate
                /usr/lib/rsyslog/rsyslog-rotate
        endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
        rotate 4
        weekly
        maxsize 1G
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
        postrotate
                /usr/lib/rsyslog/rsyslog-rotate
        endscript
}

 

Link to post
Share on other sites
On 4/5/2021 at 11:21 AM, Edwin Veldhuizen said:

Seems to have been resolved after the changes below and when the sync was done.

I noticed the syslog was getting massive, so in


nano /etc/systemd/system/elrond-node-%INDEX%.service

changed


-log-level *:DEBUG

to


-log-level *:INFO

 

 

Also, just in case I want to set it back to `*:DEBUG` the rotation of the syslog can use some improvements on a clean install:


nano /etc/logrotate.d/rsyslog

Add `maxsize 1G` in both blocks:


/var/log/syslog
{
        rotate 7
        daily
        maxsize 1G
        missingok
        notifempty
        delaycompress
        compress
        postrotate
                /usr/lib/rsyslog/rsyslog-rotate
        endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
        rotate 4
        weekly
        maxsize 1G
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
        postrotate
                /usr/lib/rsyslog/rsyslog-rotate
        endscript
}

 

Hi Edwin,

Please join our telegram Validators community group [1] to discuss more around your setup and possible problems (if any).
We're a pretty big community very willing to help.

Thank you,

Marius

[1] https://t.me/ElrondValidators

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...