Module: Archipelago::Sanitation

Defined in:
lib/archipelago/sanitation.rb

Defined Under Namespace

Classes: NoRemoteDatabaseAvailableException, NotEnoughDataException, Officer

Constant Summary collapse

SITE_DESCRIPTION =

Description of the Dump::Sites that can store our data.

{
  :class => 'Archipelago::Dump::Site'
}
MINIMUM_RECOVERABLE_SIZE =

The minimum size of data that is reasonable to recover without too much overhead.

128
MINIMUM_NR_OF_CHUNKS =

The minimum number of chunks we want to spread out to ensure us against server failure.

14
MINIMUM_REDUNDANCY_RATIO =

The minimum ratio of redundancy (used diskspace / data size) we want to use.

2
METADATA_OVERHEAD =

The extra bytes used by metadata in all check block chunks.

8
CLEANER =

The default Archipelago::Sanitation::Officer that is always available for lookups is Archipelago::Sanitation::CLEANER.

If you really need to you can customize it by defining CLEANER_OPTIONS before loading sanitation.rb, and if you REALLY need to you can disable it completely by setting CLEANER_DISABLED to true.

Officer.new(defined?(CLEANER_OPTIONS) ? CLEANER_OPTIONS : {})