Merge remote-tracking branch 'origin/feature/bounded-retention' into shigusegubu-new
This commit is contained in:
commit
d9e75192ad
13 changed files with 1340 additions and 42 deletions
|
|
@ -3331,6 +3331,42 @@ config :pleroma, :config_description, [
|
|||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
group: :pleroma,
|
||||
key: :retention,
|
||||
type: :group,
|
||||
description:
|
||||
"Bounded retention: continuously evict old remote threads nobody local interacted with." <>
|
||||
" Local posts and threads with local interactions are always kept.",
|
||||
children: [
|
||||
%{
|
||||
key: :enabled,
|
||||
type: :boolean,
|
||||
description: "Run the retention worker from the Oban crontab"
|
||||
},
|
||||
%{
|
||||
key: :max_objects,
|
||||
type: :integer,
|
||||
description:
|
||||
"Optional watermark. When the objects table is estimated to hold more rows than this," <>
|
||||
" the oldest unpinned remote threads quiet for more than a day are evicted, whatever the retention period.",
|
||||
suggestions: [nil, 1_000_000]
|
||||
},
|
||||
%{
|
||||
key: :batch_size,
|
||||
type: :integer,
|
||||
description:
|
||||
"Number of activities the worker walks per run; their threads are checked and evicted." <>
|
||||
" Default: 50000.",
|
||||
suggestions: [50_000]
|
||||
},
|
||||
%{
|
||||
key: :keep_non_public,
|
||||
type: :boolean,
|
||||
description: "Also keep threads that contain non-public posts"
|
||||
}
|
||||
]
|
||||
},
|
||||
%{
|
||||
group: :ex_aws,
|
||||
key: :s3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue