Deploy latest vault:
- ensure debian jenkins builds are fine
- swh.vault
- swh.web
Cache invalidation is required to avoid migrating the actual model change.
That means truncate the bundle and cleaning up the objstorage.
Deploy latest vault:
Cache invalidation is required to avoid migrating the actual model change.
That means truncate the bundle and cleaning up the objstorage.
Status | Assigned | Task | ||
---|---|---|---|---|
Migrated | gitlab-migration | T3096 Efficient and reliable download via the Vault | ||
Migrated | gitlab-migration | T887 Vault: "snapshot" cooker | ||
Migrated | gitlab-migration | T3504 Make the git-bare cooker publicly available | ||
Migrated | gitlab-migration | T3505 Make the git-bare cooker available to the staff and beta-testers in the production webapp | ||
Migrated | gitlab-migration | T3506 Get rid of the concept of vault "object_type" | ||
Migrated | gitlab-migration | T3507 prod: vault: Deploy v1.0.0 | ||
Migrated | gitlab-migration | T3503 staging: vault: Deploy v1.0.0 |
truncate vault_batch cascade; drop table vault_bundle cascade; drop type cook_type; create type bundle_type as enum ('flat', 'gitfast', 'git_bare'); comment on type bundle_type is 'Type of the requested bundle'; create table vault_bundle ( id bigserial primary key, type bundle_type not null, swhid text not null, -- requested object ID task_id integer, -- scheduler task id task_status cook_status not null default 'new', -- status of the task sticky boolean not null default false, -- bundle cannot expire ts_created timestamptz not null default now(), -- timestamp of creation ts_done timestamptz, -- timestamp of the cooking result ts_last_access timestamptz not null default now(), -- last access progress_msg text -- progress message ); create unique index vault_bundle_type_swhid on vault_bundle (type, swhid); create index vault_bundle_task_id on vault_bundle (task_id); insert into dbversion (version, release, description) values (4, now(), 'Initial version');
[2]
root@vault:~# grep vault_cache /etc/softwareheritage/vault/server.yml root: "/srv/softwareheritage/vault_cache" root@vault:~# rm -rf /srv/softwareheritage/vault_cache