Skip to content

Commit

Permalink
Implement S3 archiver (#1055)
Browse files Browse the repository at this point in the history
This closes #290 as the second required archiver.
  • Loading branch information
spetz committed Jul 13, 2024
1 parent d6e5a90 commit fd0e80a
Show file tree
Hide file tree
Showing 16 changed files with 466 additions and 45 deletions.
229 changes: 227 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions configs/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
},
"s3": {
"key_id": "123",
"access_key": "secret",
"key_secret": "secret",
"bucket": "iggy",
"region": "eu-west-1"
"endpoint": "http://localhost:9000",
"region": "eu-west-1",
"tmp_upload_dir": "local_data/s3_tmp"
}
},
"messages": {
Expand Down
15 changes: 12 additions & 3 deletions configs/server.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,21 @@ path = "local_data/archive"
[data_maintenance.archiver.s3]
# Access key ID for the S3 bucket.
key_id = "123"

# Secret access key for the S3 bucket
access_key = "secret"
key_secret = "secret"

# Name of the S3 bucket.
bucket = "iggy"

# Endpoint of the S3 region.
endpoint = "http://localhost:9000"

# Region of the S3 bucket.
region = "eu-west-1"
# Endpoint of the S3 bucket.
bucket = "iggy"

# Temporary directory for storing the data before uploading to S3.
tmp_upload_dir = "local_data/s3_tmp"

[data_maintenance.messages]
# Enables or disables the archiver process for closed segments containing messages.
Expand Down
Loading

0 comments on commit fd0e80a

Please sign in to comment.