elasticsearch


Elasticsearch startup: not available immediately


We have a Docker image which contains and starts Elasticsearch (as well as MySQL, etc.).
The problem is that while services elasticsearch start works and succeeds in roughly 1s (when the container starts), the service isn't available immediately.
When we try to wget the status page immediately after, we get a connection error (Elasticsearch is off). If we do sleep 10 then Elasticsearch will be available…
This is very confusing:
why isn't Elasticsearch up immediately after services elasticsearch start?
what can we do (except sleep 10)? what's the proper way to handle that?
Note: there is no data, this is an empty container/elasticsearch. There's only 1 shard.

Related Links

Using ElasticSearch as alternative data store with applications updating both the DB and ES(with the help of Kafka). Is this a good idea?
Where Elasticsearch store the data on Mac
Elastica - multiple bool queries - subqueries
How do i add boosting to the elasticsearch mapping in ONGR?
Is it possible to use doc_count as a term in elasticsearch?
Elastic search aggregation with sort
Elasticsearhc- how to do multi search request on Sense or Head plugin
How do I configure/initialize a custom Elasticsearch Tokenizer
Combining log entries with logstash
How to import CSV data using Logstash for field type completion in Elasticsearch suggester
How can I interpret the result of percentiles aggregation type
elastic search select fields to return in aggregation
How to Focus Search On One Part of a Document
How to calculate cooccurrences on a set of texts with Elasticsearch
elasticsearch edge_ngrams analyzer is not found
Double wildcard in query causes weird highlighting for plain/fast vectors elasticsearch highlighters

Categories

HOME
amazon-web-services
spring-data
mod-rewrite
azure-functions
lambda
selenium-builder
activemq
plpgsql
histogram
jersey-2.0
navigation
azure-mobile-services
tfs2010
mutation-testing
yeoman-generator-angular
lapack
sap-fiori
rangy
xbap
jodatime
webstore
asp.net-core-1.0
nest-api
exe
maven-plugin
infrared
social-tables
unity-container
plyr
tf-idf
monitor
tightvnc
john-the-ripper
bean-validation
formsauthenticationticket
bluemixtools
ms-dos
cloudera-quickstart-vm
rdp
windows-store
python-jira
raytracing
yoast
google-prediction
fluid-mac-app-engine
web-inspector
liteide
wysihtml5
spongycastle
ptvs
wikimapia
emacs25
dymola
front-camera
adobe-reader
wildfly-9
svnserve
ajaxmin
codecharge
processor
teensy
phpquery
html.actionlink
mousehover
org-babel
relational-model
erlog
kotlin-android-extensions
python-curses
createfile
thoughtworks-go
password-recovery
cakephp-2.2
configurable-product
xml-signature
siena
refit
spring-social-linkedin
ctp
ldif
semicolon
donut-chart
2d-vector
thejit
platform-independent
liveconnect
fitch-proofs
netstream
n-queens
django-apps
cewolf
upshot
digiflow
django-pagination
git-log
formal-semantics
tessellation
service-factory
rootkit

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile