当前位置:网站首页>Temporal线上部署
Temporal线上部署
2022-07-31 04:55:00 【話吥哆先森丶】
1.、准备一个临时数据库
因为Temporal的数据库是通过命令行创建的,所以需要准备一个临时的数据库,用来保存Temporal命令行创建的表数据
2、下载Temporal的开源代码
git clone GitHub - temporalio/temporal: Temporal service
编译程序:make
或直接下载官方预编译的包也可以,参考:Releases · temporalio/temporal · GitHub
下载后,注意解压到Temporal源码的根目录,下面会用到
【docker方式,推荐】
GitHub - temporalio/docker-compose: Temporal docker-compose files
3、准备数据库创建脚本
进入下载好的Temporal项目代码,在根目录创建文件:create_db.sh
./temporal-sql-tool -u root --pw root drop --db temporal -f
./temporal-sql-tool -u root --pw root create --db temporal
./temporal-sql-tool -u root --pw root --db temporal setup-schema -v 0.0
./temporal-sql-tool -u root --pw root --db temporal update-schema -d ./schema/mysql/v57/temporal/versioned
./temporal-sql-tool -u root --pw root drop --db temporal_visibility -f
./temporal-sql-tool -u root --pw root create --db temporal_visibility
./temporal-sql-tool -u root --pw root --db temporal_visibility setup-schema -v 0.0
./temporal-sql-tool -u root --pw root --db temporal_visibility update-schema -d ./schema/mysql/v57/visibility/versioned
️ 如果只是本地部署,不需要进行下面的 步骤4和步骤5
4、从临时数据库导出表结构
mysqldump -uroot -proot --databases temporal > temporal.sql
mysqldump -uroot -proot --databases temporal_visibility > temporal_visibility.sql
过滤建表语句
cat temporal.sql|grep -v DROP|grep -v '\-\-'|grep -v '/\*!'|grep -v LOCK|grep -v INSERT
过滤插入语句
cat temporal.sql|grep -v DROP|grep -v '\-\-'|grep -v '/\*!'|grep -v LOCK|grep INSERT
5、在DDBS提交建表语句SQL
将建表语句,通过DDBS的SQL评审,创建表
建表后,并将之前过滤的插入语句,也同步到线上
6、启动Temporal工作流服务
在Temporal的根目录
检查文件:config/development.yaml,确保数据库等配置正确
启动Server:./temporal-server -zone mysql start
边栏推荐
- Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
- 参考代码系列_1.各种语言的Hello World
- SQL行列转换
- Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
- Lua,ILRuntime, HybridCLR(wolong)/huatuo hot update comparative analysis
- Heavyweight | The Open Atomic School Source Line activity was officially launched
- Unity shader forge和自带的shader graph,有哪些优缺点?
- 论治理与创新 | 2022开放原子全球开源峰会OpenAnolis分论坛圆满召开
- Fusion Cloud Native, Empowering New Milestones | 2022 Open Atom Global Open Source Summit Cloud Native Sub-Forum Successfully Held
- .NET-9. A mess of theoretical notes (concepts, ideas)
猜你喜欢
CentOS7 install MySQL graphic detailed tutorial
[Cloud Native] DevOps (5): Integrating Harbor
【R语言】【3】apply,tapply,lapply,sapply,mapply与par函数相关参数
EasyExcel的简单读取操作
From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)
Unity框架设计系列:Unity 如何设计网络框架
扫雷小游戏——C语言
Mysql application cannot find my.ini file after installation
Heavyweight | The Open Atomic School Source Line activity was officially launched
ES 源码 API调用链路源码分析
随机推荐
[py script] batch binarization processing images
城市内涝及桥洞隧道积水在线监测系统
WPF WPF 】 【 the depth resolution of the template
MySQL忘记密码怎么办
Gaussian distribution and its maximum likelihood estimation
XSS靶场(三)prompt to win
Duplicate entry 'XXX' for key 'XXX.PRIMARY' solution.
Doris学习笔记之监控
DVWA之SQL注入
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
重磅 | 开放原子校源行活动正式启动
参考代码系列_1.各种语言的Hello World
[Cloud Native] DevOps (5): Integrating Harbor
On-line monitoring system for urban waterlogging and water accumulation in bridges and tunnels
益智类游戏关卡设计:逆推法--巧解益智类游戏关卡设计
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution
Three oj questions on leetcode
SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
On Governance and Innovation | 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum was successfully held
MySQL fuzzy query can use INSTR instead of LIKE