当前位置:网站首页>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
边栏推荐
- Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held
- Industry-university-research application to build an open source talent ecosystem | 2022 Open Atom Global Open Source Summit Education Sub-Forum was successfully held
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
- SQL行列转换
- 30 Years of Open Source Community | 2022 Open Atom Global Open Source Summit 30 Years of Open Source Community Special Event Held Successfully
- MySQL事务隔离级别详解
- sql statement - how to query data in another table based on the data in one table
- Open Source Database Innovation in the Digital Economy Era | 2022 Open Atom Global Open Source Summit Database Sub-Forum Successfully Held
- The MySQL database installed configuration nanny level tutorial for 8.0.29 (for example) have hands
- STM32——DMA
猜你喜欢

Centos7 install mysql5.7 steps (graphical version)

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

Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held

Interview | Cheng Li, CTO of Alibaba: Cloud + open source together form a credible foundation for the digital world
![[debug highlights] Expected input batch_size (1) to match target batch_size (0)](/img/b3/ff6ccc3cd307befad3bd07a9f4a956.png)
[debug highlights] Expected input batch_size (1) to match target batch_size (0)

Mysql application cannot find my.ini file after installation

扫雷小游戏——C语言

Lua,ILRuntime, HybridCLR(wolong)/huatuo hot update comparative analysis

The input input box displays the precision of two decimal places

VScode+ESP32 quickly install ESP-IDF plugin
随机推荐
Hand in hand to realize the picture preview plug-in (3)
ES 源码 API调用链路源码分析
PCL 计算点云坐标最值及其索引
DVWA installation tutorial (understand what you don't understand · in detail)
Mysql application cannot find my.ini file after installation
开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源
Unity shader forge和自带的shader graph,有哪些优缺点?
剑指offer专项突击版第15天
MySQL事务隔离级别详解
MySQL事务(transaction) (有这篇就足够了..)
110道 MySQL面试题及答案 (持续更新)
Interview | Cheng Li, CTO of Alibaba: Cloud + open source together form a credible foundation for the digital world
MySQL optimization slow log query
DVWA shooting range environment construction
sql statement - how to query data in another table based on the data in one table
MySQL优化之慢日志查询
MySQL forgot password
Centos7 install mysql5.7 steps (graphical version)
重磅 | 开放原子校源行活动正式启动
centos7安装mysql5.7步骤(图解版)