본문 바로가기

개발중/Redis

(5)
[트러블 슈팅] Headless Service 에 대한 오해 (1) 아래와 같은 설정을 하는 와중에 오해한 부분을 찾았습니다. 고성능을 위한 Redis (High Availability, HA)와 Kubernetes 구축 마스터 가이드 (Spring Session storage 설정까지) 목표 1. Redis k8s 구성 이해 Redis Sentinel 고가용성(High Availability, HA) 클러스터 구성 방식으로 설계하였습니다. Master Redis Server 실제 데이터를 저장하고 처리하는 주 서버입니다. Slave Redis Server Master soobindeveloper8.tistory.com Headless service Headless service는 Kubernetes에서 특별한 유형의 서비스입니다. 일반적인 Kubernetes 서비스는 ..
고성능을 위한 Redis (High Availability, HA)와 Kubernetes 구축 마스터 가이드 (Spring Session storage 설정까지) 목표 1. Redis k8s 구성 이해 Redis Sentinel 고가용성(High Availability, HA) 클러스터 구성 방식으로 설계하였습니다. Master Redis Server 실제 데이터를 저장하고 처리하는 주 서버입니다. Slave Redis Server Master 서버의 데이터를 복제합니다. 이는 고가용성을 높이고 읽기 쿼리의 부하 분산에 사용될 수 있습니다. Sentinel Nodes 클러스터의 상태를 모니터링하고, Master가 다운되면 새로운 Master를 선출하는 등의 작업을 수행합니다. 목표 2. Redis k8s 구축하기 Helm helm 에서 chart 내려 받습니다. helm install lucy3-redis oci://registry-1.docker.io/bitna..
[트러블슈팅] Could not connect to Redis at 127.0.0.1:6379: Connection refused redis local 에서 접속하려니 아래와 같은 오류가 발생했습니다. root@DESKTOP-Q26RDFJ:~# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused redis-server 명령어로 redis 실행시켜준 후 root@DESKTOP-Q26RDFJ:~# redis-server 617:C 12 Sep 2023 13:37:43.911 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also caus..
[Redis 트러블슈팅] OOM command not allowed when used memory > 'maxmemory'. 초기에 Redis 와 Web 을 연동시에 잘 연동이 되는 것을 확인했으나. 어느 순간부터 아래와 같은 에러가 발생하는 것을 확인했습니다. 2023-09-11 23:41:34.216 ERROR 1 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost] : Exception Processing ErrorPage[errorCode=0, location=/error] org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: OOM command not allowed when use..
k8s Redis 구성방식에 대해서 고민하는 중입니다. k8s Redis 메니페스트 아래와 같이 구성하면 초간단 Redis 는 구축됨 로컬 세션 스토리지를 레디스로 옮겼다. 근데 문제가 있다. 파드에 있는 노드가 죽어버리면 .. ? 로컬 스로리지에서 인증 정보를 저장할 때랑 별 다른게 없는것이 아닌가 ? 그래서 사람들이 master 와 slave 로 구성을 하는 것 같다. ConfigMap apiVersion: v1 kind: ConfigMap metadata: name: lucy3-redis-config namespace: lucy3 data: redis-config: "" Service apiVersion: v1 kind: Service metadata: name: lucy3-redis-service namespace: lucy3 spec: selecto..