【发布时间】:2021-07-02 15:11:19
【问题描述】:
我有 docker 版本的超集,版本 1.2.0,Ubuntu 18.03, 已启用数据缓存并按预期工作。 数据缓存每 2 分钟过期一次,每三分钟设置一次缓存预热,缓存预热不起作用,有什么建议启用缓存预热吗? 我在哪里可以找到 Celery beat 或工人日志?
我的 Superset_config.py
DATA_CACHE_CONFIG = {
'CACHE_TYPE': 'redis',
'CACHE_DEFAULT_TIMEOUT': 120,
'CACHE_KEY_PREFIX': 'superset_results',
'CACHE_REDIS_URL': 'redis://redis:6379/0',
}
CELERYBEAT_SCHEDULE = {
'cache-warmup-hourly': {
'task': 'cache-warmup',
'schedule': crontab(minute='*/3'),
'kwargs': {
'strategy_name': 'top_n_dashboards',
'top_n': 5,
'since': '7 days ago',
},
},
}
我的 Superset docker 进程状态
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0c4cd8aa4ddc apache/superset:latest-dev "/usr/bin/docker-ent…" 57 minutes ago Up 42 minutes (unhealthy) 8080/tcp superset_worker
df9506be2f84 apache/superset:latest-dev "/usr/bin/docker-ent…" 57 minutes ago Up 57 minutes (healthy) 8080/tcp, 0.0.0.0:8088->8088/tcp superset_app
f42c7aee5f3f node:14 "docker-entrypoint.s…" 57 minutes ago Up 57 minutes superset_node
5318e34d1607 apache/superset:latest-dev "/usr/bin/docker-ent…" 57 minutes ago Exited (1) 57 minutes ago superset_tests_worker
4874a4f53776 apache/superset:latest-dev "/usr/bin/docker-ent…" 57 minutes ago Exited (0) 55 minutes ago superset_init
fd50a927cfb5 apache/superset:latest-dev "/usr/bin/docker-ent…" 57 minutes ago Up 42 minutes (unhealthy) 8080/tcp superset_worker_beat
b4b160ecedf5 redis:latest "docker-entrypoint.s…" 57 minutes ago Up 57 minutes 127.0.0.1:6379->6379/tcp superset_cache
a9e5e4f4e938 postgres:10 "docker-entrypoint.s…" 57 minutes ago Up 57 minutes 127.0.0.1:5432->5432/tcp superset_db
【问题讨论】:
标签: apache-superset