You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since for now, i don't have Redisgears cluster environment, can not conduct experiments, so may need to ask these questions.
Dose gears support put key into a specific slot? such as exec('set', '{slot1}key1', '1')?
When execute gears function, it seems gears, not like lua, doesn't require all keys to be operated in the same slot. But what if i only want to execute functions on keys in one slot, but gears will execute on all shards, isn't that a waste of computing resource?
If i make gears function atomic, and it runs on all shards in cluster, so does that mean whole redis cluster will be blocked?
The text was updated successfully, but these errors were encountered:
RedisGears 1.0 supports it but its not safe operation and so not recommended (for example, its not atomic, and there is no guarantee the write will successed ...). This is why on gears 2.0 we only allow reading from other shards.
On gears 1 you have the execution mode which you can set if you want the function to run on all shards or just on the local shard: https://oss.redis.com/redisgears/functions.html#register. On gears 2.0 we matches the API to Redis Function, the tfcall command gets the keys and the command runs on the shards responsible for the keys.
Depends on the execution mode, if you only run on the local shard only this shard will be blocked.
Since for now, i don't have Redisgears cluster environment, can not conduct experiments, so may need to ask these questions.
Dose gears support put key into a specific slot? such as
exec('set', '{slot1}key1', '1')
?When execute gears function, it seems gears, not like lua, doesn't require all keys to be operated in the same slot. But what if i only want to execute functions on keys in one slot, but gears will execute on all shards, isn't that a waste of computing resource?
The text was updated successfully, but these errors were encountered: