Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持redis7 #162

Open
sugniii opened this issue Nov 28, 2022 · 5 comments
Open

是否支持redis7 #162

sugniii opened this issue Nov 28, 2022 · 5 comments

Comments

@sugniii
Copy link

sugniii commented Nov 28, 2022

我使用k8s部署redis集群,三主三从,我的集群配置使用过ip:port和svc:port可是都是报错以下内容,希望作者能否告知以下是否支持redis7,还是我的配置的问题
2022-11-28 10:21:16.243520 N ConnectConnectionPool.cpp:42 h 4 create server connection redis-cluster-3.headless-redis-cluster.redis.svc.cluster.local:6379 38
2022-11-28 10:21:16.244505 E ClusterServerPool.cpp:188 redis cluster nodes parse error
redis版本:7.0.5
predixy版本:1.0.5
telnet:true
nslookup:true
cluster.conf
`

redis cluster server pool define

##ClusterServerPool {
##    [Password xxx]                        #default no
##    [MasterReadPriority [0-100]]          #default 50
##    [StaticSlaveReadPriority [0-100]]     #default 0
##    [DynamicSlaveReadPriority [0-100]]    #default 0
##    [RefreshInterval number[s|ms|us]]     #default 1, means 1 second
##    [ServerTimeout number[s|ms|us]]       #default 0, server connection socket read/write timeout
##    [ServerFailureLimit number]           #default 10
##    [ServerRetryTimeout number[s|ms|us]]  #default 1
##    [KeepAlive seconds]                   #default 0, server connection tcp keepalive
##    Servers {
##        + addr
##        ...
##    }
##}

ClusterServerPool {
  MasterReadPriority 60
  StaticSlaveReadPriority 50
  DynamicSlaveReadPriority 50
  RefreshInterval 1
  ServerTimeout 1
  ServerFailureLimit 10
  ServerRetryTimeout 1
  KeepAlive 120
  Servers {
    + 172.16.190.28:6379
    + 172.16.190.52:6379
    + 172.16.190.31:6379
    + 172.16.190.37:6379
    + 172.16.190.114:6379
    + 172.16.190.111:6379
    # + redis-cluster-0.headless-redis-cluster.redis.svc.cluster.local:6379
    #+ redis-cluster-1.headless-redis-cluster.redis.svc.cluster.local:6379
    #+ redis-cluster-2.headless-redis-cluster.redis.svc.cluster.local:6379
    #+ redis-cluster-3.headless-redis-cluster.redis.svc.cluster.local:6379
    #+ redis-cluster-4.headless-redis-cluster.redis.svc.cluster.local:6379
    #+ redis-cluster-5.headless-redis-cluster.redis.svc.cluster.local:6379
  }

`

predixy.conf
`
################################### GENERAL ####################################
## Predixy configuration file example

## Specify a name for this predixy service
## redis command INFO can get this
Name PredixyExample

## Specify listen address, support IPV4, IPV6, Unix socket
## Examples:
# Bind 127.0.0.1:7617
# Bind 0.0.0.0:7617
# Bind /tmp/predixy

## Default is 0.0.0.0:7617
# Bind 0.0.0.0:7617

## Worker threads
WorkerThreads 6

## Memory limit, 0 means unlimited

## Examples:
# MaxMemory 100M
# MaxMemory 1G
# MaxMemory 0

## MaxMemory can change online by CONFIG SET MaxMemory xxx
## Default is 0
# MaxMemory 0

## Close the connection after a client is idle for N seconds (0 to disable)
## ClientTimeout can change online by CONFIG SET ClientTimeout N
## Default is 0
# ClientTimeout 300


## IO buffer size
## Default is 4096
# BufSize 4096

################################### LOG ########################################
## Log file path
## Unspecify will log to stdout
## Default is Unspecified
# Log ./predixy.log

## LogRotate support

## 1d rotate log every day
## nh rotate log every n hours   1 <= n <= 24
## nm rotate log every n minutes 1 <= n <= 1440
## nG rotate log evenry nG bytes
## nM rotate log evenry nM bytes
## time rotate and size rotate can combine eg 1h 2G, means 1h or 2G roate a time

## Examples:
# LogRotate 1d 2G
# LogRotate 1d

## Default is disable LogRotate


## In multi-threads, worker thread log need lock,
## AllowMissLog can reduce lock time for improve performance
## AllowMissLog can change online by CONFIG SET AllowMissLog true|false
## Default is true
# AllowMissLog false

## LogLevelSample, output a log every N
## all level sample can change online by CONFIG SET LogXXXSample N
LogVerbSample 0
LogDebugSample 0
LogInfoSample 10000
LogNoticeSample 1
LogWarnSample 1
LogErrorSample 1

################################### AUTHORITY ##################################
# Include auth.conf

################################### SERVERS ####################################
# Include cluster.conf
# Include sentinel.conf
# Include try.conf
Include cluster.conf

################################### DATACENTER #################################
## LocalDC specify current machine dc
# LocalDC bj

## see dc.conf
# Include dc.conf

################################### COMMAND ####################################
## Custom command define, see command.conf
#Include command.conf

################################### LATENCY ####################################
## Latency monitor define, see latency.conf
# Include latency.conf

`

@frankhu8552
Copy link

同问

@caojiajun
Copy link

只要不是新的命令,都是支持的吧

@caolicaoli
Copy link

支持的,我已经接近来了

@fortrue
Copy link
Member

fortrue commented Oct 30, 2023

新发布的版本已经全面支持Redis7新增的命令和功能,https://github.com/joyieldInc/predixy/releases/tag/7.0.0

@hi3000seabird
Copy link

我也遇到相同的问题,predixy1.0.5 不是redis7
发现用虚拟机没问题,但的k8s容器里就会报这个错
ClusterServerPool.cpp:188 redis cluster nodes parse error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants