Skip to content

Master #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
完善5.0 docs
  • Loading branch information
xlorne committed Jul 6, 2020
commit 2ed3f419144434c35e15b456b3a1db80a460e208
20 changes: 19 additions & 1 deletion _data/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,22 @@
- txlcn-background
- txlcn-start
- txlcn-dependencies
-
- txlcn-demo-env
- txlcn-demo-dubbo
- txlcn-demo-springcloud
- txlcn-principle-control
- txlcn-principle-lcn
- txlcn-principle-tcc
- txlcn-principle-txc
- txlcn-setting-client
- txlcn-setting-distributed
- txlcn-setting-manager
- txlcn-expansion-message
- txlcn-expansion-rpc
- txlcn-expansion-transaction
- txlcn-communication
- txlcn-manageradmin
- txlcn-debug
- txlcn-test
- txlcn-developer
- txlcn-fqa
6 changes: 5 additions & 1 deletion _docs/txlcn/communication.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 通讯指令手册
---
title: 通讯指令手册
permalink: /docs/txlcn-communication/
---


TxClient 与 TxManager 通讯指令说明文档

Expand Down
7 changes: 5 additions & 2 deletions _docs/txlcn/debug.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 问题排查手册
---
title: 问题排查手册
permalink: /docs/txlcn-debug/
---

## 一、概述
TxManager 和 TxClient 都支持日志记录到数据库(TXManager默认开启日志记录)。
Expand Down Expand Up @@ -56,4 +59,4 @@ where t_logger.group_id = '99937859659434961' and app_name='spring-demo-d'


### 2、TxManager
TxManager 提供后台管理服务。[详情](manageradmin.html)
TxManager 提供后台管理服务。[详情](manageradmin.html)
5 changes: 4 additions & 1 deletion _docs/txlcn/demo/dubbo.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Dubbo示例
---
title: Dubbo示例
permalink: /docs/txlcn-demo-dubbo/
---

Dubbo 示例说明
共三个模块如下:
Expand Down
6 changes: 5 additions & 1 deletion _docs/txlcn/demo/env.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 尝试下简单的分布式事务
---
title: 尝试下简单的分布式事务
permalink: /docs/txlcn-demo-env/
---


## 步骤引导

Expand Down
5 changes: 4 additions & 1 deletion _docs/txlcn/demo/springcloud.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# SpringCloud示例
---
title: SpringCloud示例
permalink: /docs/txlcn-demo-springcloud/
---

SpringCloud 示例说明
共三个模块如下:
Expand Down
8 changes: 5 additions & 3 deletions _docs/txlcn/developer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 开发者

---
title: 开发者
permalink: /docs/txlcn-developer/
---

5.0版本研发者均为CodingApi成员。

Expand Down Expand Up @@ -33,4 +35,4 @@

github 代码提交贡献人员:

https://github.com/codingapi/tx-lcn/graphs/contributors
https://github.com/codingapi/tx-lcn/graphs/contributors
6 changes: 5 additions & 1 deletion _docs/txlcn/expansion/message.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 通讯协议扩展
---
title: 通讯协议扩展
permalink: /docs/txlcn-expansion-message/
---


通讯协议扩展是指txclient与txmanager通讯的协议扩展。

Expand Down
7 changes: 5 additions & 2 deletions _docs/txlcn/expansion/rpc.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# RPC框架扩展
---
title: RPC框架扩展
permalink: /docs/txlcn-expansion-rpc/
---

RPC扩展主要是指在分布式事务框架下对传递控制参数的支持、与负载均衡的扩展控制。

Expand Down Expand Up @@ -135,4 +138,4 @@ class DubboTxlcnLoadBalance {
}
```



7 changes: 5 additions & 2 deletions _docs/txlcn/expansion/transaction.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 事务模式扩展
---
title: 事务模式扩展
permalink: /docs/txlcn-expansion-transaction/
---

TX-LCN不仅仅支持LCN TXC TCC模式,也可以由开发者自定义符合TX-LCN控制原理的请求事务模型。

Expand Down Expand Up @@ -148,4 +151,4 @@ public class LcnStartingTransaction implements DTXLocalControl {

说明:

若增加的新的模式最好创建一个新的模块,然后调整pom增加该模块的支持即可。
若增加的新的模式最好创建一个新的模块,然后调整pom增加该模块的支持即可。
7 changes: 5 additions & 2 deletions _docs/txlcn/fqa.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# FQA
---
title: FQA
permalink: /docs/txlcn-fqa/
---

## 1. TxManager配置分布式事务时间的作用是?为什么?
> 自动补偿机制会自动修复在分布式事务时间后系统存在的可修复异常。为什么是`a >= 2c + (b + c + d) * (e - 1) - Δ`?
Expand Down Expand Up @@ -58,4 +61,4 @@ A:
demo参考见https://github.com/codingapi/txlcn-demo 1.5.boot分支




8 changes: 6 additions & 2 deletions _docs/txlcn/manageradmin.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# TxManager管理手册
---
title: TxManager管理手册
permalink: /docs/txlcn-manageradmin/
---


访问 [http://127.0.0.1:8069/admin/index.html](http://127.0.0.1:8069/admin/index.html)进入管理后台,默认密码时`codingapi`。[指定密码](setting/manager.html)

Expand Down Expand Up @@ -30,4 +34,4 @@
over join group: TxClient 成功加事务组
notify group 1: TxManager通知TxClient提交本第事务(0回滚)
notify unit exception: TxManager通知事务单元失败(此处会记录异常信息)
notify group over:通知事务组结束(对于个别不能通知到的单元,会记下异常记录,不影响其它通知,异常的等待补偿)
notify group over:通知事务组结束(对于个别不能通知到的单元,会记下异常记录,不影响其它通知,异常的等待补偿)
6 changes: 5 additions & 1 deletion _docs/txlcn/principle/control.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 事务控制原理
---
title: 事务控制原理
permalink: /docs/txlcn-principle-control/
---


    TX-LCN由两大模块组成, TxClient、TxManager,TxClient作为模块的依赖框架,提供TX-LCN的标准支持,TxManager作为分布式事务的控制放。事务发起方或者参与反都由TxClient端来控制。

Expand Down
6 changes: 5 additions & 1 deletion _docs/txlcn/principle/lcn.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# LCN事务模式
---
title: LCN事务模式
permalink: /docs/txlcn-principle-lcn/
---


## 一、原理介绍:
    LCN模式是通过代理Connection的方式实现对本地事务的操作,然后在由TxManager统一协调控制事务。当本地事务提交回滚或者关闭连接时将会执行假操作,该代理的连接将由LCN连接池管理。
Expand Down
5 changes: 4 additions & 1 deletion _docs/txlcn/principle/tcc.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# TCC事务模式
---
title: TCC事务模式
permalink: /docs/txlcn-principle-tcc/
---

## 一、原理介绍:
    TCC事务机制相对于传统事务机制(X/Open XA Two-Phase-Commit),其特征在于它不依赖资源管理器(RM)对XA的支持,而是通过对(由业务系统提供的)业务逻辑的调度来实现分布式事务。主要由三步操作,Try: 尝试执行业务、 Confirm:确认执行业务、 Cancel: 取消执行业务。
Expand Down
7 changes: 5 additions & 2 deletions _docs/txlcn/principle/txc.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# TXC事务模式
---
title: TXC事务模式
permalink: /docs/txlcn-principle-txc/
---

## 一、原理介绍:
    TXC模式命名来源于淘宝,实现原理是在执行SQL之前,先查询SQL的影响数据,然后保存执行的SQL快走信息和创建锁。当需要回滚的时候就采用这些记录数据回滚数据库,目前锁实现依赖redis分布式锁控制。
Expand All @@ -8,4 +11,4 @@
* 该模式仅限于对支持SQL方式的模块支持。
* 该模式由于每次执行SQL之前需要先查询影响数据,因此相比LCN模式消耗资源与时间要多。
* 该模式不会占用数据库的连接资源。


6 changes: 5 additions & 1 deletion _docs/txlcn/setting/client.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# TxClient配置说明
---
title: TxClient配置说明
permalink: /docs/txlcn-setting-client/
---

## 一、application.properties
```properties

Expand Down
8 changes: 6 additions & 2 deletions _docs/txlcn/setting/distributed.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 负载与集群配置
---
title: 负载与集群配置
permalink: /docs/txlcn-setting-distributed/
---


    负载集群分为业务模块与TxManager

Expand Down Expand Up @@ -100,4 +104,4 @@ springcloud下需要在application的配置文件下增加:

```
tx-lcn.springcloud.loadbalance.enabled=true
```
```
7 changes: 5 additions & 2 deletions _docs/txlcn/setting/manager.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# TxManager配置说明
---
title: TxManager配置说明
permalink: /docs/txlcn-setting-manager/
---

## application.properties
```properties
Expand Down Expand Up @@ -73,4 +76,4 @@ spring.mail.username=xxxxx@**.com
spring.mail.password=*********
```

----------------
----------------
7 changes: 5 additions & 2 deletions _docs/txlcn/test.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# TX-LCN 5.0.0 性能测试报告
---
title: TX-LCN 5.0.0 性能测试报告
permalink: /docs/txlcn-test/
---

## 方式说明

Expand Down Expand Up @@ -87,4 +90,4 @@ TCC > LCN > TXC
* 下降率
是指在相同的RPC框架下各种事务模式相同条件下的吞吐量相比本地事务吞吐量的下降比例。

例如:1 - dubbo下LCN模式的吞吐量/dubbo下本地事务的吞吐量
例如:1 - dubbo下LCN模式的吞吐量/dubbo下本地事务的吞吐量
Binary file added img/5.0.0.zip
Binary file not shown.
Binary file added img/alibaba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/alibaba_hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/brhtqqzh.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/abc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/brhtqqzh.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/dubbo-client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/dubbo-d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/dubbo-e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/error-result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/maven-d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/maven-e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/maven-s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/maven-sd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/maven-se.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/maven.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/spring-client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/spring-d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/spring-e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/tx_manager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/txex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docs/yuanli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/docsite.ico
Binary file not shown.
Binary file added img/documents.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/erweima.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/feature_hogh.png
Binary file added img/feature_loadbalances.png
Binary file added img/feature_maintenance.png
Binary file added img/feature_runtime.png
Binary file added img/feature_service.png
Binary file added img/feature_transpart.png
Binary file added img/issue.png
Binary file added img/jmeter-res.png
Binary file added img/jmeter.png
Binary file added img/mailinglist.png
Binary file added img/mailinglist_hover.png
Binary file added img/pullrequest.png
Binary file added img/quick_arch.png
Binary file added img/quick_start.png
Binary file added img/quick_start.png.old
Binary file not shown.
Binary file added img/res.png
Binary file added img/segmentfault.png
Binary file added img/segmentfault_hover.png
Binary file added img/system/1.png
Binary file added img/system/arrow_down.png
Binary file added img/system/arrow_right.png
Binary file added img/system/blog.png
Binary file added img/system/community.png
Binary file added img/system/docs.png
Binary file added img/system/docs_hover.png
Binary file added img/system/docs_normal.png
Binary file added img/system/menu_gray.png
Binary file added img/system/menu_white.png
Binary file added img/system/next.png
Binary file added img/system/prev.png
Binary file added img/t_logger.png
Binary file added img/tc.png
Binary file added img/tm.png
Binary file added img/tx_session.png
Binary file added img/txlcn.png
Binary file added img/txlcn_white.png
Binary file added img/users_alibaba.png
Binary file added img/weibo.png
Binary file added img/weibo_hover.png