Skip to content

Commit

Permalink
Merge pull request #731 from jsonwan/github_perf/redis_etc_default
Browse files Browse the repository at this point in the history
perf: 社区版部署默认不使用redis sentinel #730
  • Loading branch information
jsonwan authored Mar 21, 2022
2 parents 8dcfa4b + 9cb7602 commit 866eae0
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ spring:
redis:
host: __BK_JOB_ANALYSIS_REDIS_HOST__
port: __BK_JOB_ANALYSIS_REDIS_PORT__
sentinel:
password: __BK_JOB_ANALYSIS_REDIS_SENTINEL_PASSWORD__
master: __BK_JOB_ANALYSIS_REDIS_SENTINEL_MASTER__
nodes: __BK_JOB_ANALYSIS_REDIS_SENTINEL_NODES__
# 使用Redis Sentinel时的配置项
#sentinel:
# password: __BK_JOB_ANALYSIS_REDIS_SENTINEL_PASSWORD__
# master: __BK_JOB_ANALYSIS_REDIS_SENTINEL_MASTER__
# nodes: __BK_JOB_ANALYSIS_REDIS_SENTINEL_NODES__
password: __BK_JOB_ANALYSIS_REDIS_PASSWORD__
database: 0
lettuce:
Expand Down
9 changes: 5 additions & 4 deletions support-files/templates/#etc#job#job-backup#job-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ spring:
redis:
host: __BK_JOB_BACKUP_REDIS_HOST__
port: __BK_JOB_BACKUP_REDIS_PORT__
sentinel:
password: __BK_JOB_BACKUP_REDIS_SENTINEL_PASSWORD__
master: __BK_JOB_BACKUP_REDIS_SENTINEL_MASTER__
nodes: __BK_JOB_BACKUP_REDIS_SENTINEL_NODES__
# 使用Redis Sentinel时的配置项
#sentinel:
# password: __BK_JOB_BACKUP_REDIS_SENTINEL_PASSWORD__
# master: __BK_JOB_BACKUP_REDIS_SENTINEL_MASTER__
# nodes: __BK_JOB_BACKUP_REDIS_SENTINEL_NODES__
password: __BK_JOB_BACKUP_REDIS_PASSWORD__
database: 0
lettuce:
Expand Down
9 changes: 5 additions & 4 deletions support-files/templates/#etc#job#job-crontab#job-crontab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ spring:
redis:
host: __BK_JOB_CRONTAB_REDIS_HOST__
port: __BK_JOB_CRONTAB_REDIS_PORT__
sentinel:
password: __BK_JOB_CRONTAB_REDIS_SENTINEL_PASSWORD__
master: __BK_JOB_CRONTAB_REDIS_SENTINEL_MASTER__
nodes: __BK_JOB_CRONTAB_REDIS_SENTINEL_NODES__
# 使用Redis Sentinel时的配置项
#sentinel:
# password: __BK_JOB_CRONTAB_REDIS_SENTINEL_PASSWORD__
# master: __BK_JOB_CRONTAB_REDIS_SENTINEL_MASTER__
# nodes: __BK_JOB_CRONTAB_REDIS_SENTINEL_NODES__
password: __BK_JOB_CRONTAB_REDIS_PASSWORD__
database: 0
lettuce:
Expand Down
9 changes: 5 additions & 4 deletions support-files/templates/#etc#job#job-execute#job-execute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ spring:
redis:
host: __BK_JOB_EXECUTE_REDIS_HOST__
port: __BK_JOB_EXECUTE_REDIS_PORT__
sentinel:
password: __BK_JOB_EXECUTE_REDIS_SENTINEL_PASSWORD__
master: __BK_JOB_EXECUTE_REDIS_SENTINEL_MASTER__
nodes: __BK_JOB_EXECUTE_REDIS_SENTINEL_NODES__
# 使用Redis Sentinel时的配置项
#sentinel:
# password: __BK_JOB_EXECUTE_REDIS_SENTINEL_PASSWORD__
# master: __BK_JOB_EXECUTE_REDIS_SENTINEL_MASTER__
# nodes: __BK_JOB_EXECUTE_REDIS_SENTINEL_NODES__
password: __BK_JOB_EXECUTE_REDIS_PASSWORD__
database: 0
lettuce:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ spring:
redis:
host: __BK_JOB_FILE_GATEWAY_REDIS_HOST__
port: __BK_JOB_FILE_GATEWAY_REDIS_PORT__
sentinel:
password: __BK_JOB_FILE_GATEWAY_REDIS_SENTINEL_PASSWORD__
master: __BK_JOB_FILE_GATEWAY_REDIS_SENTINEL_MASTER__
nodes: __BK_JOB_FILE_GATEWAY_REDIS_SENTINEL_NODES__
# 使用Redis Sentinel时的配置项
#sentinel:
# password: __BK_JOB_FILE_GATEWAY_REDIS_SENTINEL_PASSWORD__
# master: __BK_JOB_FILE_GATEWAY_REDIS_SENTINEL_MASTER__
# nodes: __BK_JOB_FILE_GATEWAY_REDIS_SENTINEL_NODES__
password: __BK_JOB_FILE_GATEWAY_REDIS_PASSWORD__
database: 0
lettuce:
Expand Down
9 changes: 5 additions & 4 deletions support-files/templates/#etc#job#job-manage#job-manage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ spring:
redis:
host: __BK_JOB_MANAGE_REDIS_HOST__
port: __BK_JOB_MANAGE_REDIS_PORT__
sentinel:
password: __BK_JOB_MANAGE_REDIS_SENTINEL_PASSWORD__
master: __BK_JOB_MANAGE_REDIS_SENTINEL_MASTER__
nodes: __BK_JOB_MANAGE_REDIS_SENTINEL_NODES__
# 使用Redis Sentinel时的配置项
#sentinel:
# password: __BK_JOB_MANAGE_REDIS_SENTINEL_PASSWORD__
# master: __BK_JOB_MANAGE_REDIS_SENTINEL_MASTER__
# nodes: __BK_JOB_MANAGE_REDIS_SENTINEL_NODES__
password: __BK_JOB_MANAGE_REDIS_PASSWORD__
database: 0
lettuce:
Expand Down

0 comments on commit 866eae0

Please sign in to comment.