ES /docs

JobRepository polymorphic dispatch — transient resource contention

Service
cupixworks-api
Occurrences
25
Status
Reported
Confidence
85%
Actionability
28%
Cluster ID
87ee1ec9-ac1e-4e58-8c26-ddeba45aff57
First Seen
2026-05-27 21:24 UTC
Last Seen
2026-08-04 19:47 UTC
Actions

JobRepository polymorphic dispatch — transient resource contention

What Happened#

2026-05-27 21:24:06 UTC에 us-west-2 리전의 cupixworks-api 서비스에서 Api::V1::JobsController#show 요청이 1015ms 소요되었다. 동일 시간대에 Job 1089729의 상태 전이(preprocessor running → complete)로 인한 대량 DB write가 발생하면서 데이터베이스 부하가 급증했고, 이후 21:29-21:33 UTC에 Elasticsearch 타임아웃으로 전체 API 티어에 걸친 cascading latency가 발생했다.

Quick Facts#

Field Value
resource_name Api::V1::JobsController#show
top_frame app/repositories/job_repository.rb:13
avg_duration 1015ms
db_time ~504ms (51% of total)
env production, us-west-2

Timeline#

  1. 21:24:06Z — JobsController#show 요청 1015ms 소요 (job 1089729, DB 504ms)
  2. 21:24:09Z — Job 1089729 running_action 972ms, update 641ms (상태 전이 중)
  3. 21:29:26Z — RecordsController#index latency 급증 시작 (2,306ms)
  4. 21:30:48Z — Elasticsearch 10초 타임아웃 발생 (502 Bad Gateway)
  5. 21:33:20Z — 전체 controller 대상 latency spike (PanosController, BimsController 등)

Scoring#

Confidence 85% · Actionability 28%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 8 code refs, 4 log queries
Code path explicitness 3/3 8 file:line refs
Log evidence 3/3 section, query, pattern
RCA structure 3/3 3/3 sections
Revision history 0/3 0 revision(s)
Agent execution 3/3 success

Actionability#

Dimension Score Detail
Fix complexity 1/5 critical
Affected files 1/5 30 file(s)
Single repo 1/3 2 service(s)
Immediate actions 0/3 absent
Testability 0/3 no test info
External dependency 1/3 external deps found
Data migration 3/3 no migration