You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by jb...@apache.org on 2017/12/12 07:05:44 UTC
[26/51] incubator-servicecomb-website git commit: updated quick start
images
updated quick start images
Signed-off-by: Eric Lee <li...@huawei.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/commit/576205cb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/tree/576205cb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/diff/576205cb
Branch: refs/heads/asf-site
Commit: 576205cb61733c975d845aa0fbba182c6f6d2815
Parents: 8b91b1a
Author: Eric Lee <li...@huawei.com>
Authored: Sun Nov 12 22:09:06 2017 +0800
Committer: Willem Jiang <ji...@huawei.com>
Committed: Tue Nov 14 18:31:42 2017 +0800
----------------------------------------------------------------------
_docs/cn/load-balance.md | 6 +++---
_docs/cn/quick-start-bmi.md | 3 +--
_docs/load-balance.md | 6 +++---
_docs/quick-start-bmi.md | 3 +--
assets/images/bmi-interface.png | Bin 14711 -> 57307 bytes
assets/images/flow-control-result.png | Bin 14515 -> 52518 bytes
assets/images/load-balance-result.png | Bin 13402 -> 56794 bytes
assets/images/service-management-result.png | Bin 17245 -> 47582 bytes
8 files changed, 8 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/_docs/cn/load-balance.md
----------------------------------------------------------------------
diff --git a/_docs/cn/load-balance.md b/_docs/cn/load-balance.md
index 465a82f..f1c2b9d 100644
--- a/_docs/cn/load-balance.md
+++ b/_docs/cn/load-balance.md
@@ -23,12 +23,12 @@ last_modified_at: 2017-09-03T10:01:43-04:00
对 *体质指数计算器* 微服务进行水平扩展,使其运行实例数为2,即新增一个运行实例:
```bash
-mvn spring-boot:run -Drun.profiles=v2 -Drun.jvmArguments="-Dcse.rest.address=0.0.0.0:7778"
+mvn spring-boot:run -Drun.jvmArguments="-Dcse.rest.address=0.0.0.0:7778"
```
-为了使效果更明显,在此使用了v2版本的 *体质指数计算器* ,即仅计算体质指数的一半。而为了避免端口冲突,新的实例在另一个端口上运行。
+为了便于区分不同的运行实例,在体质指数计算器的实现中新增了返回实例ID和运行时间的接口,详情可查看[体质指数计算器的完整实现代码](https://github.com/ServiceComb/ServiceComb-Java-Chassis/tree/master/samples/bmi/calculator)。而为了避免端口冲突,新的实例在另一个端口上运行。
-此时点击 *Submit* 按钮就可以看到如下两个界面交替出现。
+此时点击 *Submit* 按钮就可以看到如下两个界面中的实例ID交替出现。
{: .align-center}
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/_docs/cn/quick-start-bmi.md
----------------------------------------------------------------------
diff --git a/_docs/cn/quick-start-bmi.md b/_docs/cn/quick-start-bmi.md
index 39188f5..1690c62 100644
--- a/_docs/cn/quick-start-bmi.md
+++ b/_docs/cn/quick-start-bmi.md
@@ -150,8 +150,7 @@ ServiceComb从0.4.0-SNAPSHOT版本之后新增了`spring-cloud-zuul`模块使能
```yaml
zuul:
routes:
- calculator:
- serviceId: calculator
+ calculator: /calculator/**
# disable netflix eurkea since it's not used for service discovery
ribbon:
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/_docs/load-balance.md
----------------------------------------------------------------------
diff --git a/_docs/load-balance.md b/_docs/load-balance.md
index 57f282c..cf3ecec 100644
--- a/_docs/load-balance.md
+++ b/_docs/load-balance.md
@@ -22,12 +22,12 @@ The simple embedded load balancer will be used by default. No extra configuratio
Run one more *BMI calculator service* with the following command:
```bash
-mvn spring-boot:run -Drun.profiles=v2 -Drun.jvmArguments="-Dcse.rest.address=0.0.0.0:7778"
+mvn spring-boot:run -Drun.jvmArguments="-Dcse.rest.address=0.0.0.0:7778"
```
-To better visualize the result, we use another version of *BMI calculator service* which calculates half of the BMI, namely v2. Besides, a different service port is needed to avoid port conflict.
+To better distinguish different running instances, we added a new interface that returns instance id in the implementation of BMI calculator, details can refer to [the implementation of BMI calculator](https://github.com/ServiceComb/ServiceComb-Java-Chassis/tree/master/samples/bmi/calculator). Besides, a different service port is needed to avoid port conflict.
-Now you can see the following figures shows up alternately by clicking the *Submit* button.
+Now you can see the instance id in the following figures shows up alternately by clicking the *Submit* button.
{: .align-center}
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/_docs/quick-start-bmi.md
----------------------------------------------------------------------
diff --git a/_docs/quick-start-bmi.md b/_docs/quick-start-bmi.md
index c6a1cb7..b46d57e 100644
--- a/_docs/quick-start-bmi.md
+++ b/_docs/quick-start-bmi.md
@@ -150,8 +150,7 @@ Configure routing rules and service endpoint in `application.yaml`.
```yaml
zuul:
routes:
- calculator:
- serviceId: calculator
+ calculator: /calculator/**
# disable netflix eurkea since it's not used for service discovery
ribbon:
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/assets/images/bmi-interface.png
----------------------------------------------------------------------
diff --git a/assets/images/bmi-interface.png b/assets/images/bmi-interface.png
index b697fe3..88f944e 100644
Binary files a/assets/images/bmi-interface.png and b/assets/images/bmi-interface.png differ
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/assets/images/flow-control-result.png
----------------------------------------------------------------------
diff --git a/assets/images/flow-control-result.png b/assets/images/flow-control-result.png
index 4f34894..71f9409 100644
Binary files a/assets/images/flow-control-result.png and b/assets/images/flow-control-result.png differ
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/assets/images/load-balance-result.png
----------------------------------------------------------------------
diff --git a/assets/images/load-balance-result.png b/assets/images/load-balance-result.png
index 864f5bc..ca379ae 100644
Binary files a/assets/images/load-balance-result.png and b/assets/images/load-balance-result.png differ
http://git-wip-us.apache.org/repos/asf/incubator-servicecomb-website/blob/576205cb/assets/images/service-management-result.png
----------------------------------------------------------------------
diff --git a/assets/images/service-management-result.png b/assets/images/service-management-result.png
index c3ad47e..c01ade8 100644
Binary files a/assets/images/service-management-result.png and b/assets/images/service-management-result.png differ