My webserver is running ubuntu 14.10 with elasticsearch 1.5.0 and java
1.7u55
For some reason,* the elasticsearch service often goes down,* resulting in
my website not being available to my users anymore (using FOSElasticaBundle
with symfony).
I am using systemctl to restart it automatically, but I would prefer a good
fix once and for all. I feel the logs I have are not descriptive enough.
Being pretty new to managing a server, I need some help.
Can someone help me figure out the reason for this failure ? What are the
right files I can output here to better understand the issue ?
Thanks !
My systemctl status gives :
elasticsearch.service - ElasticSearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled)
Active: active (running) since Mon 2015-04-20 12:04:24 CEST; 1h 56min
ago <------------- Here it means restarted 1h56 ago. Why did it
fail in the first place ?
Main PID: 9120 (java)
CGroup: /system.slice/elasticsearch.service
└─9120 /usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingO...
In my journalctl, I have :
Apr 18 18:56:19 xx.ovh.net sshd[29397]: error: open /dev/tty failed - could
not set controlling tty: Permission denied
Apr 20 13:52:45 xx.ovh.net sshd[9764]: error: open /dev/tty failed - could
not set controlling tty: Permission denied
You need to monitor the cluster with something like Marvel, kopf or HQ to
find out what is happening.
ES may die if the cluster is overloaded (think OOM), but you should see
something in the logs on that.
My webserver is running ubuntu 14.10 with elasticsearch 1.5.0 and java
1.7u55
For some reason,* the elasticsearch service often goes down,* resulting
in my website not being available to my users anymore (using
FOSElasticaBundle with symfony).
I am using systemctl to restart it automatically, but I would prefer a
good fix once and for all. I feel the logs I have are not descriptive
enough.
Being pretty new to managing a server, I need some help.
Can someone help me figure out the reason for this failure ? What are the
right files I can output here to better understand the issue ?
Thanks !
My systemctl status gives :
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled)
Active: active (running) since Mon 2015-04-20 12:04:24 CEST; 1h 56min
ago <------------- Here it means restarted 1h56 ago. Why did it
fail in the first place ?
Main PID: 9120 (java)
CGroup: /system.slice/elasticsearch.service
└─9120 /usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingO...
In my journalctl, I have :
Apr 18 18:56:19 xx.ovh.net sshd[29397]: error: open /dev/tty failed -
could not set controlling tty: Permission denied
Apr 20 13:52:45 xx.ovh.net sshd[9764]: error: open /dev/tty failed -
could not set controlling tty: Permission denied
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.