我多次遇到POSKeyError错误。我认为我们的设置不够PostgreSQL的参数。因为系统将存储从MySQL迁移到PostgreSQL。在翻唱之前,我多次得到错误。
请让我知道具体设置或任何要点。
使用版本:
答案 0 :(得分:4)
以下是 postgresql.conf 中的一些PostgreSQL调整:
# shared_buffers and effective_cache_size should be 30%-50%
# of your machine free memory
shared_buffers = 3GB
effective_cache_size = 2GB
checkpoint_segments = 64
checkpoint_timeout = 1h
max_locks_per_transaction = 512
max_pred_locks_per_transaction = 512
# If you know what you're doing you can uncomment and adjust the following values
#cpu_tuple_cost = 0.0030
#cpu_index_tuple_cost = 0.0001
#cpu_operator_cost = 0.0005
以下是Jens W. Klein的解释:
您还应该阅读https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
这是我们的 buildout.cfg :
[instance1]
recipe = plone.recipe.zope2instance
rel-storage =
type postgresql
host 10.11.12.13
dbname datafs
user zope
password secret
blob-dir /var/sharedblobstorage/blobs
blob-cache-size 350MB
poll-interval 0
cache-servers 10.11.12.14:11211
cache-prefix datafs