Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change terminology Sleeping to Archived #221

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2230,9 +2230,9 @@
"description": "The name of the parent database that owns the schema for this database. See [Multi-DB Schemas](/features/multi-db-schemas).",
"example": ""
},
"sleeping": {
"archived": {
"type": "boolean",
"description": "The current status of the database. If `true`, the database is sleeping and requires a manual wakeup.",
"description": "The current status of the database. If `true`, the database is archived and requires a manual unarchive step.",
"example": false
}
}
Expand Down Expand Up @@ -2542,7 +2542,7 @@
},
"archived": {
"type": "boolean",
"description": "Groups on the free tier go to sleep after some inactivity.",
"description": "Groups on the free tier get archived after some inactivity.",
"example": false
}
}
Expand Down
10 changes: 5 additions & 5 deletions cli/db/wakeup.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: db wakeup
sidebarTitle: wakeup
title: db unarchive
sidebarTitle: unarchive
---

You can wakeup inactive databases by running the following command:
You can unarchive inactive databases by running the following command:

```bash
turso db wakeup <database-name>
turso db unarchive <database-name>
```

<Info>

Databases go to sleep after 10 days of inactivity for users on a free plan &mdash; [learn more](/features/scale-to-zero).
Databases get archived after 10 days of inactivity for users on a free plan &mdash; [learn more](/features/scale-to-zero).

</Info>
16 changes: 16 additions & 0 deletions cli/group/unarchive.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: group unarchive
sidebarTitle: unarchive
---

You can unarchive inactive databases by running the following command:

```bash
turso group unarchive <group-name>
```

<Info>

Databases get archived after 10 days of inactivity for users on a free plan &mdash; [learn more](/features/scale-to-zero).

</Info>
16 changes: 0 additions & 16 deletions cli/group/wakeup.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion features/scale-to-zero.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ When a request is made, the databases automatically scale back up to one. There

<Info>

[Database groups](/concepts#groups) with extended inactivity (**10 days**) will require a manual "wake up" operation using the [CLI](/cli/group/wakeup) or API.
[Database groups](/concepts#groups) with extended inactivity (**10 days**) will require a manual "unarchive" operation using the [CLI](/cli/group/unarchive) or API.

</Info>
12 changes: 10 additions & 2 deletions mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}
]
},
"cli/db/wakeup"
"cli/db/unarchive"
]
},
"cli/dev",
Expand All @@ -211,7 +211,7 @@
"cli/group/tokens/invalidate"
]
},
"cli/group/wakeup"
"cli/group/unarchive"
]
},
{
Expand Down Expand Up @@ -744,6 +744,14 @@
{
"source": "/locations",
"destination": "/concepts#locations"
},
{
"source": "/cli/db/wakeup",
"destination": "/cli/db/unarchive"
},
{
"source": "/cli/group/wakeup",
"destination": "/cli/group/unarchive"
}
],
"analytics": {
Expand Down