1 Star 0 Fork 0

keets2012 / Python-Eureka

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

python-eureka version - 2.1M

Python client for Netflix Eureka https://github.com/Netflix/eureka/

I upgrade based on https://github.com/KristianOellegaard/python-eureka.

As KristianOellegaard's Eureka version is too old and not compatible with newer version.

The goal of this project is to provide an easy-to-use client interface to Eureka, a middle-tier load balancer open sourced and used by Netflix.

It's fairly straight forward to use once you hve setup Eureka itself. Consider the following script (to be run on EC2):


from eureka.client import EurekaClient
import logging

logging.basicConfig()


ec = EurekaClient("MyApplication",
                  eureka_domain_name="test.yourdomain.net",
                  region="eu-west-1",
                  vip_address="http://app.yourdomain.net/",
                  port=80,
                  secure_vip_address="https://app.yourdomain.net/",
                  secure_port=443
)
print ec.get_zones_from_dns()
print ec.get_eureka_urls()
print ec.register()
print ec.update_status("UP")  # Or ec.register("UP")
print ec.heartbeat()

空文件

简介

Python-Eureka client for Eureka. based on https://github.com/KristianOellegaard/python-eureka. 展开 收起
Python
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/keets/Python-Eureka.git
git@gitee.com:keets/Python-Eureka.git
keets
Python-Eureka
Python-Eureka
master

搜索帮助