Skip to content

Commit a15e29d

Browse files
authored
fix: adjust bucket lifecycle rules (#2098)
1 parent 5e0ce6c commit a15e29d

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
---
22
title: Preparing Storage
33
sidebar_label: Preparing Storage
4-
description:
5-
Recommendations for preparing storage for Databend deployments.
4+
description: Recommendations for preparing storage for Databend deployments.
65
---
76

87
This topic explains the recommended storage configurations for deploying Databend in production environments.
98

10-
119
## AWS S3
1210

1311
When deploying Databend with AWS S3 in production environments, consider the following recommendations:
1412

15-
1613
### Security
1714

1815
Block public access to your S3 bucket to prevent unauthorized access to your data. You can configure the following settings to restrict public access:
1916

2017
Go to the AWS Management Console, select the S3 service, enter the bucket name, and click on the **Permissions** tab. Under the **Block public access** section, click **Edit**, then select the **Block all public access** option and click **Save**.
2118

22-
2319
### Encryption
2420

2521
Enable server-side encryption on your S3 bucket to protect your data at rest. You can choose from the following encryption options:
@@ -29,24 +25,37 @@ Enable server-side encryption on your S3 bucket to protect your data at rest. Yo
2925

3026
Go to the AWS Management Console, select the S3 service, enter the bucket name, and click on the **Properties** tab. Under the **Default encryption** section, click **Edit**, then select the encryption option and click **Save**.
3127

32-
3328
### Bucket Versioning
3429

3530
Enable versioning on your S3 bucket to protect against accidental deletion of objects. Versioning allows you to recover objects from accidental deletion or overwrite.
3631

3732
Go to the AWS Management Console, select the S3 service, enter the bucket name, and click on the **Properties** tab. Under the **Versioning** section, click **Edit**, then select **Enable versioning** and click **Save**.
3833

39-
4034
### Bucket Lifecycle Policies
4135

4236
Lifecyle rule is needed when Bucket Versioning is enabled. You can configure lifecycle policies to automatically delete old versions of objects or transition objects to different storage classes.
4337

44-
1. Go to the AWS Management Console, select the S3 service, enter the bucket name, and click on the **Management** tab. Under the **Lifecycle** section, click **Add lifecycle rule** to create a new rule.
38+
- Configure lifecycle rule to delete old versions of objects.
39+
40+
1. Go to the AWS Management Console, select the S3 service, enter the bucket name, and click on the **Management** tab. Under the **Lifecycle** section, click **Add lifecycle rule** to create a new rule.
41+
42+
2. Input a rule name, select the object prefix, and configure the rule actions: **Permanently delete noncurrent versions of objects**.
43+
44+
3. Input the Days after object become noncurrent: 7 days recommended.
45+
46+
4. Input the Number of versions to retain: 0 recommended.
47+
48+
5. Click **Create rule** to save the lifecycle policy.
49+
50+
- Configure lifecycle rules to clean up expired delete markers and incomplete multipart uploads.
51+
52+
1. Go to the AWS Management Console, select the S3 service, enter the bucket name, and click on the **Management** tab. Under the **Lifecycle** section, click **Add lifecycle rule** to create a new rule.
4553

46-
2. Input a rule name, select the object prefix, and configure the rule actions: **Permanently delete noncurrent versions of objects**.
54+
2. Input a rule name, select the object prefix, and configure the rule actions: **Delete expired object delete markers or incomplete multipart uploads**.
4755

48-
3. Input the Days after object become noncurrent: 7 days recommended.
56+
3. Enable both options by toggling the checkboxes:
4957

50-
4. Input the Number of versions to retain: 0 recommended.
58+
- **Expired object delete markers**: Removes delete markers for expired objects
59+
- **Incomplete multipart uploads**: Cleans up incomplete multipart uploads after the specified number of days
5160

52-
5. Click **Create rule** to save the lifecycle policy.
61+
4. Click **Create rule** to save the lifecycle policy.

0 commit comments

Comments
 (0)