瀏覽代碼

修改redis连接

Sand Wen 9 年之前
父節點
當前提交
099d5d41e9
共有 4 個文件被更改,包括 59 次插入21 次删除
  1. 31 15
      application.yml
  2. 27 0
      svr-org.yml
  3. 1 2
      svr-pack-resolve.yml
  4. 0 4
      svr-user.yml

+ 31 - 15
application.yml

@ -1,3 +1,33 @@
#The region code, where application deployed
deploy:
  region: 3502
#EHR platform user default password
default:
  password: 123456
redis-key-schema:
  std:
    version-table-prefix: std_cda_versions
    version-name-column: name
    data-set-table-prefix: std_data_set_
    data-set-code-column: code
    meta-data-table-prefix: std_meta_data_
    meta-data-dict-id-column: dict_id
    dict-entry-table: std_dictionary_entry_
    dict-entry-value-column: value
  org:
    table: organizations
    name-column: name
#Application error definition, this file define common errors,
#if the error is used only in your application, please define it in your application configuration file.
ehr.common.invalid.parameter: 参数解析错误
ehr.common.query.not.found: 不存在该对象
ehr.common.repeat.code: 代码重复
#Application port, since 10100, 10 per step. Update max port if new application created. Current max: 10180
svr-adaption.server.port: 10150
@ -17,20 +47,6 @@ svr-user.server.port: 10120
ag-ehr-platform.server.port: 443
ag-admin.server.port: 10000
#Application error definition, this file define common errors,
#if the error is used only in your application, please define it in your application configuration file.
ehr.common.invalid.parameter: 参数解析错误
ehr.common.query.not.found: 不存在该对象
ehr.common.repeat.code: 代码重复
#The region code, where application deployed
deploy:
  region: 3502
#EHR platform user default password
default:
  password: 123456
#Application acuator
endpoints:
  restart:
@ -40,8 +56,8 @@ endpoints:
  health:
    sensitive: false
#JPA config for MySQL
spring:
  #JPA config for MySQL
  jpa:
    database-platform: org.hibernate.dialect.MySQL5Dialect
    hibernate.dialect: org.hibernate.dialect.MySQL5Dialect

+ 27 - 0
svr-org.yml

@ -3,6 +3,24 @@
    com:
      netflix: DEBUG
spring:
  # REDIS
  redis:
    database: 0 # Database index used by the connection factory.
    host: localhost # Redis server host.
    port: 6379 # Redis server port.
    password: # Login password of the redis server.
    timeout: 0 # Connection timeout in milliseconds.
    #sentinel:
    #  master: # Name of Redis server.
    #  nodes: # Comma-separated list of host:port pairs.
    
    pool:
      max-active: 8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
      max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
      max-wait: -1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
      min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
data-source:
  driver-class-name: com.mysql.jdbc.Driver
  initialize-size: 1
@ -17,6 +35,9 @@ data-source:
spring:
  profiles: dev
  redis:
    host: 172.19.103.47 # Redis server host.
data-source:
  url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha
@ -26,6 +47,9 @@ data-source:
spring:
  profiles: test
  redis:
    host: 172.17.110.68 # Redis server host.
data-source:
  url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: weifuwu
@ -35,6 +59,9 @@ data-source:
spring:
  profiles: prod
  redis:
    host: 11.1.2.20 # Redis server host.
data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha

+ 1 - 2
svr-pack-resolve.yml

@ -17,7 +17,6 @@ spring:
  # REDIS
  redis:
    database: 0 # Database index used by the connection factory.
    host: localhost # Redis server host.
    port: 6379 # Redis server port.
    password: # Login password of the redis server.
    timeout: 0 # Connection timeout in milliseconds.
@ -53,7 +52,7 @@ fast-dfs:
    secret-key: FastDFS1234567890
profile:
  data-buffer-size: 200   # 记录缓冲区数量
  data-buffer-size: 200   # HBase batch insert record buffer size.
#error code and message

+ 0 - 4
svr-user.yml

@ -35,10 +35,6 @@ data-source:
spring:
  profiles: prod
hibernate:
  show-sql: true
  format-sql: true
data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha