Hi,
Thanks for taking the trouble to provide advice
My concern is that it seems to be a ‘plateau’ / resources cap that prevent logstastash to perform
Where should I look to find out the culprit – i.e. is there a log/log level that will contain details about resource constraints ?
As I mentioned, this happens IRRESPECTIVE of any pipeline settings OR physical resources allocated to the VM running logstash
The logstash.conf is also simplified at maximum ( see below)
The gaps in the graph are due to me stopping / restarting logstash after making changes
Logstash have been configured with LimitNOFILE=65535
The VM is running Centos 7 with all limits increased as below
Atop is not showing any overused resources
cat /etc/sysctl.d/elk.conf
vm.swappiness=1 # turn off swapping
net.core.somaxconn=65535 # up the number of connections per port
vm.max_map_count=262144 #(default) http://www.redhat.com/magazine/001nov04/features/vm
fs.file-max=518144
[root@elk-test ~]# ulimit -Sa
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 39265
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 39265
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root@elk-test ~]# ulimit -Ha
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 39265
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 39265
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
cat /etc/logstash/conf.d/Medavail.conf
input {
http {
port => 5044
}
}
filter {
json {
"source" => "message"
}
}
filter {
ruby {
init => "require 'atomic'; @sequence = Atomic.new(0)"
code => "event.set('sequence', @sequence.update { |v| v + 1 })"
}
}
output {
stdout {}
file {
path => "/tmp/logstash.out"
}
elasticsearch {
hosts => ["localhost:9200"]
index => ["ingestmedlogs"]
pool_max => 1800
}
