In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the method of Spring Cloud Eureka production configuration". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Eureka Server server configuration
Server: port: 8761spring: profiles: active: eureka1 application: name: eureka-servereureka: instance: hostname: eureka-server-1 instance-id: eureka-server-1 # eureka is registered using hostname Register with IP prefer-ip-address: false appname: ${spring.application.name} # Renewal expiration time (default 90 seconds) lease-expiration-duration-in-seconds: 30 # Renewal update interval (default 30 seconds) lease-renewal-interval-in-seconds: 15 server: # set to false Turn off self-protection enable-self-preservation: false # self-protection factor (default 0.85) renewal-percent-threshold: 0.85 # disable Eureka's ReadOnlyMap cache use-read-only-response-cache: false # Clean invalid nodes interval (in milliseconds, default is 60mm 1000) eviction-interval-timer-in-ms: 3000 # valid duration of registration information cache (s) Default 180s response-cache-auto-expiration-in-seconds: 15 # registration information cache update interval (s), default 30 seconds response-cache-update-interval-ms: 5000 # set eureka server synchronization failure waiting time, default 5 minutes, during which it does not provide the client with service registration information wait-time-in-ms-when-sync-empty: 5 # set the number of eureka server synchronization failed retries The default is 5 times number-of-replication-retries: 5 client: healthcheck: enabled: true registerWithEureka: true fetchRegistry: true service-url: defaultZone: http://eureka-server-2:${server.port}/eureka/,http://eureka-server-3:${server.port}/eureka/
Eureka Client client configuration
Eureka: instance: # register prefer-ip-address: true # with IP to register with the unique instance ID on eureka (cannot be duplicated with other instances of the same appName). Instance-id: ${spring.cloud.client.ip-address}: ${server.port} # hostname. If it is not configured, the hostname will be obtained based on the hostname of the operating system: ${spring.application.name} # instance renewal interval (default is 30 seconds) lease-renewal-interval-in-seconds: 5 # instance timeout, which means that if there is no renewal after * seconds, Server considers it unavailable and removes it. Lease-expiration-duration-in-seconds: 15 status-page-url-path: management/info health-check-url-path: management/health client: # indicates whether this instance should register its information with the eureka server for discovery by other services. The default is false register-with-eureka: true # whether to obtain registration information from Server fetch-registry: true # regularly pulls service registration information from Eureka Server (default is 30 seconds) Unit: s / s) registry-fetch-interval-seconds: 5 # Eureka cluster address service-url: defaultZone: ${eureka.server} "what is the method of Spring Cloud Eureka production configuration"? thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.