plone / plone-backend

Plone backend Docker images using Python 3 and pip.
GNU General Public License v2.0
14 stars 16 forks source link

Support for RelStorage cache-local-dir? #114

Open cekk opened 1 year ago

cekk commented 1 year ago

Can be useful this configuration in relstorage.conf? This is optional, so i don't know what's the best way to add it into the relstorage.conf file.

fredvd commented 1 year ago

@cekk Can you explain a bit more about what this does, what the advantages are and what it would do to storage or performance of a running container?

cekk commented 1 year ago

can be useful to persist cache on an external volume that will not be thrown when you restart the image for example.

https://relstorage.readthedocs.io/en/latest/relstorage-options.html

fredvd commented 1 year ago

I see. But in many container environments nowadays the containers can get redeployed on different nodes. So you would have to define a network storage that gets accessed over an internal network. Then can’t you beter skip the cache and improve caching on the database server? Or just let it handle the traffic. Unless you run into performance issues there…

djay commented 1 year ago

A cache can be rebuilt it it's redeployed to another server. Fast startup times help. It does nothing to change performance while running.