Skip to content

content-sqlite: preallocate database space #6169

@garlick

Description

@garlick

Problem: when the disk containing the sqlite database fills up on rank 0, flux does not handle it well, e.g.

@trws suggested providing an option to pre-allocate space in the database.

One approach is to write a huge blob to the db and remove it:
https://stackoverflow.com/questions/827010/sqlite-pre-allocating-database-size

Some steps may also need to be taken to ensure writes to content.sqlite-wal do not fail. More study required on that one:
https://www.sqlite.org/wal.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions