Introduction and Ceph Object Storage

One: Concepts

Ceph Object Gateway is built on top of an object storage interface librados can provide RESTful gateway leading to the Ceph storage cluster for the application, Ceph Object Storage supports two interfaces


1.S3 Compatible: object storage function provides the majority of the subset of the Amazon S3 RESTful API compatible interface
2.Swift compatible with: an object storage function provides OpenStack Swift


Ceph Ceph object storage using the object gateway daemon (radosgw), the HTTP server daemon is used to interact with Ceph storage cluster, because it provides compatibility with OpenStack Swift and Amazon S3 interface, so Ceph Object gateway has its own user management. , Ceph gateway may store data objects in a file system also has Ceph client or a Ceph Ceph block storage cluster client device data. Swift API and S3 share a common namespace, so you can use an API to write data, and read data using another API.

II: Installation

Firefly (v0.80) starting, running on the gateway Ceph objects Civetweb (ceph-radosgw embedded daemon), rather than on the FastCGI and Apache, using Civetweb simplifies installation and configuration of the gateway Ceph objects, in addition, from v0 .80 after the start, Ceph Object gateway does not support SSL. You can set up a reverse proxy server to use SSL, HTTPS to HTTP request as a request to CivetWeb.


In the working directory on the managed node deployment ceph-deploy in (ie directory has ceph.conf), installation of Ceph Object Gateway Package

[root@ceph-deploy-admin ~]#ceph-deploy install --rgw ceph-node1 ceph-node2 ceph-node3


ceph-common package is a dependency, so ceph-deploy will install it, ceph CLI tool for administrators. To Ceph Object Gateway node to node administrator, which is hoped can be performed on the ceph-deploy three nodes, then execute the following command from the working directory management server

[root@ceph-deploy-admin ~]#ceph-deploy admin ceph-node1 ceph-node2 ceph-node3


Create a gateway instance is created in the working directory Ceph Object gateway management server instances

[root@ceph-deploy-admin ~]#ceph-deploy rgw create ceph-node1 ceph-node2 ceph-node3


The successful completion of the installation, then you can execute the following command, if get returns the following results prove that the installation is completed and running

[root@ceph-deploy-admin ~]#curl http://ceph-node1:7480
<?xml version="1.0" encoding="UTF-8"?>
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">;
<Owner>
<ID>anonymous</ID>
<DisplayName></DisplayName>
</Owner>
<Buckets>
</Buckets>
</ListAllMyBucketsResult>

Guess you like

Origin blog.51cto.com/11093860/2456570