gpt4 book ai didi

apache-superset - 我的 Superset 缓存设置为 Redis,但我仍然在日志中收到缓存警告

转载 作者:行者123 更新时间:2023-12-05 01:04:22 32 4
gpt4 key购买 nike

我的日志文件中出现缓存警告,但不确定原因。

我的缓存覆盖:

CACHE_CONFIG = {
'CACHE_TYPE': 'RedisCache',
'CACHE_DEFAULT_TIMEOUT': 86400,
'CACHE_KEY_PREFIX': 'superset_',
'CACHE_REDIS_HOST': 'localhost',
'CACHE_REDIS_PORT': 6379,
'CACHE_REDIS_DB': 1,
'CACHE_REDIS_URL': 'redis://localhost:6379/1'
}

我也试过 redis 而不是 RedisCache

日志语句:

2022-05-06 15:03:27,118:INFO:root:Configured event logger of type<class 'superset.utils.log.DBEventLogger'> Falling back to thebuilt-in cache, that stores data in the metadata database, for thefollowing cache: FILTER_STATE_CACHE_CONFIG. It is recommended to useRedisCache, MemcachedCache or another dedicated caching backendfor production deployments 2022-05-0615:03:27,123:WARNING:superset.utils.cache_manager:Falling back to thebuilt-in cache, that stores data in the metadata database, for thefollowing cache: FILTER_STATE_CACHE_CONFIG. It is recommended to useRedisCache, MemcachedCache or another dedicated caching backendfor production deployments Falling back to the built-in cache, thatstores data in the metadata database, for the following cache:EXPLORE_FORM_DATA_CACHE_CONFIG. It is recommended to useRedisCache, MemcachedCache or another dedicated caching backendfor production deployments

最佳答案

这是一个不同的缓存,因此你需要一个额外的配置,即

FILTER_STATE_CACHE_CONFIG = {
'CACHE_TYPE': 'RedisCache',
'CACHE_DEFAULT_TIMEOUT': 86400,
'CACHE_KEY_PREFIX': 'superset_filter_',
'CACHE_REDIS_URL': 'redis://localhost:6379/2'
}

确保使用不同的前缀和数据库

关于apache-superset - 我的 Superset 缓存设置为 Redis,但我仍然在日志中收到缓存警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72143877/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com