diff --git a/README.md b/README.md index e820923..2e2981b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Predixy -**Predixy** is a high performance and full features proxy for [redis](http://redis.io/) +**Predixy** is a high performance and full features proxy for redis sentinel and redis cluster ## Features @@ -15,7 +15,7 @@ + Supports redis transaction, limit in Redis Sentinel single redis group. + Supports redis Scripts, script load, eval, evalsha. + Supports redis Pub/Sub. -+ Multi-DataCenters support. ++ Multi-DataCenters support, read from slaves. + Extend AUTH, readonly/readwrite/admin permission, keyspace limit. + Log level sample, async log record. + Log file auto rotate by time and/or file size. @@ -61,9 +61,10 @@ See below files: $ ./predixy ../conf/predixy.conf -With default predixy.conf, Predixy will proxy to Redis Cluster 127.0.0.1:6379, -In general, 127.0.0.1:6379 is not running in Redis Cluster mode, -So you will look mass log output. But you can still test it with redis-cli. +With default predixy.conf, Predixy will listen at 0.0.0.0:7617 and +proxy to Redis Cluster 127.0.0.1:6379. +In general, 127.0.0.1:6379 is not running in Redis Cluster mode. +So you will look mass log output, but you can still test it with redis-cli. $ redis-cli -p 7617 info @@ -105,7 +106,7 @@ Show latency monitors by server address and latency name redis> INFO ServerLatency [latency-name] -Reset all stats and latency monitors +Reset all stats and latency monitors, require admin permission. redis> CONFIG ResetStat diff --git a/src/Makefile b/src/Makefile index 9170fa8..5205365 100644 --- a/src/Makefile +++ b/src/Makefile @@ -12,7 +12,7 @@ endif EV ?= auto -LDLIBCPP = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic +LDLIBCPP = -static-libstdc++ ifeq ($(EV), auto) plt = $(shell uname) @@ -47,7 +47,7 @@ else $(error Unknown event:$(EV)) endif -CFLAGS = -std=c++11 -g -Wall -w $(Opts) +CFLAGS = -std=c++11 -Wall -w $(Opts) INCFLAGS = LDFLAGS += $(LDLIBCPP) -rdynamic -lpthread @@ -102,7 +102,7 @@ $(target): $(objs) $(CXX) $(CFLAGS) -o $@ $^ $(LDFLAGS) debug: - @make LVL= + @make LVL=-g clean: @rm -rf $(objs) $(target)