I know that Jedis (and other client libs) can select an appropriate shard to execute the Lua script. However what I cannot find is how the master-slave nodes are used after. Say I have multiple Lua scripts and part of them does writes, another part - reads. How does Jedis know whether it should be executed on master or slave considering slaves are read-only?
Does it always send EVAL
commands to master even for read-only scripts?