Skip to content

Commit 6f118cd

Browse files
committed
docs: update
1 parent d5166df commit 6f118cd

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

docs/camellia-redis-proxy/deploy/quick-start-docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* 构建镜像样例,见: [docker-build](docker/Dockerfile-jdk21)
77
* k8s环境部署注意事项:
88
- 如果使用k8s的svc模式为clusterIP: None,当pod大于15个以上,避免K8S内部DNS的问题,可以使用多个svc分散代理一定数量的statefulset(原因:udp的dns请求最大响应大小为512字节,超过后udp返回的dns响应会设置Truncate)
9-
- 如果后端redis和camellia-redis-proxy实例在短时间内先后发生重启/宕机,默认情况下可能会导致camellia-redis-proxy初始化后不监听端口,建议配置preheat: false或者 "upstream.lazy.init.enable": true,请参考:[初始化](https://github.com/netease-im/camellia/blob/master/docs/camellia-redis-proxy/other/init.md)
9+
- 如果后端redis和camellia-redis-proxy实例在短时间内先后发生重启/宕机,默认情况下可能会导致camellia-redis-proxy初始化后不监听端口,建议配置preheat: false或者 "upstream.lazy.init.enable": true,请参考:[初始化](../other/init.md)
1010

1111
* 你可以使用kube-blocks去一键部署camellia-redis-proxy,请参考:[kube-blocks](https://www.kubeblocks.io/docs/preview/api_docs/overview/supported-addons)

docs/camellia-redis-proxy/other/init.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,9 @@
33

44
#### 初始化
55

6-
```yaml
7-
server:
8-
port: 6380
9-
spring:
10-
application:
11-
name: camellia-redis-proxy-server
12-
13-
camellia-redis-proxy:
14-
password: pass123
15-
transpond:
16-
type: local
17-
local:
18-
type: simple
19-
resource: redis-cluster://@127.0.0.1:6379,127.0.0.1:6378,127.0.0.1:6377
6+
```properties
7+
password=pass123
8+
route.conf=redis-cluster://@127.0.0.1:6379,127.0.0.1:6378,127.0.0.1:6377
209
```
2110

2211
如上配置下,redis-proxy在启动时会尝试初始化到`redis-cluster://@127.0.0.1:6379,127.0.0.1:6378,127.0.0.1:6377`的连接,主要是为了获取`redis-cluster`的初始拓扑信息,并开启定时刷新拓扑的定时任务,`redis-cluster-slaves`资源类型也是类似的

0 commit comments

Comments
 (0)