browsertrix/chart
Tessa Walsh 21ae38362e
Add endpoints to read pages from older crawl WACZs into database (#1562)
Fixes #1597

New endpoints (replacing old migration) to re-add crawl pages to db from
WACZs.

After a few implementation attempts, we settled on using
[remotezip](https://github.com/gtsystem/python-remotezip) to handle
parsing of the zip files and streaming their contents line-by-line for
pages. I've also modified the sync log streaming to use remotezip as
well, which allows us to remove our own zip module and let remotezip
handle the complexity of parsing zip files.

Database inserts for pages from WACZs are batched 100 at a time to help
speed up the endpoint, and the task is kicked off using
asyncio.create_task so as not to block before giving a response.

StorageOps now contains a method for streaming the bytes of any file in
a remote WACZ, requiring only the presigned URL for the WACZ and the
name of the file to stream.
2024-03-19 14:14:21 -07:00
..
admin/logging Add lightweight logging mode (#668) 2023-03-10 14:34:37 -08:00
app-templates profile browser fixes: better resource usage + load retry (main) (#1604) 2024-03-16 15:07:04 -07:00
btrix-crds Add max crawl size option to backend and frontend (#1045) 2023-08-26 22:00:37 -07:00
charts Operator refactor to control pods + pvcs directly instead of statefulsets (#1149) 2023-09-11 10:38:04 -07:00
email-templates Browsertrix Cloud → Browsertrix text rename (#1466) 2024-03-12 11:30:05 -04:00
examples Support multiple crawler versions (#1420) 2024-01-16 15:32:12 -08:00
templates Add endpoints to read pages from older crawl WACZs into database (#1562) 2024-03-19 14:14:21 -07:00
test Add crawl pages and related API endpoints (#1516) 2024-02-28 12:11:35 -05:00
.helmignore
Chart.lock Operator refactor to control pods + pvcs directly instead of statefulsets (#1149) 2023-09-11 10:38:04 -07:00
Chart.yaml version: bump to 1.10.0-beta.0 2024-02-20 00:22:29 -08:00
README.md Refactor to use new operator on backend (#789) 2023-04-24 18:30:52 -07:00
values.yaml Add endpoints to read pages from older crawl WACZs into database (#1562) 2024-03-19 14:14:21 -07:00

Update Helm dependencies

  • It needs to update Helm charts after changing its dependencies (e.g. logging)
$ helm dependency update .

Update metacontroller

#!/bin/bash

# intall metacontroller
git clone --depth=1 https://github.com/metacontroller/metacontroller.git
cd metacontroller
helm package deploy/helm/metacontroller --destination deploy/helm
cd ..

# update dependency
helm dependency update
  • Bump up the metacontroller version in Chart.yaml