-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large PostgreSQL database with blobs #500
Comments
I can only speak to my own experience and the RelStorage code. A previous company I worked for had a similarly sized ZODB deployment with tons of blobs. We never used shared blobs because managing a separate highly-available NFS deployment was another layer of complication we didn't want to deal with. Native PG blobs and the local blob cache were plenty performant for our uses. If you have any concurrent write activity at all, shared blobs absolutely kill RelStorage/PG performance by essentially eliminating concurrent commits. I never dealt with trying to backup a large shared blob deployment so I have no recommendations (other than "don't use shared blobs" 😄 ) |
Thank for your reply ! |
@tflorac My 5 cents, probably you should look for a system backup solution (raw storage backup), rather than a logical one (sql dump). In the lands of OSS a solution might be https://github.com/pgbackrest/pgbackrest. |
Hi,
I've built a Pyramid "file management" application using RelStorage with a PostgreSQL back-end.
The ZODB is actually storing 2 millions files (for more than 2 Tb of storage) which are stored as ZODB blobs in "shared" mode (which is not recommended anymore), using NFS to share the storage between clients (which are also using a local NFS cache).
I'm thinking about switching to a new environment, using native PostgreSQL blobs, with streaming replication to several read-only servers (which is handled natively by RelStorage), but:
pg_dump
before a file system backup, but this doesn't seem possible anymore; what is the best way to manage PostgreSQL backups when using native blobs of this size?Best regards,
Thierry
The text was updated successfully, but these errors were encountered: