Bases: object
WSGI Controller for the container server.
Handle HTTP DELETE request.
Handle HTTP GET request.
Handle HTTP HEAD request.
Handle HTTP POST request.
Handle HTTP PUT request.
Handle HTTP REPLICATE request (json-encoded RPC calls for replication.)
Update the account server with latest container info.
Parameters: |
|
---|---|
Returns: | if the account request returns a 404 error code, HTTPNotFound response object, otherwise None. |
paste.deploy app factory for creating WSGI container server apps
Bases: swift.common.daemon.Daemon
Update container information in account listings.
Report container info to an account server.
Parameters: |
|
---|
Walk the path looking for container DBs and process them.
Parameters: | path – path to walk |
---|
Get the account ring. Load it if it hasn’t been yet.
Get paths to all of the partitions on each drive to be processed.
Returns: | a list of paths |
---|
Process a container, and update the information in the account.
Parameters: | dbfile – container DB to process |
---|
Run the updator continuously.
Run the updater once.
random() -> x in the interval [0, 1).
Bases: swift.common.daemon.Daemon
Audit containers.
Audits the given container path
Parameters: | path – the path to a container db |
---|
Run the container audit until stopped.
Run the container audit once.
random() -> x in the interval [0, 1).