mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
adjust compiler options and update README
This commit is contained in:
parent
293f48d839
commit
6ab54bfec9
13
README.md
13
README.md
@ -1,6 +1,6 @@
|
|||||||
# Predixy
|
# 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
|
## Features
|
||||||
|
|
||||||
@ -15,7 +15,7 @@
|
|||||||
+ Supports redis transaction, limit in Redis Sentinel single redis group.
|
+ Supports redis transaction, limit in Redis Sentinel single redis group.
|
||||||
+ Supports redis Scripts, script load, eval, evalsha.
|
+ Supports redis Scripts, script load, eval, evalsha.
|
||||||
+ Supports redis Pub/Sub.
|
+ Supports redis Pub/Sub.
|
||||||
+ Multi-DataCenters support.
|
+ Multi-DataCenters support, read from slaves.
|
||||||
+ Extend AUTH, readonly/readwrite/admin permission, keyspace limit.
|
+ Extend AUTH, readonly/readwrite/admin permission, keyspace limit.
|
||||||
+ Log level sample, async log record.
|
+ Log level sample, async log record.
|
||||||
+ Log file auto rotate by time and/or file size.
|
+ Log file auto rotate by time and/or file size.
|
||||||
@ -61,9 +61,10 @@ See below files:
|
|||||||
|
|
||||||
$ ./predixy ../conf/predixy.conf
|
$ ./predixy ../conf/predixy.conf
|
||||||
|
|
||||||
With default predixy.conf, Predixy will proxy to Redis Cluster 127.0.0.1:6379,
|
With default predixy.conf, Predixy will listen at 0.0.0.0:7617 and
|
||||||
In general, 127.0.0.1:6379 is not running in Redis Cluster mode,
|
proxy to Redis Cluster 127.0.0.1:6379.
|
||||||
So you will look mass log output. But you can still test it with redis-cli.
|
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
|
$ redis-cli -p 7617 info
|
||||||
|
|
||||||
@ -105,7 +106,7 @@ Show latency monitors by server address and latency name
|
|||||||
|
|
||||||
redis> INFO ServerLatency <server-address> [latency-name]
|
redis> INFO ServerLatency <server-address> [latency-name]
|
||||||
|
|
||||||
Reset all stats and latency monitors
|
Reset all stats and latency monitors, require admin permission.
|
||||||
|
|
||||||
redis> CONFIG ResetStat
|
redis> CONFIG ResetStat
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ endif
|
|||||||
|
|
||||||
EV ?= auto
|
EV ?= auto
|
||||||
|
|
||||||
LDLIBCPP = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
|
LDLIBCPP = -static-libstdc++
|
||||||
|
|
||||||
ifeq ($(EV), auto)
|
ifeq ($(EV), auto)
|
||||||
plt = $(shell uname)
|
plt = $(shell uname)
|
||||||
@ -47,7 +47,7 @@ else
|
|||||||
$(error Unknown event:$(EV))
|
$(error Unknown event:$(EV))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS = -std=c++11 -g -Wall -w $(Opts)
|
CFLAGS = -std=c++11 -Wall -w $(Opts)
|
||||||
INCFLAGS =
|
INCFLAGS =
|
||||||
LDFLAGS += $(LDLIBCPP) -rdynamic -lpthread
|
LDFLAGS += $(LDLIBCPP) -rdynamic -lpthread
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ $(target): $(objs)
|
|||||||
$(CXX) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
$(CXX) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
@make LVL=
|
@make LVL=-g
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf $(objs) $(target)
|
@rm -rf $(objs) $(target)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user