You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Rick Kellogg (JIRA)" <ji...@apache.org> on 2015/09/26 04:23:04 UTC
[jira] [Updated] (STORM-703) RedisMapState with hash key can cause
network overload
[ https://issues.apache.org/jira/browse/STORM-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick Kellogg updated STORM-703:
-------------------------------
Component/s: storm-redis
> RedisMapState with hash key can cause network overload
> ------------------------------------------------------
>
> Key: STORM-703
> URL: https://issues.apache.org/jira/browse/STORM-703
> Project: Apache Storm
> Issue Type: Bug
> Components: external, storm-redis
> Affects Versions: 0.10.0
> Reporter: Dave Katten
> Assignee: Dave Katten
> Fix For: 0.10.0
>
>
> When RedisMapState is constructed to use a hash key (and store values under a hash in redis, rather than as key/value pairs in the top namespace), a multiGet actually requests ALL of the state in that hash, instead of only the keys in the batch.
> As the size of the hash grows in redis, this becomes an inordinate amount of traffic, and can cause interfaces to fall over.
> * Solution
> Instead of calling jedis.hgetall(hash), call jedis.hmget(hash, stringKeys[]). Also, remove the buildValuesFromMap function, as it is no longer needed.
> See PR#462 on github.
> https://github.com/apache/storm/pull/462
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)