場景
- 一個聚合查詢,時間範圍短時,正常響應; 時間範圍長時,異常;查看日誌 No alive nodes found in your cluster
- 線下環境限於數據量的問題,無法復現
過程
- 首先確定es是正常啓動狀態
- 查了No alive nodes found in your cluster案列沒有和自己一樣的
- 分析異常響應和正常的響應的區別,判斷問題出在es設置上(內存)
- 找到了
http.max_content_length The max content of an HTTP request. Defaults to 100mb
解決
- http.max_content_length 根據機器配置來設置