Comments (7)
welcome to join wechat-group
from camellia.
server:
port: 6380
spring:
application:
name: camellia-redis-proxy-server
camellia-redis-proxy:
console-port: 16379
password: pass123
monitor-enable: false
monitor-interval-seconds: 60
plugins:
- monitorPlugin
- bigKeyPlugin
- hotKeyPlugin
transpond:
type: local
local:
type: simple
resource: redis://@127.0.0.1:6379
redis-conf:
preheat: false
you can sett config preheat
to false
from camellia.
OK! thanks for the reply I will give it a try.
from camellia.
It seems not working :(
cat /opt/redis-proxy/BOOT-INF/classes/application.yml|grep -v ^#
server:
port: 6380
spring:
application:
name: camellia-redis-proxy-server
camellia-redis-proxy:
#port: 6380 #priority greater than server.port, if missing, use server.port; if setting -6379, proxy will choose a random port
#application-name: camellia-redis-proxy-server #priority greater than spring.application.name, if missing, use spring.application.name
console-port: 26379 #console port, default 16379, if setting -16379, proxy will choose a random port, if setting 0, will disable console
password: password #password of proxy, priority less than custom client-auth-provider-class-name
monitor-enable: false #monitor enable/disable configure
monitor-interval-seconds: 60 #monitor data refresh interval seconds
plugins: #plugin list
- monitorPlugin
- bigKeyPlugin
- hotKeyPlugin
transpond:
type: local #local、remote、custom
local:
type: simple #simple、complex
resource: redis-cluster://@192.168.5.102:10001,192.168.5.102:10002,192.168.5.102:10003,192.168.5.102:10004,192.168.5.102:10005,192.168.5.102:10006
redis-conf:
preheat: false #preheat upstream redis-connection, default true
from camellia.
you maybe should use custom transpond.type, see:
https://github.com/netease-im/camellia/blob/master/docs/redis-proxy/other/multi-telant.md
https://github.com/netease-im/camellia/blob/master/docs/redis-proxy/other/multi-telant2.md
from camellia.
in my test case the redis-cluster where boot up after the redis-proxy.service (systemd unit file)
why custom?
redis-cluster://@192.168.5.102:10001,192.168.5.102:10002,192.168.5.102:10003,192.168.5.102:10004,192.168.5.102:10005,192.168.5.102:10006
is JUST a redis HA ,aka 6 instance (1 replicas) with --cluster create --cluster-replicas 1
is it Is there any difference with resource: redis-cluster://@127.0.0.1:6379,127.0.0.1:6378,127.0.0.1:6377
配置application.yml, 如下:
server:
port: 6380
spring:
application:
name: camellia-redis-proxy-server
camellia-redis-proxy:
password: pass123
transpond:
type: local
local:
type: simple
resource: redis-cluster://@127.0.0.1:6379,127.0.0.1:6378,127.0.0.1:6377
from camellia.
in custom mode proxy will not to verify availability of upstream redis-cluster
from camellia.
Related Issues (20)
- optimize docs
- camellia-core support failed write task queue for custom handler
- optimize camellia-mq-isolation
- camellia-config support 64k config value
- camellia-redis-proxy optimize lazy init in local mode
- upgrade netty version
- camellia-feign support custom retry policy
- provide camellia-redis-proxy-kv
- use CompletableFuture#completedFuture optimize code
- CamelliaHashedExecutor support work thread init callback
- Add a prefix to the metric name uniformly, similar to "camellia_cpu" ,not only "cpu".
- Support Proxy to Redis Server connection pool HOT 5
- fail[syntax error] in camellia-redis-proxy log once in a while HOT 2
- refactor redis proxy cluster-mode/sentinel-mode processor
- optimize health api
- optimize console start in spring-boot-starter
- optimize error log
- camellia-redis-proxy syntax error HOT 8
- external log requested 需要额外日志
- redis-proxy support consensus cluster mode
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 camellia.