~david-goetz/swift/db_double_quar

« back to all changes in this revision

Viewing changes to doc/source/admin_guide.rst

  • Committer: Tarmac
  • Author(s): gholt
  • Date: 2011-03-15 15:52:34 UTC
  • mfrom: (241.2.2 swauthonly)
  • Revision ID: tarmac-20110315155234-hdy60f7s6dln140k
Remove DevAuth

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
of each of these containers and objects.
160
160
 
161
161
These tools need direct access to the entire cluster and to the ring files
162
 
(installing them on an auth server or a proxy server will probably do). Both
 
162
(installing them on a proxy server will probably do). Both
163
163
swift-stats-populate and swift-stats-report use the same configuration file,
164
164
/etc/swift/stats.conf. Example conf file::
165
165
 
166
166
    [stats]
167
 
    # For DevAuth:
168
 
    auth_url = http://saio:11000/v1.0
169
 
    # For Swauth:
170
 
    # auth_url = http://saio:11000/auth/v1.0
 
167
    auth_url = http://saio:11000/auth/v1.0
171
168
    auth_user = test:tester
172
169
    auth_key = testing
173
170
 
236
233
Additional Cleanup Script for Swauth
237
234
------------------------------------
238
235
 
239
 
If you decide to use Swauth, you'll want to install a cronjob to clean up any
 
236
With Swauth, you'll want to install a cronjob to clean up any
240
237
orphaned expired tokens. These orphaned tokens can occur when a "stampede"
241
238
occurs where a single user authenticates several times concurrently. Generally,
242
239
these orphaned tokens don't pose much of an issue, but it's good to clean them
243
240
up once a "token life" period (default: 1 day or 86400 seconds).
244
241
 
245
 
This should be as simple as adding `swauth-cleanup-tokens -K swauthkey >
246
 
/dev/null` to a crontab entry on one of the proxies that is running Swauth; but
247
 
run `swauth-cleanup-tokens` with no arguments for detailed help on the options
 
242
This should be as simple as adding `swauth-cleanup-tokens -A
 
243
https://<PROXY_HOSTNAME>:8080/auth/ -K swauthkey > /dev/null` to a crontab
 
244
entry on one of the proxies that is running Swauth; but run
 
245
`swauth-cleanup-tokens` with no arguments for detailed help on the options
248
246
available.
249
247
 
250
248
------------------------