Forum Discussion
Ulf_Wätterstam
Nimbostratus
Feb 11, 2011Using election hash to load balance memCached
Hi,
I read the old tread http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/aff/5/aft/19155/afv/topic/Default.aspx followed by the explanation articles http://devcentr...
Ulf_Wätterstam
Nimbostratus
Mar 01, 2011Ok, I found out why.... So in case someone else is struggling with this I add what I found out.
It is the way I take out the key.
set key [getfield $cdata " " 2]
This returns in case of string ‘set testKey 0 6….’ a string length of 7 (‘testKey’) but when the string is ’get testKey’ it will return a string length of 9 (‘testkey\r\n’ maybe). So I needed to trim my key.
set key [string trim [getfield $cdata " " 2]]
now I get the same value in my key and the algorithm works
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
