Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- jpa auto increment
- spring boot 2.0 ssl
- redis ha
- Distributed Tracing System
- msa 4.0
- tracing tool
- spring boot http client
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill: #0000ff"/> </svg>
- kubernates
- java static resources
- spring cloud zuul
- sidecar
- spring cloud api gateway
- <iframe src="http://erea.tistory.com/attachment/cfile21.uf@997995485B2F785A3292EE.svg"></iframe>
- spring boot ssl
- spring cloud load balancer
- MySQL
- high availabillty
- spring boot hot swapping
- intelij devtools
- redis cluster
- Spring boot
- Service Mesh
- Istio
- spring boot jks
- Spring Cloud Bus
- intelij spring boot devtools
- spring boot ssl verify skip
- sidecar patern
- Spring Cloud Config
Archives
- Today
- Total
erea
Eureka Server 본문
Overview
Eureka는 중간 계층 서버의로드 균형 조정 및 장애 조치 (failover)를 위해 서비스를 찾기 위해 AWS 클라우드에서 주로 사용되는 REST
(Representational State Transfer) 기반 서비스입니다. 우리는이 서비스를 유레카 서버 라고 부릅니다 . Eureka에는 Java 기반 클라이언트 구성
요소 인 Eureka Client가 함께 제공되므로 서비스와의 상호 작용이 훨씬 쉬워집니다. 또한 클라이언트에는 기본 라운드 로빈로드 균형 조정을
수행하는 기본 제공로드 균형 조정기가 있습니다. Netflix에서 훨씬 정교한로드 밸런서는 유레카를 감싸서 트래픽, 리소스 사용, 오류 조건 등과
같은 여러 요소를 기반으로 가중로드 밸런싱을 제공하여 우수한 탄력성을 제공합니다.
Setting up
bundle.gradle
buildscript { ext { springBootVersion = '2.0.3.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'idea' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' group = 'com.eureka' version = '0.0.1-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenCentral() } ext { springCloudVersion = 'Finchley.RELEASE' } dependencies { compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-server') compile('org.springframework.boot:spring-boot-starter-web') testCompile('org.springframework.boot:spring-boot-starter-test') } dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" } }bootstrap.yml
server: port: 8761 spring: application: name: eureka-server
EurekaApplication .java
package com.eureka; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; @SpringBootApplication @EnableEurekaServer public class EurekaApplication { public static void main(String[] args) { SpringApplication.run(EurekaApplication.class, args); } }
이렇게 EnableEurekaServer annotation만 걸어주면 유레카 서버가 뜨게된다.
eureka서버는 사실 설정할게 별로 없다
zuul proxy로 넘어가겠다.
'dev > Spring Boot Cloud MicroService' 카테고리의 다른 글
spring cloud config server #3 (0) | 2018.07.10 |
---|---|
Zuul Proxy (0) | 2018.07.03 |
spring boot with Netflix Oss (0) | 2018.07.02 |
spring cloud config server (0) | 2018.07.01 |
Comments