Note that there are some explanatory texts on larger screens.

plurals
  1. POtwemproxy (nutcracker) performance degradation with .net ServiceStack.Redis client
    primarykey
    data
    text
    <p>Setup redis and nutcracker on CentOS 6.4. and trying to connect using ServiceStack.Redis client. Found major performance issue.</p> <p>For testing left only 1 redis instance</p> <pre><code>beta: listen: 0.0.0.0:22122 hash: fnv1a_64 distribution: ketama auto_eject_hosts: true #timeout: 5000 #server_retry_timeout: 2000 #server_failure_limit: 3 redis: true servers: #- 127.0.0.1:6379:1 - 127.0.0.1:6380:1 </code></pre> <p>In the following unit test I'm trying to send 100k strings to redis via nutcracker.</p> <pre><code>[TestClass] public class RedisProxyTest { public string host = "192.168.56.112"; //public int port = 6379; public int port = 22122; [TestMethod] public void TestMethod1() { var key = "l2"; var count = 100000; using (var redisClient = new RedisClient(host, port)) { var list = new List&lt;string&gt;(); for (int i = 0; i &lt; count; i++) { list.Add(Guid.NewGuid().ToString()); } Utils.TimeLog("Remove", () =&gt; redisClient.Remove(key)); Utils.TimeLog("AddRangeToList", () =&gt; redisClient.AddRangeToList(key, list)); } using (var redisClient = new RedisClient(host, port)) { redisClient.GetListCount(key); Utils.TimeLog("GetRangeFromList", () =&gt; { var ret = redisClient.GetRangeFromList(key, count / 2, count - 1); Console.WriteLine(ret.Count); }); } } } </code></pre> <p>On first few runs after nutcracker restarted AddRangeToList works with 1-2 sec. But with subsequent runs AddRangeToList performance drops significantly from few minutes even more than 20 mins (if no timeout configured). I cannot reproduce same when using redis directly. I didn't try any other client yet. Any ideas why?</p> <p>This what I see in console after unit test run:</p> <pre><code>Test Name: TestMethod1 Test Outcome: Passed Remove: 0.0331171 AddRangeToList: 806.8219166 50000 GetRangeFromList: 1.741737 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload