Skip to content

Commit 3e4a619

Browse files
committed
[Artifacts] update pricing and limits docs
1 parent 740c888 commit 3e4a619

File tree

6 files changed

+39
-34
lines changed

6 files changed

+39
-34
lines changed

src/content/docs/artifacts/examples/isomorphic-git.mdx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ type Entry =
114114
};
115115

116116
class MemoryStats {
117-
constructor(private entry: Entry) {}
117+
entry: Entry;
118+
119+
constructor(entry: Entry) {
120+
this.entry = entry;
121+
}
118122

119123
get size() {
120124
return this.entry.kind === "file" ? this.entry.data.byteLength : 0;
@@ -146,9 +150,9 @@ class MemoryStats {
146150
}
147151

148152
export class MemoryFS {
149-
private encoder = new TextEncoder();
150-
private decoder = new TextDecoder();
151-
private entries = new Map<string, Entry>([
153+
encoder = new TextEncoder();
154+
decoder = new TextDecoder();
155+
entries = new Map<string, Entry>([
152156
["/", { kind: "dir", children: new Set(), mtimeMs: Date.now() }],
153157
]);
154158

@@ -163,7 +167,7 @@ export class MemoryFS {
163167
lstat: this.lstat.bind(this),
164168
};
165169

166-
private normalize(input: string) {
170+
normalize(input: string) {
167171
const segments: string[] = [];
168172

169173
for (const part of input.split("/")) {
@@ -182,7 +186,7 @@ export class MemoryFS {
182186
return `/${segments.join("/")}` || "/";
183187
}
184188

185-
private parent(path: string) {
189+
parent(path: string) {
186190
const normalized = this.normalize(path);
187191
if (normalized === "/") {
188192
return "/";
@@ -193,15 +197,15 @@ export class MemoryFS {
193197
return parts.length ? `/${parts.join("/")}` : "/";
194198
}
195199

196-
private basename(path: string) {
200+
basename(path: string) {
197201
return this.normalize(path).split("/").filter(Boolean).pop() ?? "";
198202
}
199203

200-
private getEntry(path: string) {
204+
getEntry(path: string) {
201205
return this.entries.get(this.normalize(path));
202206
}
203207

204-
private requireEntry(path: string) {
208+
requireEntry(path: string) {
205209
const entry = this.getEntry(path);
206210
if (!entry) {
207211
throw new Error(`ENOENT: ${path}`);
@@ -210,7 +214,7 @@ export class MemoryFS {
210214
return entry;
211215
}
212216

213-
private requireDir(path: string) {
217+
requireDir(path: string) {
214218
const entry = this.requireEntry(path);
215219
if (entry.kind !== "dir") {
216220
throw new Error(`ENOTDIR: ${path}`);

src/content/docs/artifacts/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Artifacts is in beta. Use Artifacts to persist file trees such as repositories,
4444
href="/artifacts/observability/"
4545
icon="document"
4646
>
47-
Explore metrics and queries for understanding Artifact activity.
47+
Explore metrics for understanding Artifact activity.
4848
</LinkTitleCard>
4949

5050
<LinkTitleCard title="Examples" href="/artifacts/examples/" icon="document">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Observability
3-
description: Monitor Artifact usage with metrics and queries.
3+
description: Monitor Artifact usage with metrics.
44
pcx_content_type: navigation
55
sidebar:
66
order: 5
@@ -10,6 +10,6 @@ sidebar:
1010

1111
import { DirectoryListing } from "~/components";
1212

13-
Use these pages to understand Artifact health, activity, and consumption patterns.
13+
Use this page to understand Artifact health, activity, and consumption patterns.
1414

1515
<DirectoryListing />

src/content/docs/artifacts/observability/queries.mdx

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/content/docs/artifacts/platform/limits.mdx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ Limits that apply to creating, importing, cloning, and pushing Artifacts are det
1010

1111
These limits cover naming rules and request rates for control-plane and git operations.
1212

13-
| Feature | Limit |
14-
| -------------------------- | ---------------------------------------------------------- |
15-
| Control-plane request rate | 2,000 requests per 10 seconds |
16-
| Git request rate | 2,000 requests per 10 seconds |
17-
| Namespace and repo names | 3-63 characters, lowercase only, `a-z` and hyphens allowed |
18-
| Maximum name length | 63 characters |
13+
| Feature | Limit |
14+
| --------------------------------- | ---------------------------------------------------------- |
15+
| Control-plane request rate | 2,000 requests per 10 seconds |
16+
| Git request rate (per namespace) | 2,000 requests per 10 seconds |
17+
| Maximum storage per repository | 10 GB |
18+
| Maximum storage per account | 1 TB (can be raised on request) |
19+
| Maximum number of repositories | Unlimited |
20+
| Maximum number of namespaces | Unlimited |
21+
| Namespace and repo names | 3-63 characters, lowercase only, `a-z` and hyphens allowed |
22+
| Maximum name length | 63 characters |

src/content/docs/artifacts/platform/pricing.mdx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ Artifacts pricing is billed on two dimensions:
1919

2020
### Artifacts pricing
2121

22-
| Unit | Included | Price |
23-
| ----------------------------- | ---------------------- | ------------------------------------- |
24-
| Operations (1,000 operations) | First 10,000 per month | $0.15 per additional 1,000 operations |
25-
| Storage (GB-mo) | First 1 GB per month | $0.50 per additional GB-mo |
22+
| Unit | Workers Free | Workers Paid |
23+
| ----------------------------- | ------------ | ------------ |
24+
| Operations (1,000 operations) | coming soon | First 10,000 per month + $0.15 per additional 1,000 operations |
25+
| Storage (GB-mo) | coming soon | First 1 GB per month + $0.50 per additional GB-mo |
26+
27+
### Storage usage
28+
29+
Storage is billed using gigabyte-month (`GB-mo`) as the billing metric, identical to [Durable Objects SQL storage](/durable-objects/platform/pricing/#sqlite-storage-backend). A `GB-mo` is calculated by averaging the peak storage per day over a billing period of 30 days.
30+
31+
- Storage is calculated across all repositories.
32+
- Replicas do not add storage charges. Storage is replicated by default, and you do not need to manage repository availability or uptime.
33+
- Repos remain stored until you explicitly delete them.

0 commit comments

Comments
 (0)