shrimad-mishra-cognoai opened a new issue, #33604:
URL: https://github.com/apache/superset/issues/33604

   ### Bug description
   
   Hi there,
   
   I am implementing the dataset caching on Superset latest version along with 
redis with seninels. I have tried the below configuration, but it is not 
working. Please point me to the correct source or let me know how I can do this.
   
   CUSTOM_SENTINEL_SERVERS = [
       ("dns", 26379),
       ("dns", 26379),
       ("dns", 26379)
   ]
   
   CACHE_REDIS_SENTINEL_MASTER_NAME = <master-name>
   
   # Common cache configuration for Superset.
   COMMON_REDIS_CONFIG = {
       'CACHE_TYPE': RedisSentinelCache, # Using the RedisSentinelCache class 
directly now
       'CACHE_REDIS_SENTINELS': CUSTOM_SENTINEL_SERVERS,
       'CACHE_REDIS_SENTINEL_MASTER': CACHE_REDIS_SENTINEL_MASTER_NAME,
       'CACHE_DEFAULT_TIMEOUT': 1200, # Your default timeout in seconds (e.g., 
1200 for 20 mins)
       'CACHE_KEY_PREFIX': 'superset_',
       'CACHE_REDIS_DB': 0, # Redis DB number to use for this cache
       # 'sentinel_kwargs' can be passed here for Sentinel client-specific 
options if needed, e.g.:
       # 'sentinel_kwargs': {'socket_timeout': 0.1}
   }
   
   # Apply the common configuration to Superset's various cache types
   FILTER_STATE_CACHE_CONFIG = {**COMMON_REDIS_CONFIG, 'CACHE_KEY_PREFIX': 
'superset_filter_state_'}
   EXPLORE_FORM_DATA_CACHE_CONFIG = {**COMMON_REDIS_CONFIG, 'CACHE_KEY_PREFIX': 
'superset_explore_form_data_'}
   CACHE_CONFIG = {**COMMON_REDIS_CONFIG, 'CACHE_KEY_PREFIX': 
'superset_metadata_'}
   DATA_CACHE_CONFIG = {**COMMON_REDIS_CONFIG, 'CACHE_KEY_PREFIX': 
'superset_data_'}
   
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to