Closed keyboardfann closed 7 years ago
Dear @trevorndodds , I add some try catch to fix the crash and let the python script try again next interval. Please help to review the code diff. If you have any problem , we can discuss it. Thank you very much.
https://github.com/trevorndodds/elasticsearch-metrics/pull/12
[root@xxx eshealthcollector-stage]# python /admin/scripts/eshealthcollector-stage/elasticsearch2elastic-stage.py --interval 10
Interval: 10.0 s
IOError: Maybe can't connect to elasticsearch.
IOError: Maybe can't connect to elasticsearch.
IOError: Maybe can't connect to elasticsearch.
IOError: Maybe can't connect to elasticsearch.
sure
The elasticsearch2elastic.py will exit during heavy ES cluster or network problem. When the program stop , we should manually to restart it. Could we have a retry method?