Skip to content

Commit 0c1946b

Browse files
authored
docs: disable and remove cdn unit (#5853)
1 parent e825a5c commit 0c1946b

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: "Migrate 0.49"
3+
weight: 1
4+
---
5+
6+
## CDN service
7+
8+
The release 0.49 introduced a new parameter in CDN configuration to disable and remove a CDN unit.
9+
In the previous version 0.48, you migrate log from CDS to CDN, by adding a temporary CDN Unit [here]({{< relref "/hosting/upgrade/migrate_0.48.md" >}}). Time is coming to disabled it.
10+
In the next release (0.50), all logs datas in CDS will be deleted, and CDN will become the only way to manage logs.
11+
12+
13+
# Disable CDS Unit
14+
15+
Add in your cdn configuration, the property "disableSync = true" for the CDS Unit
16+
17+
```toml
18+
[cdn.storageUnits.storages.cds-backend]
19+
syncParallel = 6
20+
disableSync = true
21+
[cdn.storageUnits.storages.cds-backend.cds]
22+
host = "https://<your.cds.api>"
23+
token = "<your.token>"
24+
```
25+
26+
# Remove CDS Unit item from CDN Database
27+
28+
To remove CDS Unit items, follow these steps:
29+
30+
* Disable CDS Unit in CDN
31+
* Retrieve CDS Unit identifier usings cdsctl
32+
33+
```sh
34+
cdsctl -c prod admin cdn unit list
35+
```
36+
* Mark CDS Unit item as delete using cdsctl
37+
```sh
38+
cdsctl admin cdn unit delete-items <unit_id>
39+
```
40+
41+
# Remove CDS Unit from CDN Database
42+
43+
To remove CDS Unit from CDN, follow these steps:
44+
45+
* Remove all CDS Unit items from CDN database
46+
* Remove the unit using cdsctl
47+
48+
```sh
49+
cdsctl admin cdn unit delete <unit_id>
50+
```

0 commit comments

Comments
 (0)