You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by ji...@apache.org on 2025/06/05 15:55:47 UTC
(incubator-seata-website) branch docusaurus updated: optimize: updated HA deployment documentation. (#981)
This is an automated email from the ASF dual-hosted git repository.
jimin pushed a commit to branch docusaurus
in repository https://gitbox.apache.org/repos/asf/incubator-seata-website.git
The following commit(s) were added to refs/heads/docusaurus by this push:
new 42ecc00723b optimize: updated HA deployment documentation. (#981)
42ecc00723b is described below
commit 42ecc00723b6c272cd98792bf622ddf31e5ddb16
Author: xucq07 <99...@users.noreply.github.com>
AuthorDate: Thu Jun 5 23:55:44 2025 +0800
optimize: updated HA deployment documentation. (#981)
---
.../current/ops/deploy-ha.md | 141 +++++++++++++--------
.../current/user/configuration/apollo.md | 25 ++--
.../current/user/configuration/etcd3.md | 18 +--
3 files changed, 111 insertions(+), 73 deletions(-)
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-ha.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-ha.md
index 7ca41dcafcb..e96dfaa98df 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-ha.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/ops/deploy-ha.md
@@ -13,38 +13,40 @@ date: 2020-04-10
## Seata-Server
-Seata-Server 需要使用注册中心,并把事务数据保存到数据库中,以 Nacos 为例
+Seata-Server 需要使用配置中心、注册中心,并把事务数据保存到数据库中,以 Nacos 为例
-- 修改`registry.conf`的注册中心配置
+- 修改`application.yml`中配置中心、注册中心的配置
-```
-registry {
- type = "nacos"
-
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- namespace = ""
- cluster = "default"
- username = ""
- password = ""
- }
-}
-
-config {
- type = "nacos"
-
- nacos {
- serverAddr = "192.168.199.2"
- namespace = ""
- group = "SEATA_GROUP"
- username = ""
- password = ""
- }
-}
+```yaml
+seata:
+ config:
+ # support: nacos, consul, apolyamllo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
```
-- 需要修改配置中心的以下几个配置(含db与redis,二者选其一 注:redis需seata-server 1.3版本及以上)
+- 需要修改配置中心上远程配置文件中的以下几个配置(含db与redis,二者选其一 注:redis需seata-server 1.3版本及以上)
```
service.vgroupMapping.my_test_tx_group=default
@@ -70,7 +72,7 @@ store.redis.queryLimit=100
相应的脚本在GitHub 的 [/script/server/db/](https://github.com/apache/incubator-seata/tree/develop/script/server/db) 目录下
-这样,启动多个seata-server,即可实现其高可用
+再启动多个seata-server,即可实现其高可用
----
@@ -87,9 +89,12 @@ metadata:
spec:
type: ClusterIP
ports:
- - port: 8091
+ - name: service
+ port: 8091
+ protocol: TCP
+ - name: console
+ port: 7091
protocol: TCP
- name: http
selector:
app.kubernetes.io/name: seata-ha-server
@@ -116,41 +121,73 @@ spec:
- name: seata-ha-server
image: docker.io/seataio/seata-server:latest
imagePullPolicy: IfNotPresent
- env:
- - name: SEATA_CONFIG_NAME
- value: file:/root/seata-config/registry
ports:
- - name: http
+ - name: service
containerPort: 8091
protocol: TCP
+ - name: console
+ containerPort: 7091
+ protocol: TCP
+ resources:
+ limits:
+ cpu: '2'
+ memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
volumeMounts:
- name: seata-config
- mountPath: /root/seata-config
+ mountPath: /seata-server/resources/application.yml
+ subPath: application.yml
volumes:
- name: seata-config
configMap:
name: seata-ha-server-config
-
---
+
apiVersion: v1
kind: ConfigMap
metadata:
name: seata-ha-server-config
data:
- registry.conf: |
- registry {
- type = "nacos"
- nacos {
- application = "seata-server"
- serverAddr = "192.168.199.2"
- }
- }
- config {
- type = "nacos"
- nacos {
- serverAddr = "192.168.199.2"
- group = "SEATA_GROUP"
- }
- }
+ application.yml: |
+ server:
+ port: 7091
+
+ spring:
+ application:
+ name: seata-server
+
+ logging:
+ config: classpath:logback-spring.xml
+ file:
+ path: ${log.home:${user.home}/logs/seata}
+
+ seata:
+ config:
+ # support: nacos, consul, apollo, zk, etcd3
+ type: nacos
+ nacos:
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
+ data-id: seataServer.properties
+ registry:
+ # support: nacos, eureka, redis, zk, consul, etcd3, sofa
+ type: nacos
+ nacos:
+ application: seata-server
+ server-addr: 127.0.0.1:8848
+ group: SEATA_GROUP
+ cluster: default
+ username: xxx
+ password: xxx
+ ##if use MSE Nacos with auth, mutex with username/password attribute
+ #access-key: ""
+ #secret-key: ""
```
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/apollo.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/apollo.md
index a2831f72d52..520a5bfbf9e 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/apollo.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/apollo.md
@@ -48,19 +48,20 @@ seata:
### Server 端配置中心
-在 [registry.conf](https://github.com/apache/incubator-seata/blob/develop/script/server/config/registry.conf) 中加入对应配置中心,其余[配置参考](https://github.com/apache/incubator-seata/tree/develop/script/server)
+在 `conf/application.yaml`加入以下配置, 其余配置参考 [configuration options](https://github.com/apache/incubator-seata/blob/2.x/server/src/main/resources/application.example.yml):
-```
-config {
- type = "apollo"
-
- apollo {
- appId = "seata-server"
- apolloMeta = "http://192.168.1.204:8801"
- namespace = "application"
- apolloAccesskeySecret = ""
- }
-}
+```yaml
+seata:
+ config:
+ # support: nacos 、 consul 、 apollo 、 zk 、 etcd3
+ type: apollo
+ apollo:
+ appId: seata-server
+ apollo-meta: http://192.168.1.204:8801
+ apollo-config-service: http://192.168.1.204:8080
+ namespace: application
+ apollo-access-key-secret:
+ cluster: seata
```
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/etcd3.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/etcd3.md
index af501a8e737..0700a54bc90 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/etcd3.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user/configuration/etcd3.md
@@ -48,16 +48,16 @@ seata:
### Server 端配置中心
-在 [registry.conf](https://github.com/apache/incubator-seata/blob/develop/script/server/config/registry.conf) 中加入对应配置中心,其余[配置参考](https://github.com/apache/incubator-seata/tree/develop/script/server)
+在 `conf/application.yaml`加入以下配置, 其余配置参考 [configuration options](https://github.com/apache/incubator-seata/blob/2.x/server/src/main/resources/application.example.yml):
-```
-config {
- type = "etcd3"
-
- etcd3 {
- serverAddr = "http://localhost:2379"
- }
-}
+```yaml
+seata:
+ config:
+ # support: nacos 、 consul 、 apollo 、 zk 、 etcd3
+ type: etcd3
+ etcd3:
+ server-addr: http://localhost:2379
+ key: seata.properties
```
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org