\Drupal\strata\Health\Tripwire FileShiftDetected

A file's content is shifting rather than being edited, so fixed blocks are storing most of it.

Fixed blocks make a change cost the blocks it touched, which on a 256 MiB file with a 2 MiB in-place edit is 0.81%. An insertion is the case they cannot follow: every block after it moves, and the same file costs 60.79% on every change. The storage bill is usually the first sign.

A warning rather than an error. Nothing stored is wrong and every version restores exactly; the file is simply costing far more than it needs to, and the fix is a per-file-type decision only a person can make - whole-object storage, or the content-defined chunker at 4.29 MB/s.

Summary

Methods
Properties
Constants
code
check
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Methods

code()

code() : string

The stable dotted code every finding from this tripwire reports under.

Returns

string —

For example "frame.digest_mismatch".

check()

check(array  $observation) : \Drupal\strata\Health\Finding|null

Evaluates the check against one observation.

Parameters

array $observation

Scalars the caller already had in hand. A tripwire reads from this and nothing else.

Returns

\Drupal\strata\Health\Finding|null —

A finding when the symptom is present, or NULL when the check is satisfied.