ES /docs

Api::V1::ClustersController#create (avg 14439ms, max 16562ms)

Service
cupixworks-api
Occurrences
40
Status
Reported
Confidence
85%
Actionability
28%
Cluster ID
a3355624-1f25-41ce-b166-175797058f6a
First Seen
2026-06-24 21:51 UTC
Last Seen
2026-08-04 19:46 UTC
Actions

Api::V1::ClustersController#create (avg 14439ms, max 16562ms)

What Happened#

2026-06-25 06:51~07:01 KST 사이에 cupixworks-apiPOST /api/v1/clusters (Api::V1::ClustersController#create) 요청 2건이 평균 14.4초, 최대 16.5초 걸렸다. 같은 시간대에 동일 컨트롤러의 index 액션이 Elasticsearch 호출 도중 10초 timeout을 맞고 502를 반환했고, Pano#_update_documentNotFound - attributes_in_database warning을 대량으로 출력하고 있었다. cluster create는 모델 저장 직후 Searchable after_commit 콜백이 동기로 ES index를 호출하므로, 같은 ES 지연이 응답 시간에 그대로 누적된 것으로 보인다.

Quick Facts#

Field Value
resource_name Api::V1::ClustersController#create
top_frame app/controllers/api/v1/clusters_controller.rb:23-27
avg_duration_ms 14439
max_duration_ms 16562
occurrences 2
env production, region us-west-2, tenant cupix
symptom_type latency (no exception thrown — HTTP 200)

Affected Teams#

Team / Domain Error Count Impact
capture / cluster ingestion 2 slow create + 1 dependent index 502 클러스터 생성이 14~16초 걸리는 동안 호출 측은 timeout/재시도 가능. 동시간대 Api::V1::ClustersController#index 502도 동일 ES 의존성에서 발생

Timeline#

  1. 2026-06-25 06:51 KST — 첫 번째 슬로우 ClustersController#create 요청 시작 (cluster first_seen).
  2. 2026-06-25 06:54:54 KSTClusterRepository"Operation timed out after 10002 milliseconds with 0 bytes received" error 로깅 (Elasticsearch HTTP timeout).
  3. 2026-06-25 06:54:55 KSTApi::V1::ClustersController#index 502 Bad Gateway error on Elasticsearch (BG10002) 응답.
  4. 2026-06-25 06:51~07:01 KST — 같은 시간대에 Pano#_update_documentNotFound - attributes_in_database warning이 분당 수십 건 발생.
  5. 2026-06-25 07:01 KST — 두 번째 슬로우 ClustersController#create 요청 (cluster last_seen). 이후 동일 패턴 추가 발견되지 않음.

Scoring#

Confidence 85% · Actionability 28%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 15 code refs, 7 log queries
Code path explicitness 3/3 15 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 14 file(s)
Single repo 1/3 4 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