Benchmarking Ceph Object Gateway performance

Benchmark Ceph Object Gateway performance with the s3cmd tool.

Before you begin

Before you begin, make sure that you have the following prerequisites in place:
  • A running IBM Storage Ceph cluster.
  • Root-level access to the node.
  • s3cmd installed on the nodes.

About this task

You can use the s3cmd tool to benchmark Ceph Object Gateway performance.

Use get and put requests to determine the performance.

Procedure

  1. Upload a file and measure the speed. The time command measures the duration of upload.
    time s3cmd put PATH_OF_SOURCE_FILE PATH_OF_DESTINATION_FILE
    For example,
    time s3cmd put /path-to-local-file s3://bucket-name/remote/file
    Replace /path-to-local-file with the file you want to upload and s3://bucket-name/remote/file with the destination in your S3 bucket.
  2. Download a file and measure the speed. The time command measures the duration of download.
    time s3cmd get PATH_OF_DESTINATION_FILE DESTINATION_PATH
    For example,
    time s3cmd get s3://bucket-name/remote/file /path-to-local-destination
    Replace s3://bucket-name/remote/file with the S3 object that you want to download and /path-to-local-destination with the local directory where you want to save the file.
  3. List all the objects in the specified bucket and measure response time.
    time s3cmd ls s3://BUCKET_NAME
    For example,
    time s3cmd ls s3://bucket-name
  4. Analyze the output to calculate upload and download speed. Measure response time reported by the time command.