Comments (7)
@litao941 is there a reson why "localhost:22222" will not work for you?
from twemproxy.
Hello Manju,
I have four IPs on my server, i just want the status port is only listens on 127.0.0.1:22222. i used the netstat command, and the below was the result(OS: CentOS 5.4):
[root@virt]# netstat -tlnup |grep nut
tcp 0 0 10.11.80.50:22121 0.0.0.0:* LISTEN 2268/nutcracker
tcp 0 0 :::22222 :::* LISTEN 2268/nutcracker
so, the result was i can used any IP (also include localhost) on my server to telnet the port 22222. i have already got some information from your code file nc_stats.h and changed the row 52:
#define STATS_ADDR "localhost" ------> #define STATS_ADDR "127.0.0.1"
i was also re-compiled and re-made the source code. but it seemed not work. the result as above :::22222 .
i have no firewall on my OS, and need disable it listen on my internet IP. so is there any parameter for that or can i change the code for myself ?
BTW
from twemproxy.
Ah! Looks like stats_listen wasn't using STATS_ADDR. I fixed this in this commit: fd32801
you can now use STATS_ADDR #defined to "127.0.0.1" for your instance to only listen on 127.0.0.1
let me know if this works for you?
from twemproxy.
Yea, i have made a test again. It works now. __ ^ _ ^__
But also recommend that you can add a parameter for that.
Thank your for your help.
Also appreciate your twemproxy. it's 40 times faster than use memcached direct and only just 2 times CPU(s) used.
from twemproxy.
great to hear that; I will add a command line param soon.
To reduce cpu load use (-m 512)
also, if your company is using twemproxy, let me know and I will add you to https://github.com/twitter/twemproxy#users
from twemproxy.
You can use the option --stats-addr to set the stats monitoring port
-a, --stats-addr=S : set stats monitoring ip (default: 0.0.0.0)
from twemproxy.
company sit is: www.56.com
from twemproxy.
Related Issues (20)
- Cross Region Replication Support HOT 1
- Monotonically Increasing CPU usage for redis proxy HOT 3
- Twemproxy does not release memory for mbufs: Free list garbage collection approach HOT 1
- Not working redis-sentinel-feature HOT 2
- Building release 0.5.0 on OpenBSD 7.0 fails with `ld: error: undefined symbol: backtrace` HOT 1
- we have Redis Cluster ,what's twemproxy usage for Redis now?
- add HRANDFIELD HOT 5
- twemproxy支持blpop指令么? HOT 2
- Question: Can we pass/upload configuration file through web browser?
- error logs: NC_ request HOT 2
- possible bug in slots count reported in verbose logging statement HOT 1
- Q: still copy after each msg_parsed?? HOT 1
- memcached replication (with consistant hash) HOT 2
- Do not ship/install "test_all"
- Murmur implementation is not endian/alignment-neutral
- Getting error "" Redis connection lost and commands aborted in uncertain state. They might have been processed."'
- nutcracker sets umask only upon daemonization HOT 1
- fuzzing integration in oss-fuzz HOT 1
- 这个工具支持 redis 双向实时同步吗? HOT 1
- How to open HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twemproxy.