K2

作者 cloudflare41e0d1985894无许可证3K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7天前更新

Build and troubleshoot Cloudflare K2 or K2 Streams durable logs. Use for stream setup, producing from Workers or HTTP, configuring retention and inputs, and consuming through subscriptions.

仅含说明DevOps & Cloud
AI 生成的概览

指导设置和排查 Cloudflare K2 持久日志,包括流、生产者、保留策略和订阅。

功能
该技能为构建和排查 Cloudflare K2 或 K2 Streams 持久日志提供指导。它会引导代理查阅最新的 Cloudflare 文档,涵盖创建流、配置、从 Workers 或 HTTP 生产记录、通过订阅消费记录以及限制。它还指向 SQL 转换和任务处理的相关资源。
适用场景
适用于设置 K2 流、从 Workers 或 HTTP 生产记录、配置保留策略和输入,或通过订阅消费记录。也用于排查 K2 持久日志行为以及查询当前限制或可用性。
运行要求
需要访问 Cloudflare 文档,并且进行设置或排查时需要具有 K2 访问权限的 Cloudflare 账户。不包含脚本,仅为说明文档。

Cloudflare K2

K2 is a durable log for decoupling event producers and consumers. Start with the K2 overview, then retrieve the relevant current documentation before giving setup instructions, code, limits, availability, permissions, or API details. The docs are the source of truth over this skill. While cloudflare-docs PR #33858 remains open, use its proposed pages if the public URLs have not been published.

Documentation

TaskDocsCheck for
Create a stream and try K2Get startedPrerequisites, setup sequence, current API examples
Understand streams and subscriptionsConceptsRecord model and delivery behavior
Configure a streamConfigurationInputs, authentication, CORS, retention
Produce from HTTP or a WorkerProduce recordsRequest and binding syntax, encoding, errors, retries
Consume through subscriptionsConsume recordsLeases, acknowledgements, retries, errors
Size a stream or consumerLimitsCurrent quotas and size limits

Retrieve the matching pages above for each task and use their current examples. For capacity or cost questions, check current limits and any published pricing before quoting values. State when a requested pricing or availability detail is not yet published.

For SQL transformation and delivery to R2 Iceberg tables, use the basin skill. For task processing, consult Queues.

来源与署名

来源:cloudflare/skills位于skills/k2提交41e0d19

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架