Browse Source

初始化

Tao Zhang 5 years ago
commit
c25277378b
8 changed files with 74 additions and 0 deletions
  1. 8 0
      .idea/.gitignore
  2. 5 0
      .idea/inspectionProfiles/profiles_settings.xml
  3. 6 0
      .idea/misc.xml
  4. 8 0
      .idea/modules.xml
  5. 9 0
      .idea/servicerd.iml
  6. 6 0
      .idea/vcs.xml
  7. 29 0
      README.md
  8. 3 0
      go.mod

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/

+ 5 - 0
.idea/inspectionProfiles/profiles_settings.xml

@@ -0,0 +1,5 @@
+<component name="InspectionProjectProfileManager">
+  <settings>
+    <option name="PROJECT_PROFILE" />
+  </settings>
+</component>

+ 6 - 0
.idea/misc.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JavaScriptSettings">
+    <option name="languageLevel" value="ES6" />
+  </component>
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/servicerd.iml" filepath="$PROJECT_DIR$/.idea/servicerd.iml" />
+    </modules>
+  </component>
+</project>

+ 9 - 0
.idea/servicerd.iml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="Go" enabled="true" />
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 29 - 0
README.md

@@ -0,0 +1,29 @@
+基于GRPC的服务管理体系<br/>
+其中心跳跟踪、服务消费者与服务管理端采用GRPC的双向流式服务。
+
+# 角色
+- 服务管理
+- 服务提供者
+- 服务消费者
+# 功能矩阵
+## 服务管理
+   - 注册
+   - 执行单元管理
+   - 注销
+   - 生命周期,心跳检测
+   - 均衡负载
+     1. 随机
+     2. 轮训 (资源占用满负荷时,会导致无服务可用)
+     3. 按服务器资源分配
+   - 服务资源占用超时,自动回收(默认客户端自动释放)
+   
+## 服务提供者
+   - 注册,告知有多少个服务单元
+   - 注销
+   - 心跳支持
+
+## 服务消费者
+   - 申请服务
+   - 释放归还服务
+   - 调用服务
+   

+ 3 - 0
go.mod

@@ -0,0 +1,3 @@
+module app.yhyue.com/BP/servicerd
+
+go 1.14