当前位置:网站首页>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
边栏推荐
- Create componentized development based on ILRuntime hot update
- .NET-6.WinForm2.NanUI学习和总结
- unity2d小游戏
- Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
- 简易网络文件拷贝的C实现
- MySQL database backup
- Unity资源管理系列:Unity 框架如何做好资源管理
- STM32 - DMA
- From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)
- 行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
猜你喜欢
Interview | Cheng Li, CTO of Alibaba: Cloud + open source together form a credible foundation for the digital world
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
STM32HAL library modifies Hal_Delay to us-level delay
XSS靶场(三)prompt to win
Explanation of
12个MySQL慢查询的原因分析
[C language] Detailed explanation of operators
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
Mysql应用安装后找不到my.ini文件
ERP生产作业控制 金蝶
随机推荐
Unity URP渲染管线摄像机核心机制剖析
Gaussian distribution and its maximum likelihood estimation
Unity resources management series: Unity framework how to resource management
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)
DVWA shooting range environment construction
MySQL事务隔离级别详解
Go语学习笔记 - 处理超时问题 - Context使用 | 从零开始Go语言
.NET-6.WinForm2.NanUI学习和总结
Doris学习笔记之监控
Mysql application cannot find my.ini file after installation
On-line monitoring system for urban waterlogging and water accumulation in bridges and tunnels
Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
三道leetcode上的oj题
SQL语句中对时间字段进行区间查询
HCIP第十天_BGP路由汇总实验
CentOS7 —— yum安装mysql
Fusion Cloud Native, Empowering New Milestones | 2022 Open Atom Global Open Source Summit Cloud Native Sub-Forum Successfully Held
PCL calculates the point cloud coordinate maximum and its index
Unity Framework Design Series: How Unity Designs Network Frameworks
DVWA installation tutorial (understand what you don't understand · in detail)