当前位置:网站首页>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
- Understanding of the presence of a large number of close_wait states
- SQL行列转换
- 从零开始,一镜到底,纯净系统搭建除草机(Grasscutter)
- Blockbuster | foundation for platinum, gold, silver gave nameboards donors
- 参考代码系列_1.各种语言的Hello World
- 30 Years of Open Source Community | 2022 Open Atom Global Open Source Summit 30 Years of Open Source Community Special Event Held Successfully
- 【线性神经网络】softmax回归
- 【py脚本】批量二值化处理图像
- STM32HAL library modifies Hal_Delay to us-level delay
猜你喜欢

Fusion Cloud Native, Empowering New Milestones | 2022 Open Atom Global Open Source Summit Cloud Native Sub-Forum Successfully Held

扫雷小游戏——C语言

Explanation of

SQL行列转换

ERP生产作业控制 金蝶

Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us

Create componentized development based on ILRuntime hot update

sql语句-如何以一个表中的数据为条件据查询另一个表中的数据

MySQL database backup

CentOS7 —— yum安装mysql
随机推荐
1. 获取数据-requests.get()
[Cloud Native] DevOps (5): Integrating Harbor
Information System Project Manager Core Test Site (55) Configuration Manager (CMO) Work
On-line monitoring system for urban waterlogging and water accumulation in bridges and tunnels
Hand in hand to realize the picture preview plug-in (3)
MySQL开窗函数
sql语句-如何以一个表中的数据为条件据查询另一个表中的数据
Unity打灵狐者
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
SQL语句中对时间字段进行区间查询
XSS靶场(三)prompt to win
Mysql应用安装后找不到my.ini文件
Doris学习笔记之监控
sql语句之多表查询
ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
.NET-6.WinForm2.NanUI学习和总结
【py脚本】批量二值化处理图像
View source and switch mirrors in two ways: npm and nrm
【wpf】wpf中的那些模板之深度解析
MySQL optimization: from ten seconds to three hundred milliseconds