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:51 UTC

[incubator-servicecomb-website] branch asf-site updated (fd3bdd5 -> dd7404c)

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

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


    from fd3bdd5  Publish the website
     add 62eff62  SCB-312 added 9th live streaming materials (#35)
     add b43027a  SCB-347 move 3rd packages to vendor
     add 5b62abc  SCB-347 update LICENSE and NOTICE
     add 200e4bd  update footer github url
     add 1720f73  SCB-349 add document about how to use JIRA
     add 843c9b3  SCB-366 Clean up the LICENSE and NOTICE files
     add 4739943  Update the group id of spring boot
     add b9d80c9  SCB-210 update document for apollo configuration items
     add 8ec8692  Update dynamic-config.md
     add 09f8eec  Update dynamic-config.md
     add 5b3610b  Update dynamic-config.md
     add 2df4f54  notice that start apollo service could take serval minutes
     add 1902d05  notice that start apollo could take serval minutes
     new c437843  Merge branch 'master' into asf-site
     new dd7404c  Publish the website

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 _users/cn/dynamic-config.md                | 15 ++++-----------
 _users/dynamic-config.md                   | 15 ++++-----------
 content/cn/users/dynamic-config/index.html | 17 +++++------------
 content/feed.xml                           |  2 +-
 content/users/dynamic-config/index.html    | 17 +++++------------
 5 files changed, 19 insertions(+), 47 deletions(-)

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

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

Posted by ni...@apache.org.
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.

[incubator-servicecomb-website] 01/02: Merge branch 'master' into asf-site

Posted by ni...@apache.org.
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 c437843a884b279a702f77ec16f3adc0819528e0
Merge: fd3bdd5 1902d05
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Tue Mar 13 17:10:23 2018 +0800

    Merge branch 'master' into asf-site

 _users/cn/dynamic-config.md | 15 ++++-----------
 _users/dynamic-config.md    | 15 ++++-----------
 2 files changed, 8 insertions(+), 22 deletions(-)

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