ES /docs

Api::V1::FacilitiesController#share (avg 33254ms, max 83140ms)

Service
cupixworks-api
Occurrences
201
Status
Reported
Confidence
85%
Actionability
44%
Cluster ID
277b768e-3b8e-46af-a570-0292385e4cfa
First Seen
2026-06-24 10:23 UTC
Last Seen
2026-08-04 22:19 UTC
Actions

Api::V1::FacilitiesController#share (avg 33254ms, max 83140ms)

What Happened#

2026-06-24 KST 오후 시간대에 PUT /api/v1/facilities/:key/share 요청이 cupixworks-api에서 평균 33초, 최대 83초까지 지연되었다. 단일 요청에서 다수의 사용자(exyte 팀 사례: 약 127명)를 한 번에 공유 대상으로 추가했고, 각 사용자마다 notification-service로 동기 HTTP 호출이 직렬로 발생하면서 응답 시간이 사용자 수에 비례해 선형으로 증가했다.

Quick Facts#

Field Value
resource_name Api::V1::FacilitiesController#share
top_frame app/repositories/concerns/sharable_repository.rb:159-164
trigger per-user fan-out via Cupix::PubSub::Subscribers::UserRecipeGenerator
downstream notification-service HTTP API (/api/recipes/v2, /api/v1/subscriptions)
deploy production-us-west-2-20260624t0500z0-24b9962e-cupixworks, production-eu-central-1-20260624t0532z0-24b9962e-cupixworks
env production (us-west-2, eu-central-1)

Affected Teams#

Team / Domain Error Count Impact
exyte (team_id 783) 2건 이상 (관측된 max 83s 요청 포함) 공유 페이지에서 PUT 요청이 30초~83초 멈춤, 한 차례 ENT10003 검증 실패로 400 응답 후 재시도
cpx-pilot (team_id 110) 1건 1초대 정상 처리, 클러스터 평균에는 영향 없음
기타 us-west-2/eu-central-1 사용자 4건 (cluster occurrence_count) 사용자 수가 많은 공유 요청에서 동일 패턴으로 지연 가능

Timeline#

  1. 2026-06-24 19:23 KST — 클러스터 first_seen. APM 상 share 요청 평균 지연 임계치 초과 시작 (first_seen: 2026-06-24T10:23:45.444Z).
  2. 2026-06-24 19:25:09 KSTexyte 팀의 wjclnb Facility share 요청에서 127건의 subscription of … created, 379건의 recipe created 로그가 동기적으로 누적됨.
  3. 2026-06-24 19:25:10 KST — 같은 요청이 ENT10003 Validation failed: Accessor has already been taken로 400 응답, 총 duration: 83137.58 ms.
  4. 2026-06-24 19:25:12 KST — 동일 사용자/Facility 재시도 성공, 200 응답이지만 duration: 23313.33 ms로 여전히 22초 이상 소요.
  5. 2026-06-24 21:46 KST — 클러스터 last_seen (last_seen: 2026-06-24T12:46:46.873Z), 동일 패턴의 share 요청이 계속 등장.

Scoring#

Confidence 85% · Actionability 44%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 18 code refs, 8 log queries
Code path explicitness 3/3 18 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 18 file(s)
Single repo 1/3 3 service(s)
Immediate actions 0/3 absent
Testability 2/3 test mentioned
External dependency 3/3 no external deps
Data migration 3/3 no migration