TheOpenCloudEngine / uEngine-cloud

OCE's main component includes : PaaS (Self-service) Portal, Dev-ops, Cloud orchestrator. Also includes microservices-architecture components: Identity & Access Management conforming to OAuth2 and JWT spec and Zuul-based API proxy that interacts with IAM and the service registry (Eureka).

Home Page:http://uengine.org/products/pass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Eureka Metadata - feign client & zuul

SeungpilPark opened this issue · comments

  1. 유엔진 서버에서, 유레카 메타데이터에 profile 상태를 을 상시 업데이트함.

    1. 현재 활성화된 프로덕션
<metadata>
    <profile>prod</profile>
    <deployment>blue(or green)</deployment>
</metadata>
  1. 롤백 대기 상태 프로덕션
<metadata>
    <profile>rollback</profile>
    <deployment>blue(or green)</deployment>
</metadata>
  1. local,dev,stg
<metadata>
    <profile>local(or dev,stg)</profile>
    <deployment>local(or dev,stg)</deployment>
</metadata>
  1. Zuul 에서 기존처럼 유엔진 서버에 앱 목록을 요청하는 방식을 쓰지 않고, 자신의 profile 에 따라 유레카 메타데이터를 따져서 사용하도록 한다.

  2. Feign 클라이언트 리퀘스트 인터셉터에, 자신의 profile 에 따라 유레카 메타데이터를 필터링 하도록 한다.