Please help

Invoking Redis using "gopkg.in/redis.v4" library

Application works fine for single request but it returns "dial unix 
/var/run/redis/redis.sock: connect: resource temporarily unavailable" when 
try to use wrk under load -t50 -c50 -d10s 

trying to get the key using 

value, exp = redisClient.Get(key).Result()

below is use to create a pool

redisClient = redis.NewClient(&redis.Options{
Dialer: func() (net.Conn, error) {
return net.DialTimeout("unix", "/var/run/redis/redis.sock", 1*time.Second)
},
//Addr: "10.10.1.150",
Password: "",
DB: 0,
PoolSize: 99000,
})

Thanks in advance

Rgds,

Abhi

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to