Git Product home page Git Product logo

Comments (1)

heyitsanthony avatar heyitsanthony commented on May 30, 2024 2

Running the benchmark, I see a lot of timeouts:

2016/12/28 00:24:57 Recv loop terminated: err=read tcp 127.0.0.1:34170->127.0.0.1:2181: i/o timeout
2016/12/28 00:24:57 Send loop terminated: err=<nil>

The zk logs show two things zetcd doesn't implement:

Renegotiating timeouts; benchmark requests 1s, zk gives 4s:

2016-12-28 08:13:09,594 [myid:] - INFO  [SyncThread:0:ZooKeeperServer@645] - Established session 0x159447d61890033 with negotiated timeout 4000 for client /172.17.0.1:51658

Limiting max connections to 60 (but zetcd accepts all 100):

2016-12-28 08:13:10,491 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@854] - Connection request from old client /172.17.0.1:51748; will be dropped if server is in r-o mode
2016-12-28 08:13:10,491 [myid:] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /172.17.0.1:51748
2016-12-28 08:13:10,491 [myid:] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@188] - Too many connections from /172.17.0.1 - max is 60

If I change the session timeout to 4s in zetcd like zk does, the time-outs all go away.

Potential fixes would be to support timeout renegotiation (probably worthwhile) and connection limiting (seems silly) like zk.

from zetcd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.