代码拉取完成,页面将自动刷新
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()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。