[why] when execute es/start, error message: curl: (56) Recv failure: Connection reset by peer
because can't set index immediately after start es.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- container/es/start | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/container/es/start b/container/es/start index e43d01b..d84ad33 100755 --- a/container/es/start +++ b/container/es/start @@ -20,4 +20,7 @@ cmd=(
"${cmd[@]}"
+echo "Please wait 60s for setting index" +sleep 60 + set_es_indices