OpenSearch/distribution
Jason Tedor 659ebf6cfb
Notify systemd when Elasticsearch is ready (#44673)
Today our systemd service defaults to a service type of simple. This
means that systemd assumes Elasticsearch is ready as soon as the
ExecStart (bin/elasticsearch) process is forked off. This means that the
service appears ready long before it actually is, so before it is ready
to receive requests. It also means that services that want to depend on
Elasticsearch being ready to start can not as there is not a reliable
mechanism to determine this. This commit changes the service type to
notify. This requires that Elasticsearch sends a notification message
via libsystemd sd_notify method. This commit does that by using JNA to
invoke this native method. Additionally, we use this integration to also
notify systemd when we are stopping.
2019-07-24 14:04:36 +09:00
..
archives convert EmptyDirTask.groovy to .java (#34672) 2019-06-13 12:21:23 +03:00
bwc Make packer cache branches explicit (#41990) 2019-05-27 09:46:43 +03:00
docker JSON logging refactoring and X-Opaque-ID support backport(#41354) (#44178) 2019-07-12 16:53:27 +02:00
licenses Add notice for bundled jdk (#40576) 2019-03-29 17:21:21 -04:00
packages Notify systemd when Elasticsearch is ready (#44673) 2019-07-24 14:04:36 +09:00
src Fix types field in JSON Search Slow Logs (#44641) 2019-07-22 12:02:20 +02:00
tools Mute testPooledMemoryChoiceOnNotSmallHeap 2019-07-23 13:16:22 +03:00
build.gradle Notify systemd when Elasticsearch is ready (#44673) 2019-07-24 14:04:36 +09:00