coder / coder/internal

Investigate prebuild create vs claim build times in dogfood

Đang mở
#992 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
project/prebuilds
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
3
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Description

In our dogfood environment, the “Write Coder on Coder” template has prebuilds enabled for certain presets. We recently introduced new metrics for prebuild creation time (building into the pool) and prebuild claim time https://github.com/coder/coder/pull/19503, and added them to our observability stack.

These metrics show that claim durations sometimes exceed creation by about 1–2 seconds. Because prebuilds maintain a ready-to-use pool to reduce workspace start time, claims should be consistently faster than creations.

We already use a Terraform `lifecycle` block with `ignore_changes` as recommended in the [docs](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces#preventing-resource-replacement), yet this pattern suggests Terraform may still be replacing or re-provisioning resources during claim, or the claim path is performing extra work.

For reference, see the attached screenshot comparing average build times for a prebuild creation versus a claim on the Falkenstein preset in our dogfood instance.

Image

Image

## Investigation scope

Investigate the source of the additional claim-path latency relative to the create path.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu với việc tạo prebuild và các chỉ số claim trong observability stack, so sánh dữ liệu dogfood của Falkenstein và khối lifecycle của Terraform có ignore_changes được mô tả trong tài liệu liên kết. Theo dõi các đường dẫn create và claim để xác định nguồn gốc của 1–2 giây phát sinh thêm; được coi là hoàn tất khi độ trễ claim bổ sung đã được giải thích và mọi replacement hoặc reprovisioning của Terraform đã được xác nhận hoặc loại trừ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
terraform
Lĩnh vực
infrastructure, performance
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.