Magento with RedisLab Redis Cluster Backend -


magento redislab cluster integration problem

after deploy cluster redis database , fpc , session working when add cluster redis ( redislab ) instance magento cache section facing 1 problem.

when click add cart >> show cannot add product

backend error

  next exception 'zend_cache_exception' message 'error cleaning cache mode matchinganytag: err crossslot keys in request don't hash same slot (command='sunion', key='zc:ti:da3_quote_2156255')' in /var/www/magento/lib/zend/cache.php:209     stack trace:     3     #6 /var/www/magento/app/code/core/mage/core/model/abstract.php(464): mage_core_model_abstract->cleanmodelcache()     #7 /var/www/magento/app/code/core/mage/sales/model/quote.php(333): mage_core_model_abstract->_aftersave()     #8 /var/www/magento/app/code/core/mage/core/model/abstract.php(319): mage_sales_model_quote->_aftersave()     #9 /var/www/magento/app/code/core/mage/sales/model/quote.php(1966): mage_core_model_abstract->save()     #10 /var/www/magento/app/code/core/mage/checkout/model/cart.php(459): mage_sales_model_quote->save()     #11 /var/www/magento/app/code/core/mage/checkout/controllers/cartcontroller.php(223): mage_checkout_model_cart->save()     #12 /var/www/magento/app/code/core/mage/core/controller/varien/action.php(418): mage_checkout_cartcontroller->addaction()     #13 /var/www/magento/app/code/core/mage/core/controller/varien/router/standard.php(254): mage_core_controller_varien_action->dispatch('add')     #14 /var/www/magento/app/code/core/mage/core/controller/varien/front.php(172): mage_core_controller_varien_router_standard->match(object(mage_core_controller_request_http))     #15 /var/www/magento/app/code/core/mage/core/model/app.php(365): mage_core_controller_varien_front->dispatch()     #16 /var/www/magento/app/mage.php(684): mage_core_model_app->run(array)     #17 /var/www/magento/index.php(85): mage::run('', 'store')     #18 {main} 

if disable exception working file

/var/www/magento/lib/zend/cache.php:209

  • just got same exception , believe case belong custom work try make magento working redis-cluster
  • my solution :
    • just remove exception in redis-client.php library first , return ip:port
    • find correct client byhash function in redis-cluster.php
    • execute command correct client
  • need overwrite load , remove , _removebymatchingtags...

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -