Skip to content

Commit

Permalink
adjust compiler options and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
joyield committed Jul 30, 2017
1 parent 293f48d commit 6ab54bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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.
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -105,7 +106,7 @@ Show latency monitors by server address and 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

Expand Down
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif

EV ?= auto

LDLIBCPP = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
LDLIBCPP = -static-libstdc++

ifeq ($(EV), auto)
plt = $(shell uname)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -102,7 +102,7 @@ $(target): $(objs)
$(CXX) $(CFLAGS) -o $@ $^ $(LDFLAGS)

debug:
@make LVL=
@make LVL=-g

clean:
@rm -rf $(objs) $(target)
Expand Down

0 comments on commit 6ab54bf

Please sign in to comment.