[429] {"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"","phase":"fetch
Summary: Elasticsearch circuit_breaking_exception (reduce_aggs)
결과#
MAX_BUCKET_SIZE_OF_AGGREGATIONS를 5000에서 500으로 축소하고, TooManyRequests (429) 에러를 별도 rescue하여 circuit breaker 에러를 명확히 로깅하도록 수정했다. 2개 파일 변경, validation 2차 시도에서 APPROVED.
Pull Requests#
| Repo | PR | Branch |
|---|---|---|
| tesla | #86998 | feature/TSLA-12467 |
변경 내용#
tesla#
app/controllers/concerns/searchable_controller.rb:MAX_BUCKET_SIZE_OF_AGGREGATIONS5000 → 500 (aggregation 메모리 사용량 1/10 감소)app/repositories/base_repository.rb:Elasticsearch::Transport::Transport::Errors::TooManyRequests를StandardError이전에 별도 rescue,Cupix::Errors::System(SYS20000)으로 반환
Cleanup#
bash
cd $REPOS_DIR/tesla
git worktree remove /home/ec2-user/error-sweeper/.worktrees/f6f29a9f-b426-4066-807a-a8ab97511281/tesla