Skip to content

[공통] Redis 공통 모듈 생성#206

Open
zmfpdl64 wants to merge 20 commits intodevelopfrom
feature/common/#200
Open

[공통] Redis 공통 모듈 생성#206
zmfpdl64 wants to merge 20 commits intodevelopfrom
feature/common/#200

Conversation

@zmfpdl64
Copy link
Contributor

@zmfpdl64 zmfpdl64 commented Jun 17, 2024

개요

공통으로 사용되는 Redis 설정
this branch is #200

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가
  • 코드 리팩토링
  • 테스트 추가, 테스트 리팩토링
  • 빌드 부분 혹은 패키지 매니저 수정
  • 파일 혹은 폴더명 수정
  • 파일 혹은 폴더 삭제

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다. Commit message convention 참고 (Ctrl + 클릭하세요.)
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트).

Description

  • docker-compose.yml 작성
  • Spring Redis Cluster 적용

Redis docker 띄우기

Redis 도커 컴포즈 실행

 docker-compose -p "redis-single"  -f ./redis-single.yml up -d

-p 도커 이름
-f 폴더 위치
-d 백그라운드 실행

Redis 상태 확인

docker exec -it redis-single-redis_container-1 redis-cli -c -p 6379 info

yml 파일 설정

spring:
  data:
    redis:
      host: localhost
      port: 6379
      redisson-prefix: "redis://"

@zmfpdl64 zmfpdl64 added 개발 특이사항이 있는 개발에 대한 이슈 공통 labels Jun 17, 2024
@zmfpdl64 zmfpdl64 self-assigned this Jun 17, 2024
@zmfpdl64 zmfpdl64 linked an issue Jun 17, 2024 that may be closed by this pull request
1 task
@@ -0,0 +1,5 @@
port 7001

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

레디스 클러스터 설정을 한파일로도 할수 있지 않나요??

Copy link
Contributor Author

@zmfpdl64 zmfpdl64 Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다른 설정들은 같은데 port 번호는 달라서 설정파일을 각각 작성하게 됐습니다

import org.springframework.context.annotation.FullyQualifiedAnnotationBeanNameGenerator;

@SpringBootApplication(nameGenerator = FullyQualifiedAnnotationBeanNameGenerator.class)
public class RedisApplication {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redis는 application이 없는게 맞는듯 합니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모듈에서 실행파일은 없어야 될 것 같습니다 이부분 삭제하겠습니다

@dodari79 dodari79 requested a review from dodari5882 June 23, 2024 10:59
@github-actions
Copy link

github-actions bot commented Jun 26, 2024

📝 Jacoco Test Coverage

Overall Project 67.25% 🟢

There is no coverage information present for the Files changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

개발 특이사항이 있는 개발에 대한 이슈 공통

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[공통] Redis 설정

3 participants