Bases: object
WSGI Controller for the container server.
Handle HTTP DELETE request.
Handle HTTP GET request.
Handle HTTP HEAD request.
Handle HTTP POST request (json-encoded RPC calls for replication.)
Handle HTTP PUT request.
Update the account server with latest container info.
Parameters: |
|
---|---|
Returns: | if the account request returns a 404 error code, HTTPNotFound response object, otherwise None. |
Bases: object
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: |
|
---|
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: |
|
---|
Run the updator continuously.
Run the updater once.
random() -> x in the interval [0, 1).
Bases: exceptions.Exception
Bases: object
Audit containers.
Run the container audit until stopped.
Run the container audit once.
Audit any containers found on the device
Parameters: |
|
---|
Get the account ring. Loads the ring if neccesary.
Returns: | account ring |
---|
Get the object ring. Loads the ring if neccesary.
Returns: | object ring |
---|
random() -> x in the interval [0, 1).