Code Monkey home page Code Monkey logo

twemproxies's People

Contributors

deep011 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twemproxies's Issues

statistics socket(22222) is not serve

Hi, Thanks for multithread enhancement, but statistics socket cannot work properly.So i didn't get json data while i am using netcat or telnet to display statistics values which is defined port 22222.
selamlar.

Added tcpkeepalive paramters in configuration but giving error after compilation

Hi,

I have just added tcpkeepalive parameters in nutcracker.yml file but after run it gives below error.

[2017-02-26 22:42:31.554] nc_util.c:203 setsockopt TCP_KEEPIDLE call error(Invalid argument)
[2017-02-26 22:42:31.554] nc_thread.c:278 set tcpkeepalive on c 63 from pool alpha failed, ignored: Invalid argument

Please give idea to resolve the error.

nutcracker.yml :-

alpha:
auto_eject_hosts: false
distribution: modula
hash: crc32a
hash_tag: '{}'
listen: 0.0.0.0:8511
preconnect: false
redis: true
server_connections: 10000
server_failure_limit: 2
server_retry_timeout: 30000
tcpkeepalive: true
tcpkeepidle: 300000
tcpkeepcnt: 5
tcpkeepintvl: 100000
servers:

  • 127.0.0.1:6382:1 master
    timeout: 1000
    beta:
    auto_eject_hosts: true
    distribution: modula
    hash: crc32a
    hash_tag: '{}'
    listen: 0.0.0.0:8510
    preconnect: false
    redis: true
    server_connections: 20000
    server_failure_limit: 2
    server_retry_timeout: 30000
    tcpkeepalive: true
    tcpkeepidle: 300000
    tcpkeepcnt: 5
    tcpkeepintvl: 100000
    servers:
  • 127.0.0.1:6381:1 slave1
  • 127.0.0.1:6380:1 slave2
    timeout: 1000

TCP Connection and open files (1 established connection open but 4-5 fd's open)

Hi,

I want to understand why for 1 ESTABLISHED connection 4-5 fd's are open.

netstat -an | grep "ESTABLISHED" | grep 42704
tcp 0 0 X.X.X.X:42704 X.X.X.X:6381 ESTABLISHED

lsof | grep "ESTABLISHED" | grep 42704
nutcracke 2238 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2239 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2240 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2241 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)
nutcracke 2238 2242 cache 1031u IPv4 83103254 0t0 TCP itx1SPIP-TwPr:42704->X.X.X.X:6381 (ESTABLISHED)

Due to this connections are restricted and i am facing error "Cannot assign requested address" at certain limit fd's open.

Please suggest the configuration to use persistent connections between redis and twemproxy.

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.