Comments (5)
Could it have something to do with both servers (which are load balanced) writing to the same sess_crawler-session (as they both have the same name) ?
The redis session server is shared
This is the redis-session output:
1410348399.529225 [3 127.0.0.1:55049] "SELECT" "3"
1410348399.529342 [3 127.0.0.1:55049] "HMSET" "sess_crawler-session" "data" ":l4:\xcf\x13\xf3\x1acore|a:4:{s:23:\"_session_validator_data\";$\x00\xf0\x1011:\"remote_addr\";s:9:\"127.0.0.1\x10\x00\xb08:\"http_via\x0f\x0000:\"\a\x00#20\x17\x00\xb0x_forwarded\n\x00\x00\x1c\x00\xf1\x0213:\"195.26.57.129\x15\x00\x1351\x00\xa0user_agent\x17\x00\xf0\x1e72:\"Mozilla/5.0 (compatible; Googlebot/2.1; +\x88\x00\x81://www.g\x1b\x00\xf2\x02.com/bot.html)\";}}\x00\x04\xf5\x00Phosts\xec\x00\x101\x10\x01\x00\x97\x00\x00;\x00\xe0vax.co.uk\";b:14\x00\xb08:\"last_url\x94\x00\"37\xab\x00\x03k\x00\x050\x00\xa3/cms/index\x06\x00\x00-\x00\xf2\x158:\"messages\";O:34:\"Mage_Core_Model_M \x00\xe1_Collection\":2\x92\x00v2:\"\x00*\x00_A\x00ba:0:{}_\x01\x00\x1a\x00\x00\x97\x00SAddedD\x00\xf0\x06\";N;}}customer_uk|a:5K\x00\x0f\xed\x01\xff\x18P2:\"idH\x01\x02f\x01\x05L\x01\xa4segment_id3\x023i:3\x91\x01\x1f}\xe8\x01d\xbfheckout|a:3\xe5\x01\xff\x1c\x0f\x96\x03a st\xf3\x03\x90uk_defaul\xb6\x01\x01\xe6\x03\x0f\x9b\x03\xff\x16\x8f}catalog\xee\x02\xff\x94\x90turpentinp\b\x0f\x9e\x04\xff*\x03\x9e\b\t\xb2\x04\x80a:0:{}}}" "lock" "0"
1410348399.529544 [3 127.0.0.1:55049] "HINCRBY" "sess_crawler-session" "writes" "1"
1410348399.529651 [3 127.0.0.1:55049] "EXPIRE" "sess_crawler-session" "7200"
from cm_redissession.
I don't know how Turpentine works, but in general having many users share one session id seems like a Bad Idea.. I assume Turpentine is assigning the session id as "crawler-session", so a simple solution should be to disable this feature and have it return a guuid. Cm_RedisSession already has features for reducing wasted resources due to bots.
from cm_redissession.
All crawlers matching the crawler regex would indeed have the same session Id (e.g. google bot, bing) etc. of crawler-session
Is there any way to cater for this in redis? I can disable the feature turpentine side, and this does in fact work it just means cookies are generated for bots which isn't needed normally.
If that's what's needed I will do that.
I do wonder why it works with the default session handler, however when testing I am only down to 1 node, not using the shared redis session, but on the same host
from cm_redissession.
Not knowing any more about Turpentine I'd say that is what you should do. The bot handling in Cm_RedisSession is very effective (depending on how it is configured). It cut my sessions down by over 60% in one case. So you may have dozens vs one, but that is inconsequential. Also the bot handling works well with crawlers that cloak themselves as real users.
from cm_redissession.
Thanks :)
from cm_redissession.
Related Issues (20)
- Connectivity issue with Azure Redis Cache HOT 1
- Configuration changes don't take effect HOT 3
- hard coded session expiry HOT 5
- Magento 1.7.0.2 and PHP 7.x HOT 1
- Fatal Error when compilation is enabled HOT 4
- Passing glue string after array is deprecated. Swap the parameters in colinmollenhour/credis/Client.php on line 1414 HOT 4
- Cm\RedisSession\Handler::read taking more than 6sec HOT 14
- Session storage - Too many active connections HOT 2
- Tag current version master HOT 1
- Magento 2 switching to Laminas instead of Zend (ZF2) HOT 3
- Experiencing delay problems HOT 1
- PHP Warning: Module 'redis' already loaded in Unknown on line 0 HOT 1
- Make setSaveHandler() only callable once
- Separate read-only instance from read/write instance HOT 5
- missing ConfigInterface HOT 1
- Session IDs are plain text in redis (missing hash) HOT 1
- Native Magento Redis Session extension HOT 1
- 3.0.1 can not load the session model using composer HOT 10
- How can I install a specific version of this module via modman? HOT 4
- Error cleaning cache by mode matchingAnyTag: A pipeline is already in use and only one pipeline is supported. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cm_redissession.