惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
博客园 - 聂微东
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog RSS Feed
小众软件
小众软件
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
B
Blog
H
Help Net Security
D
Docker
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
月光博客
月光博客
博客园 - 司徒正美

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Use Ceph RGW for Media Asset Management
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Why Ceph RGW for Media Asset Management?

Media organizations deal with large binary files (images, video, audio) that require:

  • Scalable object storage without per-file limitations
  • High-throughput access for video streaming
  • Multipart upload for large files
  • Pre-signed URLs for time-limited client access
  • S3-compatible API compatible with media tooling

Ceph RGW handles all of these natively.

Step 1: Configure the Media Bucket

aws s3 mb s3://media-assets --endpoint-url https://rgw.example.com

# Set bucket for public read (if serving public media)
aws s3api put-bucket-acl \
  --bucket media-assets \
  --acl public-read \
  --endpoint-url https://rgw.example.com

Step 2: Upload Large Media Files with Multipart

For files >100MB, use multipart upload:

First, configure the multipart chunk size:

aws configure set default.s3.multipart_chunksize 64MB

Then upload:

aws s3 cp large-video.mp4 s3://media-assets/videos/2026/large-video.mp4 \
  --expected-size 5368709120 \
  --endpoint-url https://rgw.example.com

Step 3: Generate Pre-Signed URLs for Client Downloads

# Generate a URL valid for 1 hour (3600 seconds)
aws s3 presign s3://media-assets/videos/2026/large-video.mp4 \
  --expires-in 3600 \
  --endpoint-url https://rgw.example.com

Users can download directly from the pre-signed URL without credentials.

Step 4: Generate Pre-Signed URLs with Python

import boto3
from botocore.config import Config

s3 = boto3.client(
    's3',
    endpoint_url='https://rgw.example.com',
    aws_access_key_id='your-access-key',
    aws_secret_access_key='your-secret-key',
    config=Config(signature_version='s3v4')
)

url = s3.generate_presigned_url(
    'get_object',
    Params={'Bucket': 'media-assets', 'Key': 'videos/2026/large-video.mp4'},
    ExpiresIn=3600
)

print(url)

Step 5: Organize Assets with Metadata

Use custom metadata to tag assets:

aws s3 cp thumbnail.jpg s3://media-assets/images/thumbnail.jpg \
  --metadata "project=campaign-2026,format=JPEG,width=1920,height=1080" \
  --endpoint-url https://rgw.example.com

Retrieve metadata:

aws s3api head-object \
  --bucket media-assets \
  --key images/thumbnail.jpg \
  --endpoint-url https://rgw.example.com | jq '.Metadata'

Step 6: Tune RGW for High-Bandwidth Streaming

Configure RGW for large object throughput:

ceph config set client.rgw rgw_max_chunk_size 4194304
ceph config set client.rgw rgw_put_obj_min_window_size 16777216
ceph config set client.rgw rgw_max_put_size 137438953472

Step 7: Enable Object Lifecycle for Expired Assets

{
  "Rules": [{
    "ID": "expire-temp-media",
    "Filter": { "Prefix": "temp/" },
    "Status": "Enabled",
    "Expiration": { "Days": 7 }
  }]
}
aws s3api put-bucket-lifecycle-configuration \
  --bucket media-assets \
  --lifecycle-configuration file://media-lifecycle.json \
  --endpoint-url https://rgw.example.com

Disabling Compression for Media

Since video and image files are already compressed, disable BlueStore compression on the RGW pool:

ceph osd pool set default.rgw.buckets.data compression_mode none

Summary

Ceph RGW provides a high-throughput, scalable backend for media asset management. Use multipart uploads for large files, pre-signed URLs for time-limited client access, and custom metadata for asset tagging. Tune rgw_max_chunk_size and related settings for streaming workloads, and disable compression on RGW data pools when storing already-compressed media to avoid CPU overhead without savings.