ECS bucket available capacity

ECS bucket capacityHow much space do we have until reaching a bucket’s hard quota? Lets consider 2 simple ways to check that.


  • Check the bucket blocking (hard) and notification (soft) quotas.

ECS bucket quotas

  • Check the consumed space via Metering.

ECS bucket size via Metering

  • You double check a consumed via Cyberduck or S3 Browser.

ECS bucket size


  • Authenticate first
  • Auth token is stored into a cookie file
#curl -kv -u "root:password" -c cookiefile
*   Trying
* Connected to ( port 4443 (#0)
* TLS 1.0 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate: localhost
* Server auth using Basic with user 'root'
> GET /login?using-cookies=true HTTP/1.1
> Host:
> Authorization: Basic cm9vdDpDaGFuZ2VNZQ==
> User-Agent: curl/7.51.0
> Accept: */*

< HTTP/1.1 200 OK
< Date: Wed, 19 Apr 2017 17:04:46 GMT
< Content-Type: application/xml
< Content-Length: 93
< Connection: keep-alive
* Added cookie X-SDS-AUTH-TOKEN="BAAcQTdVNERNZ…8=" for domain, path /, expire 1492650286
  • Check how much space is consumed on the bucket.
  • total_size = 2GB
#curl -ks -b cookiefile | xmllint --format -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  • Check soft and hard quotas assigned on the bucket.
  • blockSize = 3GB
#curl -ks -b cookiefile | xmllint --format -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

So we consumed 2 of 3GB. Easy to write a simple script to check how much space we have till a hard quota is reached.

Note: Please be aware that quota checking is not online process. It is checked on a regular basis. So some little over-quota is possible when a load is intensive. With real bucket capacities such potential over-quota is negligible. But if we specify blocking quota as just several GBs, such over-quota can be visible. Don’t be confused by that. Quotas work as designed.

See more about ECS Metering –>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s