배치서비스개발, redis설정
- Analytics 5분 단위 배치 스케줄러 추가 - 초기 데이터 로딩 기능 구현 (서버 시작 30초 후) - Redis 설정 업데이트 (외부 Redis 서버 연결) - Redis 읽기 전용 오류 처리 추가 - IntelliJ 실행 프로파일 생성 - @EnableScheduling 활성화 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -29,9 +29,9 @@ spring:
|
||||
# Redis
|
||||
data:
|
||||
redis:
|
||||
host: ${REDIS_HOST:localhost}
|
||||
host: ${REDIS_HOST:20.214.210.71}
|
||||
port: ${REDIS_PORT:6379}
|
||||
password: ${REDIS_PASSWORD:}
|
||||
password: ${REDIS_PASSWORD:Hi5Jessica!}
|
||||
timeout: 2000ms
|
||||
lettuce:
|
||||
pool:
|
||||
@@ -136,3 +136,10 @@ resilience4j:
|
||||
failure-rate-threshold: 50
|
||||
wait-duration-in-open-state: 30s
|
||||
sliding-window-size: 10
|
||||
|
||||
# Batch Scheduler
|
||||
batch:
|
||||
analytics:
|
||||
refresh-interval: ${BATCH_REFRESH_INTERVAL:300000} # 5분 (밀리초)
|
||||
initial-delay: ${BATCH_INITIAL_DELAY:30000} # 30초 (밀리초)
|
||||
enabled: ${BATCH_ENABLED:true} # 배치 활성화 여부
|
||||
|
||||
Reference in New Issue
Block a user