You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding your configuration, here are a few things to consider:
Redis Configuration: Ensure that your Redis server is running and accessible at the specified host and port. You can test connectivity using a Redis client.
Cache Configuration: Your DATA_CACHE_CONFIG is set to use SupersetMetastoreCache, which is different from Redis. If you intend to use Redis for all caching, you might want to align this configuration with your FILTER_STATE_CACHE_CONFIG by using RedisCache instead.
Celery and Redis: Ensure that both Celery and Redis are properly configured and running. Check the logs for any errors related to task execution or result storage.
Cache Key Prefixes: Make sure that the CACHE_KEY_PREFIX values are unique and correctly set to avoid any key collisions.
Superset Logs: Review the Superset logs for any error messages or warnings that might indicate what is going wrong with the caching mechanism.
If these steps do not resolve the issue, you might want to explore the discussions mentioned above for additional insights or consider testing with a simplified configuration to isolate the problem.
Bug description
this is the superset_config file I used caching on Redis and celery but it still wont work.
http://domain.com/genreateguest token------------------------------------takes 2 sec
https://domain.com/embedded/3d0346ae-8dc0-4776-bf02-d87692a918f1uiConfig=10&show_filters=false&expand_filters=false----------this takes 3sec
https://domain.com/api/v1/dashboard/5/datasets---------------------------this takes 2 sec
ROW_LIMIT = 10000
SECRET_KEY = SUPERSET_SECRET_KEY
FEATURE FlAGS
FEATURE_FLAGS = {
"EMBEDDED_SUPERSET": True,
"TAGGING_SYSTEM": False,
"ENABLE_TEMPLATE_PROCESSING": True,
"HORIZONTAL_FILTER_BAR":True,
"FAB_ADD_SECURITY_API": True,
"DASHBOARD_RBAC":True,
"ALLOW_FULL_CSV_EXPORT":True,
"DRILL_TO_DETAIL":True,
"DASHBOARD_VIRTUALIZATION":False,
"SQL_VALIDATORS_BY_ENGINE": {
'postgresql': 'PostgresSQLValidator'
}
}
class CeleryConfig(object):
broker_url = "redis://localhost:6379/0"
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
)
result_backend = "redis://localhost:6379/0"
worker_prefetch_multiplier = 10
task_acks_late = True
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
from flask_caching.backends.rediscache import RedisCache
RESULTS_BACKEND = RedisCache(
host='localhost', port=6379, key_prefix='superset_results')
FILTER_STATE_CACHE_CONFIG = {
'CACHE_TYPE': 'RedisCache',
'CACHE_DEFAULT_TIMEOUT': 86400,
'CACHE_KEY_PREFIX': 'superset_filter_cache',
'CACHE_REDIS_URL': 'redis://localhost:6379/0'
}
DATA_CACHE_CONFIG = {
"CACHE_TYPE": "SupersetMetastoreCache",
"CACHE_KEY_PREFIX": "superset_results",
"CACHE_DEFAULT_TIMEOUT": 86400,
}
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.10
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: