项目背景
同盾科技作为中国第三方智能风控与决策服务的头部提供商,日均处理决策请求高达百亿次。因此在同盾的主体数据存储基础架构中,大量使用Redis做为缓存组件。在业务高峰时期,集群实际部署高达千余Redis实例,这势必对DBA运维管控带来极大挑战。2018年,集团推动无状态应用全面容器化,结合云原生技术的缓存云产品开始在数据存储和云原生团队内部酝酿落地。
td-redis-operator第一版本可追溯到2018年,此次外部开源的版本为第2版,开发时间从2018年7月份一直持续到现在,目前同盾两地双中心的Redis集群全部部署在超大规模的Kubernetes上。
目前使用规模:- Redis实例5000+
- PB级别数据量
- 涉及1000+个在线实时业务
项目介绍
名称:td-redis-operator
语言:Golang
定位:完全基于云原生技术,实现资源生命周期管理、故障自愈、HA等
介绍:https://github.com/tongdun/td-redis-operator/wiki/基本介绍
工作原理
原理描述:
1. 基于 Kubernetes Operator 开源产品,完全在kubernetes上运维托管。
2. 支持两种Redis实例管理交付,即Redis主备和Redis Cluster。
QuickStart
你可以使用helm命令来部署:
``` $ helm repo add td-redis-operator https://tongdun.github.io/td-redis-operator/charts/td-redis-operator $ helm repo update $ helm install [RELEASE_NAME] td-redis-operator/td-redis-operator ```关于helm的部署过程详见Helm部署文档。
除了使用helm部署外,你也可以使用kubectl命令部署:
``` $ kubectl apply -f https://raw.githubusercontent.com/tongdun/td-redis-operator/main/deploy/deploy.yaml $ kubectl apply -f https://raw.githubusercontent.com/tongdun/td-redis-operator/main/cr/redis_cluster.yaml $ kubectl apply -f https://raw.githubusercontent.com/tongdun/td-redis-operator/main/cr/redis_standby.yaml ```更多YAML文件详见YAML部署文档。