File tree Expand file tree Collapse file tree 12 files changed +87
-14
lines changed Expand file tree Collapse file tree 12 files changed +87
-14
lines changed Original file line number Diff line number Diff line change 161
161
</ div >
162
162
< div class ="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-6 ">
163
163
< div class ="who-is-using-logo " style ="margin: 24px auto; ">
164
- < img src ="/img/boss-logo.jpg " style =" height: 90%; width: 80% " class ="align-middle " />
164
+ < img src ="/img/boss-logo.png " class ="align-middle " />
165
165
</ div >
166
166
</ div >
167
167
< div class ="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-xs-6 ">
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
16
16
17
17
### 支持版本
18
18
19
- - dubbo 3.x 版本的接入,最新版本为 ``` 0.2.0-3.2.7 ```
19
+ - dubbo 3.x 版本的接入,最新版本请参考: [ release ] ( https://github.com/polarismesh/dubbo-java-polaris/releases )
20
20
21
21
### 引入依赖
22
22
@@ -49,10 +49,11 @@ dubbo.metadata-report.address=polaris://127.0.0.1:8091
49
49
50
50
北极星地址的URL支持通过参数指定可选的配置,具体参数列表如下:
51
51
52
- | 参数 | 类型 | 含义 |
53
- | -----------| --------| ------------------|
54
- | namespace | string | 指定服务的命名空间 |
55
- | token | string | 指定用户token |
52
+ | 参数 | 类型 | 含义 | 支持版本 |
53
+ | ---------------| --------| -------------------------------------------------------------------------------------| ------------------|
54
+ | namespace | string | 指定服务的命名空间 | 起始版本:0.1.0-3.2.7 |
55
+ | token | string | 指定用户token | 起始版本:0.1.0-3.2.7 |
56
+ | multi_address | string | 仅用于元数据中心多注册多发现, eg: nacos://127.0.0.1:8848?namespace=xxxxx&username=xxx | 起始版本:0.3.2-3.2.7 |
56
57
57
58
### 结果验证
58
59
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
13
13
### 支持版本
14
14
15
15
- dubbo 2.x 版本的接入,最新版本为 ``` 0.2.2 ```
16
- - dubbo 3.x 版本的接入,最新版本为 ``` 0.2.0-3.2.7 ```
16
+ - dubbo 3.x 版本的接入,最新版本请参考: [ release ] ( https://github.com/polarismesh/dubbo-java-polaris/releases )
17
17
18
18
### 引入依赖
19
19
@@ -53,6 +53,21 @@ dubbo.registry.address=polaris://127.0.0.1:8091
53
53
{{% /tab %}}
54
54
{{< /tabs >}}
55
55
56
+ ### 启用北极星的路由插件
57
+
58
+ {{< tabs >}}
59
+ {{% tab name="XML" %}}
60
+ ``` xml
61
+ <dubbo : reference filter =" polaris_router" >
62
+ ```
63
+ {{% /tab %}}
64
+ {{% tab name="properties" %}}
65
+ ``` properties
66
+ dubbo.consumer.filter =polaris_router
67
+ ```
68
+ {{% /tab %}}
69
+ {{< /tabs >}}
70
+
56
71
### 路由规则字段
57
72
58
73
动态路由可以实现基于dubbo的请求消息内容来对请求调度到不同的实例分组,比如将带了某些user标签的请求调度到灰度分组。
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
13
13
### 支持版本
14
14
15
15
- dubbo 2.x 版本的接入,最新版本为 ``` 0.2.2 ```
16
- - dubbo 3.x 版本的接入,最新版本为 ``` 0.2.0-3.2.7 ```
16
+ - dubbo 3.x 版本的接入,最新版本请参考: [ release ] ( https://github.com/polarismesh/dubbo-java-polaris/releases )
17
17
18
18
### 引入依赖
19
19
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
13
13
### 支持版本
14
14
15
15
- dubbo 2.x 版本的接入,最新版本为 ``` 0.2.2 ```
16
- - dubbo 3.x 版本的接入,最新版本为 ``` 0.2.0-3.2.7 ```
16
+ - dubbo 3.x 版本的接入,最新版本请参考: [ release ] ( https://github.com/polarismesh/dubbo-java-polaris/releases )
17
17
18
18
### 引入依赖
19
19
@@ -34,6 +34,21 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
34
34
</dependency >
35
35
```
36
36
37
+ ### 启用北极星熔断降级插件
38
+
39
+ {{< tabs >}}
40
+ {{% tab name="XML" %}}
41
+ ``` xml
42
+ <dubbo : reference filter =" polaris_circuitbreaker" >
43
+ ```
44
+ {{% /tab %}}
45
+ {{% tab name="properties" %}}
46
+ ``` properties
47
+ dubbo.consumer.filter =polaris_circuitbreaker
48
+ ```
49
+ {{% /tab %}}
50
+ {{< /tabs >}}
51
+
37
52
### 配置北极星注册中心地址
38
53
39
54
接下来,需要添加北极星registry的配置,指定北极星的地址及相关配置信息,可以通过配置文件及代码的方式进行指定:
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
13
13
### 支持版本
14
14
15
15
- dubbo 2.x 版本的接入,最新版本为 ``` 0.2.2 ```
16
- - dubbo 3.x 版本的接入,最新版本为 ``` 0.2.0-3.2.7 ```
16
+ - dubbo 3.x 版本的接入,最新版本请参考: [ release ] ( https://github.com/polarismesh/dubbo-java-polaris/releases )
17
17
18
18
### 引入依赖
19
19
@@ -34,6 +34,21 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
34
34
</dependency >
35
35
```
36
36
37
+ ### 启用北极星访问限流插件
38
+
39
+ {{< tabs >}}
40
+ {{% tab name="XML" %}}
41
+ ``` xml
42
+ <dubbo : service filter =" polaris_ratelimit" >
43
+ ```
44
+ {{% /tab %}}
45
+ {{% tab name="properties" %}}
46
+ ``` properties
47
+ dubbo.provider.filter =polaris_ratelimit
48
+ ```
49
+ {{% /tab %}}
50
+ {{< /tabs >}}
51
+
37
52
### 配置北极星注册中心地址
38
53
39
54
接下来,需要添加北极星 registry 的配置,指定北极星的地址及相关配置信息,可以通过配置文件及代码的方式进行指定:
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Dubbo当前常用的有2个分支版本,一个是apache dubbo(GroupID是org.
14
14
15
15
### 支持版本
16
16
17
- - dubbo 3.x 版本的接入,最新版本为 ``` 0.2.0-3.2.7 ```
17
+ - dubbo 3.x 版本的接入,最新版本请参考: [ release ] ( https://github.com/polarismesh/dubbo-java-polaris/releases )
18
18
19
19
### 引入依赖
20
20
Original file line number Diff line number Diff line change @@ -4,3 +4,8 @@ title: "服务可见性"
4
4
linkTitle : " 服务可见性"
5
5
weight : 2
6
6
---
7
+
8
+ 为了解决 spring cloud 等一些微服务调用框架不支持跨命名空间调用的场景,北极星提供了服务可见性的配置。
9
+
10
+ - 命名空间设置服务可见性:该命名空间下的服务,可以被别的命名空间下的服务所发现
11
+ - 服务设置可见性:该服务除了可以被自己所在命名空间下的其他服务发现外,还可以被别的命名空间下的服务所发现
Original file line number Diff line number Diff line change 1
1
---
2
- title : " Pre- Release v1.18.0"
3
- linkTitle : " Pre- Release v1.18.0"
2
+ title : " Release v1.18.0"
3
+ linkTitle : " Release v1.18.0"
4
4
weight : 1
5
5
---
6
6
Original file line number Diff line number Diff line change @@ -14,6 +14,28 @@ weight: 1
14
14
15
15
需要预先安装好Polaris服务端,安装方式可参考:[ 集群版安装] ( /docs/使用指南/服务端安装/集群版安装/ )
16
16
17
+ ### 北极星服务端参数配置
18
+
19
+ ``` yaml
20
+ apiservers :
21
+ - name : service-nacos
22
+ option :
23
+ listenIP : " 0.0.0.0"
24
+ listenPort : 8848
25
+ defaultNamespace : default
26
+ connLimit :
27
+ openConnLimit : false
28
+ maxConnPerHost : 128
29
+ maxConnLimit : 10240
30
+ ` ` `
31
+
32
+ 在北极星的服务端配置文件 **polaris-server.yaml** 中,找到 **apiservers** 的配置,开启 **service-nacos** 的插件即可
33
+
34
+ 参数描述
35
+
36
+ - listenPort: 设置 nacos 协议兼容的 http 端口地址,grpc 端口会在该端口的基础上 + 1000
37
+ - defaultNamespace: 设置 nacos 默认命名空间对应 Polaris 命名空间信息;默认情况下 polaris 的 default 命名空间 == nacos 的默认命名空间(public );即在默认 nacos 默认命名空间下配置下,如果用户连接的是 nacos-server,服务注册到的是 nacos 的 public 命名空间,如果连接的是 polaris,那么根据配置 **defaultNamespace**,则服务注册到的是 polaris 的 default 命名空间,配置中心同理。
38
+
17
39
## 注册发现
18
40
19
41
### Nacos 服务名和北极星服务名映射关系
@@ -53,7 +75,7 @@ spring.cloud.nacos.discovery.namespace="北极星命名空间名称"
53
75
``` yaml
54
76
dubbo
55
77
registry
56
- address : nacos://北极星服务端IP:8848?username=可任意值&password=北极星用户/用户组的资源访问凭据 Token
78
+ address : nacos://北极星服务端IP:8848?username=可任意值&password={ 北极星用户/用户组的资源访问凭据 Token}
57
79
parameters.namespace : 北极星命名空间名称
58
80
metadata-report
59
81
address : nacos://北极星服务端IP:8848
You can’t perform that action at this time.
0 commit comments