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

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new e1af147  Automated deployment: Fri Nov  8 05:08:58 UTC 2019 
13ffae790ea434d01ba1c836f57433cb4882d3e4
e1af147 is described below

commit e1af14738cfe7653ffc11401e19ae70bd7159739
Author: lexburner <[email protected]>
AuthorDate: Fri Nov 8 05:08:59 2019 +0000

    Automated deployment: Fri Nov  8 05:08:58 UTC 2019 
13ffae790ea434d01ba1c836f57433cb4882d3e4
---
 en-us/docs/user/demos/config-rule-deprecated.html | 73 +++++++++++++++++++++++
 en-us/docs/user/demos/config-rule-deprecated.json |  6 ++
 md_json/docs.json                                 |  5 ++
 3 files changed, 84 insertions(+)

diff --git a/en-us/docs/user/demos/config-rule-deprecated.html 
b/en-us/docs/user/demos/config-rule-deprecated.html
new file mode 100644
index 0000000..e53bfa9
--- /dev/null
+++ b/en-us/docs/user/demos/config-rule-deprecated.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+       <meta charset="UTF-8">
+       <meta name="viewport" content="width=device-width, initial-scale=1.0, 
maximum-scale=1.0, user-scalable=no">
+       <meta name="keywords" content="config-rule-deprecated" />
+       <meta name="description" content="config-rule-deprecated" />
+       <!-- 网页标签标题 -->
+       <title>config-rule-deprecated</title>
+       <link rel="shortcut icon" href="/img/dubbo.ico"/>
+       <link rel="stylesheet" href="/build/documentation.css" />
+</head>
+<body>
+       <div id="root"><div class="documentation-page" 
data-reactroot=""><header class="header-container header-container-normal"><div 
class="header-body"><a href="/en-us/index.html"><img class="logo" 
src="/img/dubbo_colorful.png"/></a><div class="search search-normal"><span 
class="icon-search"></span></div><span class="language-switch 
language-switch-normal">中</span><div class="header-menu"><img 
class="header-menu-toggle" src="/img/menu_gray.png"/><ul><li class="menu-item 
menu-item-normal"><a  [...]
+<p>Write then dynamic configuration to the registry center,This feature is 
usually done by the monitoring center or the center's page.</p>
+<pre><code class="language-java">RegistryFactory registryFactory = 
ExtensionLoader.getExtensionLoader(RegistryFactory<span 
class="hljs-class">.<span class="hljs-keyword">class</span>).<span 
class="hljs-title">getAdaptiveExtension</span>()</span>;
+Registry registry = registryFactory.getRegistry(URL.valueOf(<span 
class="hljs-string">"zookeeper://10.20.153.10:2181"</span>));
+registry.register(URL.valueOf(<span 
class="hljs-string">"override://0.0.0.0/com.foo.BarService?category=configurators&amp;dynamic=false&amp;application=foo&amp;timeout=1000"</span>));
+</code></pre>
+<p>In the config override url:</p>
+<ul>
+<li><code>override://</code> Indicates that the data is overwritten,support 
<code>override</code> and  <code>absent</code>,can 
extends,<strong>Required</strong>.</li>
+<li><code>0.0.0.0</code> Indicates that the configurations is valid for all IP 
addresses,If only want to overwritten specified ip data,you can replace that 
specified ip address.<strong>Required</strong>.</li>
+<li><code>com.foo.BarService</code> Indicates that is valid for specified 
service,<strong>Required</strong>.</li>
+<li><code>category=configurators</code> Indicates that the data is dynamic 
configuration,<strong>Required</strong>。</li>
+<li><code>dynamic=false</code> Indicates that the data is persistent,When the 
registered party withdraws,the data is still stored in the registry 
<strong>Required</strong>。</li>
+<li><code>enabled=true</code> override strategy is enable,can absent,if 
absent,then enable.</li>
+<li><code>application=foo</code> Indicates that is valid for specified 
application,can absent,if absent,then valid for all application.</li>
+<li><code>timeout=1000</code> Indicates that the value of the 
<code>timeout</code> parameter that satisfies the above conditions is 
overwritten by 1000,if want to override another parameters, add directly to the 
<code>override</code> URL parameter.</li>
+</ul>
+<p>Example:</p>
+<ol>
+<li>
+<p>Disable service provider.(Usually used to temporarily kick off a provider 
machine, similar to the prohibition of consumer access, please use the routing 
rules)</p>
+<pre><code>override://10.20.153.10/com.foo.BarService?category=configurators&amp;dynamic=false&amp;disbaled=true
+</code></pre>
+</li>
+<li>
+<p>Adjustment weight:(Usually used to capacity assessment,default is 100)</p>
+<pre><code>override://10.20.153.10/com.foo.BarService?category=configurators&amp;dynamic=false&amp;weight=200
+</code></pre>
+</li>
+<li>
+<p>Adjustment load balance strategy.(default random)</p>
+<pre><code>override://10.20.153.10/com.foo.BarService?category=configurators&amp;dynamic=false&amp;loadbalance=leastactive
+</code></pre>
+</li>
+<li>
+<p>Service downgrade:(Usually used to temporarily mask an error of 
non-critical services)</p>
+<pre><code>override://0.0.0.0/com.foo.BarService?category=configurators&amp;dynamic=false&amp;application=foo&amp;mock=force:return+null
+</code></pre>
+</li>
+</ol>
+<p><strong>NOTE</strong>: <code>2.2.0+</code> version supported.</p>
+</div></section><footer class="footer-container"><div class="footer-body"><img 
src="/img/dubbo_gray.png"/><img class="apache" src="/img/apache_logo.png"/><div 
class="cols-container"><div class="col col-12"><h3></h3><p></p></div><div 
class="col col-4"><dl><dt>ASF</dt><dd><a href="http://www.apache.org"; 
target="_self">Foundation</a></dd><dd><a href="http://www.apache.org/licenses/"; 
target="_self">License</a></dd><dd><a 
href="http://www.apache.org/events/current-event"; target="_self">Events [...]
+       <script 
src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js";></script>
+       <script 
src="https://f.alicdn.com/react/15.4.1/react-dom.min.js";></script>
+       <script>
+               window.rootPath = '';
+  </script>
+  <script src="/build/documentation.js"></script>
+  <!-- Global site tag (gtag.js) - Google Analytics -->
+       <script async 
src="https://www.googletagmanager.com/gtag/js?id=UA-112489517-1";></script>
+       <script>
+               window.dataLayer = window.dataLayer || [];
+               function gtag(){dataLayer.push(arguments);}
+               gtag('js', new Date());
+
+               gtag('config', 'UA-112489517-1');
+       </script>
+</body>
+</html>
\ No newline at end of file
diff --git a/en-us/docs/user/demos/config-rule-deprecated.json 
b/en-us/docs/user/demos/config-rule-deprecated.json
new file mode 100644
index 0000000..76d93ef
--- /dev/null
+++ b/en-us/docs/user/demos/config-rule-deprecated.json
@@ -0,0 +1,6 @@
+{
+  "filename": "config-rule-deprecated.md",
+  "__html": "<h1>Configure rule</h1>\n<p>Write then dynamic configuration to 
the registry center,This feature is usually done by the monitoring center or 
the center's page.</p>\n<pre><code class=\"language-java\">RegistryFactory 
registryFactory = ExtensionLoader.getExtensionLoader(RegistryFactory<span 
class=\"hljs-class\">.<span class=\"hljs-keyword\">class</span>).<span 
class=\"hljs-title\">getAdaptiveExtension</span>()</span>;\nRegistry registry = 
registryFactory.getRegistry(URL.valueO [...]
+  "link": "/en-us/docs/user/demos/config-rule-deprecated.html",
+  "meta": {}
+}
\ No newline at end of file
diff --git a/md_json/docs.json b/md_json/docs.json
index 503ea85..ba40b8b 100644
--- a/md_json/docs.json
+++ b/md_json/docs.json
@@ -528,6 +528,11 @@
       "meta": {}
     },
     {
+      "filename": "config-rule-deprecated.md",
+      "link": "/en-us/docs/user/demos/config-rule-deprecated.html",
+      "meta": {}
+    },
+    {
       "filename": "config-rule.md",
       "link": "/en-us/docs/user/demos/config-rule.html",
       "meta": {}

Reply via email to