2013-12-07 21:07:38 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
.
|
2015-01-20 16:28:00 +00:00
|
|
|
.TH "RADOSGW" "8" "January 20, 2015" "dev" "Ceph"
|
2009-10-28 17:54:01 +00:00
|
|
|
.SH NAME
|
2009-10-28 18:16:17 +00:00
|
|
|
radosgw \- rados REST gateway
|
2011-09-09 23:25:14 +00:00
|
|
|
.
|
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
|
|
|
.
|
2013-12-07 21:07:38 +00:00
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
2009-10-28 17:54:01 +00:00
|
|
|
.SH SYNOPSIS
|
2011-09-09 23:25:14 +00:00
|
|
|
.nf
|
|
|
|
\fBradosgw\fP
|
|
|
|
.fi
|
|
|
|
.sp
|
2009-10-28 17:54:01 +00:00
|
|
|
.SH DESCRIPTION
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBradosgw\fP is an HTTP REST gateway for the RADOS object store, a part
|
|
|
|
of the Ceph distributed storage system. It is implemented as a FastCGI
|
|
|
|
module using libfcgi, and can be used in conjunction with any FastCGI
|
|
|
|
capable web server.
|
2009-10-28 17:54:01 +00:00
|
|
|
.SH OPTIONS
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
2009-10-28 17:54:01 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-c ceph.conf, \-\-conf=ceph.conf
|
2015-01-14 18:55:28 +00:00
|
|
|
Use \fBceph.conf\fP configuration file instead of the default
|
2011-09-09 23:25:14 +00:00
|
|
|
\fB/etc/ceph/ceph.conf\fP to determine monitor addresses during startup.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 17:54:01 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-m monaddress[:port]
|
2015-01-14 18:55:28 +00:00
|
|
|
Connect to specified monitor (instead of looking through \fBceph.conf\fP).
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-i ID, \-\-id ID
|
|
|
|
Set the ID portion of name for radosgw
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-n TYPE.ID, \-\-name TYPE.ID
|
|
|
|
Set the rados user name for the gateway (eg. client.radosgw.gateway)
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-cluster NAME
|
|
|
|
Set the cluster name (default: ceph)
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-d
|
|
|
|
Run in foreground, log to stderr
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-f
|
|
|
|
Run in foreground, log to usual location
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-08-10 20:42:37 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-rgw\-socket\-path=path
|
2011-08-10 20:42:37 +00:00
|
|
|
Specify a unix domain socket path.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
2015-01-14 18:55:28 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-rgw\-region=region
|
|
|
|
The region where radosgw runs
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-rgw\-zone=zone
|
|
|
|
The zone where radosgw runs
|
|
|
|
.UNINDENT
|
2011-12-16 21:01:05 +00:00
|
|
|
.SH CONFIGURATION
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2015-01-20 16:28:00 +00:00
|
|
|
Earlier RADOS Gateway had to be configured with \fBApache\fP and \fBmod_fastcgi\fP\&.
|
2015-01-14 18:55:28 +00:00
|
|
|
Now, \fBmod_proxy_fcgi\fP module is used instead of \fBmod_fastcgi\fP as the later
|
|
|
|
doesn\(aqt come under a free license. \fBmod_proxy_fcgi\fP works differently than a
|
|
|
|
traditional FastCGI module. This module requires the service of \fBmod_proxy\fP
|
|
|
|
which provides support for the FastCGI protocol. So, to be able to handle
|
|
|
|
FastCGI protocol, both \fBmod_proxy\fP and \fBmod_proxy_fcgi\fP have to be present
|
|
|
|
in the server. Unlike \fBmod_fastcgi\fP, \fBmod_proxy_fcgi\fP cannot start the
|
|
|
|
application process. Some platforms have \fBfcgistarter\fP for that purpose.
|
|
|
|
However, external launching of application or process management may be available
|
|
|
|
in the FastCGI application framework in use.
|
|
|
|
.sp
|
|
|
|
\fBApache\fP can be configured in a way that enables \fBmod_proxy_fcgi\fP to be used
|
|
|
|
with localhost tcp or through unix domain socket. \fBmod_proxy_fcgi\fP that doesn\(aqt
|
|
|
|
support unix domain socket such as the ones in Apache 2.2 and earlier versions of
|
|
|
|
Apache 2.4, needs to be configured for use with localhost tcp.
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
2015-01-14 18:55:28 +00:00
|
|
|
.IP 1. 3
|
|
|
|
Modify \fB/etc/ceph/ceph.conf\fP file to make radosgw use tcp instead of unix
|
|
|
|
domain socket.
|
|
|
|
.INDENT 3.0
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 3.5
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2015-01-14 18:55:28 +00:00
|
|
|
[client.radosgw.gateway]
|
|
|
|
host = gateway
|
|
|
|
keyring = /etc/ceph/keyring.radosgw.gateway
|
2009-10-28 18:16:17 +00:00
|
|
|
|
2015-01-14 18:55:28 +00:00
|
|
|
; ********
|
|
|
|
; tcp fastcgi
|
|
|
|
rgw socket path = ""
|
|
|
|
rgw frontends = fastcgi socket_port=9000 socket_host=0.0.0.0
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2015-01-14 18:55:28 +00:00
|
|
|
.IP 2. 3
|
|
|
|
Modify Apache\(aqs configuration file so that \fBmod_proxy_fcgi\fP can be used
|
|
|
|
with localhost tcp.
|
2015-01-20 16:28:00 +00:00
|
|
|
.sp
|
|
|
|
Debian/Ubuntu:
|
|
|
|
.INDENT 3.0
|
|
|
|
.INDENT 3.5
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName localhost
|
|
|
|
DocumentRoot /var/www/html
|
|
|
|
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
|
|
|
|
|
|
LogLevel debug
|
|
|
|
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteRule .* \- [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
|
|
|
|
|
|
|
SetEnv proxy\-nokeepalive 1
|
|
|
|
|
|
|
|
ProxyPass / fcgi://127.0.01:9000/
|
|
|
|
</VirtualHost>
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
|
|
|
.sp
|
|
|
|
CentOS/RHEL:
|
2015-01-14 18:55:28 +00:00
|
|
|
.INDENT 3.0
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 3.5
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2015-01-14 18:55:28 +00:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName localhost
|
|
|
|
DocumentRoot /var/www/html
|
|
|
|
|
2015-01-20 16:28:00 +00:00
|
|
|
ErrorLog /var/log/httpd/error.log
|
|
|
|
CustomLog /var/log/httpd/access.log combined
|
2015-01-14 18:55:28 +00:00
|
|
|
|
|
|
|
LogLevel debug
|
|
|
|
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteRule .* \- [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
|
|
|
|
|
|
|
SetEnv proxy\-nokeepalive 1
|
|
|
|
|
|
|
|
ProxyPass / fcgi://127.0.01:9000/
|
|
|
|
</VirtualHost>
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2015-01-14 18:55:28 +00:00
|
|
|
.IP 3. 3
|
|
|
|
Modify Apache\(aqs configuration file so that \fBmod_proxy_fcgi\fP can be used
|
|
|
|
through unix domain socket.
|
2015-01-20 16:28:00 +00:00
|
|
|
.sp
|
|
|
|
Debian/Ubuntu:
|
2015-01-14 18:55:28 +00:00
|
|
|
.INDENT 3.0
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 3.5
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2015-01-14 18:55:28 +00:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName localhost
|
|
|
|
DocumentRoot /var/www/html
|
|
|
|
|
2015-01-20 16:28:00 +00:00
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
|
|
|
|
|
|
LogLevel debug
|
|
|
|
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteRule .* \- [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
|
|
|
|
|
|
|
ProxyPass / unix:///tmp/.radosgw.sock|fcgi://localhost:9000/ disablereuse=On
|
|
|
|
</VirtualHost>
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
|
|
|
.sp
|
|
|
|
CentOS/RHEL:
|
|
|
|
.INDENT 3.0
|
|
|
|
.INDENT 3.5
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName localhost
|
|
|
|
DocumentRoot /var/www/html
|
|
|
|
|
|
|
|
ErrorLog /var/log/httpd/error.log
|
|
|
|
CustomLog /var/log/httpd/access.log combined
|
2015-01-14 18:55:28 +00:00
|
|
|
|
|
|
|
LogLevel debug
|
|
|
|
|
|
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteRule .* \- [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
|
|
|
|
|
|
|
|
ProxyPass / unix:///tmp/.radosgw.sock|fcgi://localhost:9000/ disablereuse=On
|
|
|
|
</VirtualHost>
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2015-01-14 18:55:28 +00:00
|
|
|
.IP 4. 3
|
|
|
|
Generate a key for radosgw to use for authentication with the cluster.
|
|
|
|
.INDENT 3.0
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 3.5
|
2011-12-16 21:01:05 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-02-17 22:11:18 +00:00
|
|
|
ceph\-authtool \-C \-n client.radosgw.gateway \-\-gen\-key /etc/ceph/keyring.radosgw.gateway
|
2013-11-19 02:05:18 +00:00
|
|
|
ceph\-authtool \-n client.radosgw.gateway \-\-cap mon \(aqallow rw\(aq \-\-cap osd \(aqallow rwx\(aq /etc/ceph/keyring.radosgw.gateway
|
2011-12-16 21:01:05 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2015-01-14 18:55:28 +00:00
|
|
|
.IP 5. 3
|
|
|
|
Add the key to the auth entries.
|
|
|
|
.INDENT 3.0
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 3.5
|
2011-12-16 21:01:05 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-02-17 22:11:18 +00:00
|
|
|
ceph auth add client.radosgw.gateway \-\-in\-file=keyring.radosgw.gateway
|
2011-12-16 21:01:05 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2015-01-14 18:55:28 +00:00
|
|
|
.IP 6. 3
|
|
|
|
Start Apache and radosgw.
|
2015-01-20 16:28:00 +00:00
|
|
|
.sp
|
|
|
|
Debian/Ubuntu:
|
|
|
|
.INDENT 3.0
|
|
|
|
.INDENT 3.5
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
sudo /etc/init.d/apache2 start
|
|
|
|
sudo /etc/init.d/radosgw start
|
|
|
|
.ft P
|
|
|
|
.fi
|
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
|
|
|
.sp
|
|
|
|
CentOS/RHEL:
|
2015-01-14 18:55:28 +00:00
|
|
|
.INDENT 3.0
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 3.5
|
2011-12-16 21:01:05 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2015-01-20 16:28:00 +00:00
|
|
|
sudo apachectl start
|
|
|
|
sudo /etc/init.d/ceph\-radosgw start
|
2011-12-16 21:01:05 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2015-01-14 18:55:28 +00:00
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.SH USAGE LOGGING
|
|
|
|
.sp
|
2015-01-14 18:55:28 +00:00
|
|
|
\fBradosgw\fP maintains an asynchronous usage log. It accumulates
|
2012-09-27 21:23:42 +00:00
|
|
|
statistics about user operations and flushes it periodically. The
|
2013-12-07 21:07:38 +00:00
|
|
|
logs can be accessed and managed through \fBradosgw\-admin\fP\&.
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
The information that is being logged contains total data transfer,
|
|
|
|
total operations, and total successful operations. The data is being
|
|
|
|
accounted in an hourly resolution under the bucket owner, unless the
|
|
|
|
operation was done on the service (e.g., when listing a bucket) in
|
|
|
|
which case it is accounted under the operating user.
|
|
|
|
.sp
|
|
|
|
Following is an example configuration:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
[client.radosgw.gateway]
|
|
|
|
rgw enable usage log = true
|
|
|
|
rgw usage log tick interval = 30
|
|
|
|
rgw usage log flush threshold = 1024
|
|
|
|
rgw usage max shards = 32
|
|
|
|
rgw usage max user shards = 1
|
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
The total number of shards determines how many total objects hold the
|
|
|
|
usage log information. The per\-user number of shards specify how many
|
|
|
|
objects hold usage information for a single user. The tick interval
|
|
|
|
configures the number of seconds between log flushes, and the flush
|
|
|
|
threshold specify how many entries can be kept before resorting to
|
|
|
|
synchronous flush.
|
2009-10-28 17:54:01 +00:00
|
|
|
.SH AVAILABILITY
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2015-01-22 14:53:46 +00:00
|
|
|
\fBradosgw\fP is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer
|
2012-09-27 21:23:42 +00:00
|
|
|
to the Ceph documentation at \fI\%http://ceph.com/docs\fP for more
|
2011-09-09 23:25:14 +00:00
|
|
|
information.
|
2009-10-28 17:54:01 +00:00
|
|
|
.SH SEE ALSO
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBceph\fP(8)
|
2012-09-27 21:23:42 +00:00
|
|
|
\fBradosgw\-admin\fP(8)
|
2011-09-09 23:25:14 +00:00
|
|
|
.SH COPYRIGHT
|
2014-01-12 16:48:00 +00:00
|
|
|
2010-2014, Inktank Storage, Inc. and contributors. Licensed under Creative Commons BY-SA
|
2011-09-09 23:25:14 +00:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|