ARTICLE - CDN, Security & Monitoring

Upyun CDN and Object Storage Setup

Upyun's practical fit is a shared path for storage, image processing, and delivery; cost planning still has to separate CDN traffic, dynamic requests, storage class, and retrieval.

2026-11-25 16IDC original 6 views
Advertisement

Upyun can suit sites that want to manage object storage, image processing, and CDN delivery in one product path, but that does not make the bill a single line item. Estimate usage by region and storage class, then check the current price calculator. A manual purge is needed after changes to a custom origin; Upyun says changes to resources stored with its cloud storage are refreshed automatically.

How Storage, Image Processing, and Delivery Connect

After configuring cloud storage as the CDN origin, uploads and reads can use one product path. Image operations are specified in the image URL using a separator and parameters for dimensions or output format; the supported operations are listed in Upyun's image-processing documentation. The diagram separates upload and read paths so you can check the origin configuration and request parameters.

Upyun Storage and Image Processing Path Upload Upload API Object storage API or SDK Configure as CDN origin Read Image URL CDN or storage Image transform Image response Parameters in URL Path depends on setup Use supported options Check response format Scope: Upyun cloud storage, CDN, and image-processing documentation
Figure 1: Upyun storage and image processing path (Source: Upyun cloud storage, CDN, and image-processing documentation)

Before onboarding, confirm that the image domain points to the intended CDN service and that the origin points to the expected storage bucket. Test both an original image and a transformed URL. Upyun documents URL-based image processing; its listed output formats include JPG, PNG, and WebP, and the quality parameter range is 1–99. Do not assume an unlisted format or an extra image-processing fee.

Estimate Costs by Region and Storage Class

The Upyun price calculator, checked on 2026-11-29, lists CDN traffic, dynamic requests, HTTPS requests, and storage as separate items in RMB. The figures below are the values currently displayed, not a contract quote; confirm the service region, billing rules, and account terms before purchase.

Billing item Value shown by calculator Check when budgeting
CDN traffic: mainland China RMB 0.29/GB Actual acceleration region and contract rate
CDN traffic: Asia-Pacific / Europe and Americas RMB 0.89/GB / RMB 0.39/GB Estimate each user region separately
Dynamic requests: mainland / Asia-Pacific / Europe and Americas RMB 0.02 / 0.06 / 0.03 per 1,000 requests Request definition and regional attribution
HTTPS requests: mainland / Asia-Pacific / Europe and Americas RMB 0.05 / 0.15 / 0.07 per 10,000 requests Which HTTPS requests are counted
Standard object storage RMB 0.0043/GB-day Estimate daily stored volume
Infrequent-access storage RMB 0.0027/GB-day Plus RMB 0.0325/GB retrieval and RMB 0.5/GB public egress

These billing units mean storage and delivery need separate estimates. In addition to CDN traffic, dynamic requests and HTTPS requests may be billed separately; infrequent-access storage also lists retrieval and public-egress charges. Use logs or a workload estimate for each input, and do not read a per-day storage price as a monthly rate. See the Upyun price calculator for the current figures.

Upyun's image-processing documentation says image processing is free. Do not model resize, crop, or format conversion as a per-call charge without a current official source. The same documentation requires account verification and an existing CDN or cloud-storage service; available features depend on the configured service.

When to Purge the Cache Manually

Resources stored with Upyun cloud storage are refreshed automatically when they change, according to Upyun's purge documentation. For a CDN using a custom origin, you can call the purge API after updating origin files. The API signs a newline-separated URL list and sends that list as a form field; the documented limit is 600 URLs per minute.

This Bash example needs the bucket, operator, and password in environment variables. Replace the sample domain and paths with URLs on your configured service. The documented API endpoint uses HTTP, so send the signed request only from a trusted CI runner or controlled environment; do not print or store the signature.

: "${UPYUN_BUCKET:?set UPYUN_BUCKET}"
: "${UPYUN_OPERATOR:?set UPYUN_OPERATOR}"
: "${UPYUN_OPERATOR_PASSWORD:?set UPYUN_OPERATOR_PASSWORD}"

BUCKET=$UPYUN_BUCKET
OPERATOR=$UPYUN_OPERATOR
PASSWORD=$UPYUN_OPERATOR_PASSWORD
URL_LIST=$'http://cdn.example.com/index.html\nhttp://cdn.example.com/assets/app.js'
DATE=$(LC_ALL=C date -u '+%a, %d %b %Y %H:%M:%S GMT')

PASSWORD_MD5=$(printf '%s' "$PASSWORD" | openssl dgst -md5 | awk '{print $NF}')
SIGN=$(printf '%s&%s&%s&%s' "$URL_LIST" "$BUCKET" "$DATE" "$PASSWORD_MD5" \
  | openssl dgst -md5 | awk '{print $NF}')

curl -sS -X POST 'http://purge.upyun.com/purge/' \
  -H "Authorization: UpYun $BUCKET:$OPERATOR:$SIGN" \
  -H "Date: $DATE" \
  --form-string "purge=$URL_LIST" \
  -w '\nHTTP %{http_code}\n'

Do not treat HTTP status alone as proof that every URL was accepted: the API returns JSON, and invalid_domain_of_url should not contain a target URL. For 401 responses, verify the bucket, operator, signature, and GMT date; for 406, check the per-minute URL limit. Do not purge resources stored with Upyun cloud storage a second time.

Verify an Image Transformation

Replace the sample path with an original image URL served by your configured service, then append documented processing parameters:

IMAGE_URL='https://cdn.example.com/images/sample.jpg!/fw/800/format/webp/quality/80'
curl -sS -I "$IMAGE_URL"

A successful response with Content-Type: image/webp confirms that the request returned a WebP representation. If it fails, check the domain, source-image permissions, configured separator, and supported parameters. This check does not guarantee a smaller download; compare the result against the original image for your content.

Limitations

  • Calculator values can change and do not replace account terms, promotions, or a formal invoice; this article records the visible public values checked on 2026-11-29.
  • The image-processing documentation lists JPG, PNG, and WebP output; do not rely on an unlisted output format or unverified parameter.
  • Manual purge is for custom-origin changes; Upyun says changes to resources in its cloud storage are refreshed automatically.
  • The purge API is limited to 600 URLs per minute. Batch larger releases and inspect the JSON response for invalid domains.
  • URL parameters are visible to clients. Use a separate access-control mechanism for private content rather than publishing an unauthenticated private-resource URL.

FAQ

Does Upyun charge a fee for image processing?

No separate image-processing fee is documented. Upyun lists JPG, PNG, and WebP output, and a quality range of 1–99. Supported operations can depend on the configured service. Its documentation also requires a verified account and an existing CDN or storage service. Budget traffic, requests, and storage separately; free transforms do not waive delivery charges.

Do I need to purge the CDN after uploading to Upyun cloud storage?

Usually not. Upyun's purge documentation says changes to cloud-storage resources are refreshed automatically. The manual API is for changes on a custom origin. Confirm the configured origin before adding a purge job to a release pipeline, and inspect the API response for invalid domains.

Why can an HTTP 200 purge response still list invalid URLs?

Not always; a 200 response may still list invalid domains. Upyun returns JSON with an invalid_domain_of_url field; inspect it, check the domain configuration, and ensure the signed URL order matches the purge form contents. More than 600 URLs in a minute returns 406.

Should I combine Upyun cloud storage and CDN?

Use one setup when teams share upload and cache operations. Separate them when permissions, billing ownership, or compliance boundaries differ. Upyun's calculator currently lists standard storage at RMB 0.0043/GB-day and domestic CDN traffic at RMB 0.29/GB; those remain separate bill lines even with one vendor. Check current terms before ordering.

Related Providers

  • Qiniu: compare another domestic object-storage, CDN, and image-processing setup.
  • Aliyun CDN: assess delivery when your other cloud resources already use Alibaba Cloud.
  • Cloudflare: assess international delivery or edge-processing requirements.

References

Community & Resources

Original source: 16IDC original ↗