Release fix2 (#25)
* 1. commit zookeeper connection
* Increase the processing of heartbeats
* 1. Send a request to subscribe
* 1. zookeeper watch event...
* 1. zookeeper watch event...
* 1. update zookeeper proto.
* 1. update zookeeper proto.
* update zookeeper proto.
* update zookeeper proto.
* Modify Chinese
* Modify Chinese
* Modify Chinese
* update sessionId lower.
* modify doc
* modify doc
diff --git a/README.md b/README.md
index ef96a97..fab3199 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-Apache ShenYu Nginx Module(Experimental)
+Apache ShenYu Nginx Module
---
This module provided SDK to watch available ShenYu instance list as upstream nodes by Service Register Center for OpenResty.
@@ -140,7 +140,7 @@
init_worker_by_lua_block {
local register = require "shenyu.register.consul";
register.init({
- uri = "http://192.168.152.128:8500",
+ uri = "http://127.0.0.1:8500",
path = "/v1/catalog/service/demo",
shenyu_storage = ngx.shared.shenyu_storage,
balancer_type = "chash",
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index 2812449..07b1bfd 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -5,5 +5,6 @@
* Support for listening to Apache ShenYu node changes using Zookeeper
* Support for listening to Apache ShenYu node changes using ETCD.
* Support for listening to Apache ShenYu node changes using Nacos
+* Support for listening to Apache ShenYu node changes using Consul
* Add demo code to add the above.
* Add a description of the documentation for the above.
\ No newline at end of file
diff --git a/example/eureka/nginx.conf b/example/eureka/nginx.conf
index 19c447c..52fad20 100644
--- a/example/eureka/nginx.conf
+++ b/example/eureka/nginx.conf
@@ -20,7 +20,7 @@
lua_shared_dict upstream_list 10m;
-# 第一次初始化
+# Initialize for the first time
init_by_lua_block {
local eureka = require "eureka";
eureka.init({
@@ -31,13 +31,13 @@
});
}
-# 定时拉取配置
+# Periodic pull configuration
init_worker_by_lua_block {
local eureka = require "eureka";
local handle = nil;
handle = function ()
- --TODO:控制每次只有一个worker执行
+# Only one worker executes the control at a time
eureka.get_server_list();
ngx.timer.at(5, handle);
end
@@ -45,7 +45,7 @@
}
upstream api_server {
- server 0.0.0.1 down; #占位server
+ server 0.0.0.1 down; #Placeholder server
balancer_by_lua_block {
local balancer = require "ngx.balancer";