Other Agent related issue

LIMITS

Here is a one-shot REMOTE SHELL command to raise all important limits. Simply
  1. 1.
    Use the copy icon to copy the script
  2. 2.
    Paste it into REMOTE SHELL and click RUN COMMAND
  3. 3.
    Browse to Manual Config -> General and restart the agent
1
mkdir -p /etc/systemd/system/ardexa.service.d;
2
echo "[Service]\nLimitNOFILE=infinity" > /etc/systemd/system/ardexa.service.d/override.conf;
3
systemctl daemon-reload;
4
if ! grep -q '^fs.inotify.max_user_watches' /etc/sysctl.conf; then
5
echo 'fs.inotify.max_user_watches=1048576' >> /etc/sysctl.conf;
6
fi;
7
sysctl -p;
Copied!

Disk is full

1
df -h
Copied!
Remove some big files

Inodes are full

1
df -i
Copied!
This means the number of files has reached its limit, not the size. Remove or tar as many files as you can to reduce the inode usage.

File handle limits

1
ulimit -Hn
2
ulimit -Sn
Copied!
systemd does not honour the old "system wide" methods of increasing file limits. Instead you need to override the service specific file handle allowance. Add the following file to the directory /etc/systemd/system/ardexa.service.d
override.conf
1
[Service]
2
LimitNOFILE=infinity
Copied!

Inotify limits

1
cat /proc/sys/fs/inotify/max_user_watches
Copied!
To examine just how many file inotify watches are in use, use this script: https://github.com/fatso83/dotfiles/blob/master/utils/scripts/inotify-consumers
The Ardexa agent uses inotify to watch for changes to the file system. For very, very large sites, the default limits might be too small. Increase the limit as follows:
1
echo 'fs.inotify.max_user_watches=1048576' >> /etc/sysctl.conf;
2
sysctl -p
Copied!
Last modified 1yr ago