You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2018/03/13 09:12:53 UTC

[incubator-servicecomb-website] 02/02: Publish the website

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit dd7404c1124dee34255d56293d6ee7b37861b4f3
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Tue Mar 13 17:12:40 2018 +0800

    Publish the website
---
 content/cn/users/dynamic-config/index.html | 17 +++++------------
 content/feed.xml                           |  2 +-
 content/users/dynamic-config/index.html    | 17 +++++------------
 3 files changed, 11 insertions(+), 25 deletions(-)

diff --git a/content/cn/users/dynamic-config/index.html b/content/cn/users/dynamic-config/index.html
index 900a367..39b2c63 100644
--- a/content/cn/users/dynamic-config/index.html
+++ b/content/cn/users/dynamic-config/index.html
@@ -637,7 +637,7 @@
    <span class="nb">cd </span>apollo-image-for-servicecomb <span class="o">&amp;&amp;</span> docker-compose up
 </code></pre>
 </div>
-<p>等待出现 <code class="highlighter-rouge">Portal started. You can visit http://localhost:8070 now!</code> 后表示系统启动完成,可以在浏览器中访问<code class="highlighter-rouge">http://localhost:8070</code>进入配置中心页面。 <code class="highlighter-rouge">docker-compose</code>安装请参考<a href="https://docs.docker.com/compose/install/">文档</a>。</p>
+<p>等待出现 <code class="highlighter-rouge">Portal started. You can visit http://localhost:8070 now!</code> 后表示系统启动完成(启动时间基于机器性能可能需要1-3分钟),可以在浏览器中访问<code class="highlighter-rouge">http://localhost:8070</code>进入配置中心页面。 <code class="highlighter-rouge">docker-compose</code>安装请参考<a href="https://docs.docker.com/compose/install/">文档</a>。</p>
 
 <h3 id="通过apollo界面配置应用获取token">通过Apollo界面配置应用获取TOKEN</h3>
 
@@ -679,22 +679,14 @@
 <h3 id="在应用中添加依赖">在应用中添加依赖</h3>
 
 <div class="language-xml highlighter-rouge"><pre class="highlight"><code>    <span class="nt">&lt;dependency&gt;</span>
-          <span class="nt">&lt;groupId&gt;</span>com.netflix.archaius<span class="nt">&lt;/groupId&gt;</span>
-          <span class="nt">&lt;artifactId&gt;</span>archaius-core<span class="nt">&lt;/artifactId&gt;</span>
-    <span class="nt">&lt;/dependency&gt;</span>   
-    <span class="nt">&lt;dependency&gt;</span>
-          <span class="nt">&lt;groupId&gt;</span>io.servicecomb<span class="nt">&lt;/groupId&gt;</span>
+          <span class="nt">&lt;groupId&gt;</span>org.apache.servicecomb<span class="nt">&lt;/groupId&gt;</span>
           <span class="nt">&lt;artifactId&gt;</span>config-apollo<span class="nt">&lt;/artifactId&gt;</span>
     <span class="nt">&lt;/dependency&gt;</span>
 </code></pre>
 </div>
 <h3 id="添加配置项">添加配置项</h3>
 
-<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>   <span class="s">cse</span><span class="pi">:</span>
-     <span class="s">config</span><span class="pi">:</span>
-       <span class="s">client</span><span class="pi">:</span>
-       <span class="s">serverUri</span><span class="pi">:</span> <span class="s">http://127.0.0.1:8070</span>
-   <span class="s">apollo</span><span class="pi">:</span>
+<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>   <span class="s">apollo</span><span class="pi">:</span>
      <span class="s">config</span><span class="pi">:</span>
        <span class="s">serverUri</span><span class="pi">:</span> <span class="s">http://127.0.0.1:8070</span>
        <span class="s">serviceName</span><span class="pi">:</span> <span class="s">SampleApp</span>
@@ -705,7 +697,8 @@
        <span class="s">refreshInterval</span><span class="pi">:</span> <span class="s">10</span>
 </code></pre>
 </div>
-<p>​	<code class="highlighter-rouge">cse.config.client.serverUri</code>配置项填写Apollo配置中心portal服务地址,只是表示对接配置中心,<code class="highlighter-rouge">apollo.config</code>下的配置项是用户创建的应用参数,包括服务地址,用户名,集群,namespace,token等参数。这些参数可以在配置中心页面项目信息栏中查到。需要注意的是<code class="highlighter-rouge">refreshInterval: 10</code>表示应用会每隔10秒去配置中心查询一次最新的配置信息,不配置此项默认刷新周期为30秒。</p>
+<p>​	<code class="highlighter-rouge">apollo.config</code>下的配置项是用户创建的应用参数,包括服务地址,用户名,集群,namespace,token等参数。这些参数可以在配置中心页面项目信息栏中查到。需要注意的是<code class="highlighter-rouge">refreshInterval: 10</code>表示应用会每隔10秒去配置中心查询一次最新的配置信息,不配置此项默认刷新周期为30秒。
+  <code class="highlighter-rouge">serviceName</code>对应Apollo中的第三发应用ID: <code class="highlighter-rouge">AppId</code>.</p>
 
 <h3 id="获取动态属性">获取动态属性</h3>
 
diff --git a/content/feed.xml b/content/feed.xml
index 5c42a1c..3f9cd9f 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2018-03-08T17:46:34+08:00</updated><id>/</id><title type="html">Apache ServiceComb (incubating)</title><subtitle>The homepage of ServiceComb</subtitle><author><name>{&quot;name&quot;=&gt;nil, &quot;avatar&quot;=&gt; [...]
+<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2018-03-13T17:10:56+08:00</updated><id>/</id><title type="html">Apache ServiceComb (incubating)</title><subtitle>The homepage of ServiceComb</subtitle><author><name>{&quot;name&quot;=&gt;nil, &quot;avatar&quot;=&gt; [...]
 
 &lt;p&gt;Java Chassis uses zipkin as the default tracing implementation.&lt;/p&gt;
 
diff --git a/content/users/dynamic-config/index.html b/content/users/dynamic-config/index.html
index 5c3f17c..aba98c3 100644
--- a/content/users/dynamic-config/index.html
+++ b/content/users/dynamic-config/index.html
@@ -620,7 +620,7 @@
    <span class="nb">cd </span>apollo-image-for-servicecomb <span class="o">&amp;&amp;</span> docker-compose up
 </code></pre>
 </div>
-<p>When your console shows <code class="highlighter-rouge">Portal started. You can visit http://localhost:8070 now!</code> , it means the service is started and ready for use. Visit Apollo configuration pages at <code class="highlighter-rouge">http://localhost:8070</code> in a browser. Please refer to <a href="https://docs.docker.com/compose/install/">Docker document</a> about <code class="highlighter-rouge">docker-compose</code>.</p>
+<p>When your console shows <code class="highlighter-rouge">Portal started. You can visit http://localhost:8070 now!</code> , it means the service is started and ready for use(It could take serval minutes which depends on machines). Visit Apollo configuration pages at <code class="highlighter-rouge">http://localhost:8070</code> in a browser. Please refer to <a href="https://docs.docker.com/compose/install/">Docker document</a> about <code class="highlighter-rouge">docker-compose</code>.</p>
 
 <h3 id="configure-services-and-get-a-token">Configure services and get a token</h3>
 
@@ -662,22 +662,14 @@
 <h3 id="add-dependency-in-pomxml">Add dependency in pom.xml</h3>
 
 <div class="language-xml highlighter-rouge"><pre class="highlight"><code>    <span class="nt">&lt;dependency&gt;</span>
-          <span class="nt">&lt;groupId&gt;</span>com.netflix.archaius<span class="nt">&lt;/groupId&gt;</span>
-          <span class="nt">&lt;artifactId&gt;</span>archaius-core<span class="nt">&lt;/artifactId&gt;</span>
-    <span class="nt">&lt;/dependency&gt;</span>   
-    <span class="nt">&lt;dependency&gt;</span>
-          <span class="nt">&lt;groupId&gt;</span>io.servicecomb<span class="nt">&lt;/groupId&gt;</span>
+          <span class="nt">&lt;groupId&gt;</span>org.apache.servicecomb<span class="nt">&lt;/groupId&gt;</span>
           <span class="nt">&lt;artifactId&gt;</span>config-apollo<span class="nt">&lt;/artifactId&gt;</span>
     <span class="nt">&lt;/dependency&gt;</span>
 </code></pre>
 </div>
 <h3 id="add-configurations-in-microserviceyaml">Add configurations in microservice.yaml</h3>
 
-<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>   <span class="s">cse</span><span class="pi">:</span>
-     <span class="s">config</span><span class="pi">:</span>
-       <span class="s">client</span><span class="pi">:</span>
-       <span class="s">serverUri</span><span class="pi">:</span> <span class="s">http://127.0.0.1:8070</span>
-   <span class="s">apollo</span><span class="pi">:</span>
+<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>   <span class="s">apollo</span><span class="pi">:</span>
      <span class="s">config</span><span class="pi">:</span>
        <span class="s">serverUri</span><span class="pi">:</span> <span class="s">http://127.0.0.1:8070</span>
        <span class="s">serviceName</span><span class="pi">:</span> <span class="s">SampleApp</span>
@@ -688,7 +680,8 @@
        <span class="s">refreshInterval</span><span class="pi">:</span> <span class="s">10</span>
 </code></pre>
 </div>
-<p>​	Configuration <code class="highlighter-rouge">cse.config.client.serverUri</code> is the portal address of Apollo configuration center just the same as <code class="highlighter-rouge">apollo.config.serverUri</code>. Configurations under <code class="highlighter-rouge">apollo.config</code> are parameters of the project that users created above, including serviceName, env, clusters, namespace, token and refreshInterval. Pay attention to <code class="highlighter-rouge">refreshInterval:  [...]
+<p>​	Configurations under <code class="highlighter-rouge">apollo.config</code> are parameters of the project that users created above, including serviceName, env, clusters, namespace, token and refreshInterval. Pay attention to <code class="highlighter-rouge">refreshInterval: 10</code>, it means service will fetch latest configuration items every each 10 seconds, default refresh cycle is 30 second if no value is configured here. 
+  <code class="highlighter-rouge">serviceName</code> need to be <code class="highlighter-rouge">AppId</code> in apollo, please pay attention to that.</p>
 
 <h3 id="get-configurations">Get configurations</h3>
 

-- 
To stop receiving notification emails like this one, please contact
ningjiang@apache.org.