-
-
Save acmiyaguchi/9c8086939051b4bec8e5d413066af934 to your computer and use it in GitHub Desktop.
[Superset Testing] Configuration File for Superset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUPERSET_WEBSERVER_PORT = 9999 | |
DRUID_IS_ACTIVE = False | |
redis_url = "amiyaguchi-001.bolxr4.0001.usw2.cache.amazonaws.com" | |
redis_port = 6379 | |
redis_conn = "redis://{}:{}".format(redis_url, redis_port) | |
class CeleryConfig(object): | |
BROKER_URL = redis_conn | |
CELERY_IMPORTS = ('superset.sql_lab', ) | |
CELERY_RESULT_BACKEND = redis_conn | |
CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}} | |
CELERY_CONFIG = CeleryConfig | |
# An instantiated derivative of werkzeug.contrib.cache.BaseCache | |
# if enabled, it can be used to store the results of long-running queries | |
# in SQL Lab by using the "Run Async" button/feature | |
from werkzeug.contrib.cache import RedisCache | |
RESULTS_BACKEND = RedisCache(redis_url, redis_port) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment