Skip to content

Commit

Permalink
perf($Consul): deregister service when unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Feb 8, 2021
1 parent b4150f1 commit d36aac3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions api-gateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spring:
port: ${server.port}
prefer-ip-address: true
ip-address: ${spring.cloud.client.ip-address}
health-check-critical-timeout: 15s
gateway:
discovery:
locator:
Expand Down
1 change: 1 addition & 0 deletions auth-center/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ spring:
port: ${server.port}
prefer-ip-address: true
ip-address: ${spring.cloud.client.ip-address}
health-check-critical-timeout: 15s
datasource:
name: muscle_and_fitness
type: com.alibaba.druid.pool.DruidDataSource
Expand Down
1 change: 1 addition & 0 deletions exercise-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ spring:
port: ${server.port}
prefer-ip-address: true
ip-address: ${spring.cloud.client.ip-address}
health-check-critical-timeout: 15s
datasource:
name: muscle_and_fitness
type: com.alibaba.druid.pool.DruidDataSource
Expand Down
1 change: 1 addition & 0 deletions muscle-mis/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spring:
port: ${server.port}
prefer-ip-address: true
ip-address: ${spring.cloud.client.ip-address}
health-check-critical-timeout: 15s
datasource:
name: muscle_and_fitness
type: com.alibaba.druid.pool.DruidDataSource
Expand Down
1 change: 1 addition & 0 deletions spring-boot-admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spring:
port: ${server.port}
prefer-ip-address: true
ip-address: ${spring.cloud.client.ip-address}
health-check-critical-timeout: 15s
datasource:
name: muscle_and_fitness
type: com.alibaba.druid.pool.DruidDataSource
Expand Down

0 comments on commit d36aac3

Please sign in to comment.