GitHub user eduardchai created a discussion: How to enable Global Async Queries 
on v5.0.0 using helm chart in GKE

Hi all,

I am trying to enable GAQ in my deployment. I am using helm chart to deploy 
Superset v5.0.0 in GKE. 

Here is my first config:
```
configOverrides:
  additional_config: |
    SUPERSET_WEBSERVER_TIMEOUT = 60000
    FEATURE_FLAGS = {
      "GLOBAL_ASYNC_QUERIES": True,
    }
    GLOBAL_ASYNC_QUERIES_JWT_SECRET = os.urandom(32).hex()
    GLOBAL_ASYNC_QUERIES_CACHE_BACKEND = {
        "CACHE_TYPE": "RedisCache",
        "CACHE_REDIS_HOST": "superset-redis-headless",
        "CACHE_REDIS_PORT": 6379,
        "CACHE_REDIS_USER": "",
        "CACHE_REDIS_PASSWORD": "",
        "CACHE_REDIS_DB": 0,
        "CACHE_DEFAULT_TIMEOUT": 300
    }
```
The deployment is successful with this config but I encountered the following 
error:
```
Unable to build URLs outside an active request without 'SERVER_NAME' 
configured. Also configure 'APPLICATION_ROOT' and 'PREFERRED_URL_SCHEME' as 
needed.
```

The error led me to update my config to:
```
configOverrides:
  additional_config: |
    SUPERSET_WEBSERVER_TIMEOUT = 60000
    FEATURE_FLAGS = {
      "GLOBAL_ASYNC_QUERIES": True,
    }
    GLOBAL_ASYNC_QUERIES_JWT_SECRET = os.urandom(32).hex()
    GLOBAL_ASYNC_QUERIES_CACHE_BACKEND = {
        "CACHE_TYPE": "RedisCache",
        "CACHE_REDIS_HOST": "superset-redis-headless",
        "CACHE_REDIS_PORT": 6379,
        "CACHE_REDIS_USER": "",
        "CACHE_REDIS_PASSWORD": "",
        "CACHE_REDIS_DB": 0,
        "CACHE_DEFAULT_TIMEOUT": 300
    }
    SERVER_NAME = "my_host.example.com"
    APPLICATION_ROOT = "/"
    PREFERRED_URL_SCHEME = "https"
```
However, with this config, I am not even able to start the superset app. This 
is the error when the app is starting up:
```
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on 
the server. If you entered the URL manually please check your spelling and try 
again.
```

Anyone can advice me on the issue? Thank you.

GitHub link: https://github.com/apache/superset/discussions/34517

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to