当前位置:网站首页>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
边栏推荐
- Puzzle Game Level Design: Reverse Method--Explaining Puzzle Game Level Design
- Go language study notes - dealing with timeout problems - Context usage | Go language from scratch
- sql语句-如何以一个表中的数据为条件据查询另一个表中的数据
- 重磅 | 基金会为白金、黄金、白银捐赠人授牌
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
- 三道leetcode上的oj题
- [C language] Detailed explanation of operators
- DVWA之SQL注入
- Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
- mysql存储过程
猜你喜欢

Interview | Cheng Li, CTO of Alibaba: Cloud + open source together form a credible foundation for the digital world

Create componentized development based on ILRuntime hot update

STM32 - DMA

XSS shooting range (3) prompt to win

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

MySQL常见面试题汇总(建议收藏!!!)

矩池云快速安装torch-sparse、torch-geometric等包

View source and switch mirrors in two ways: npm and nrm

ES 源码 API调用链路源码分析

Mysql应用安装后找不到my.ini文件
随机推荐
参考代码系列_1.各种语言的Hello World
EasyExcel的简单读取操作
ABC D - Distinct Trio(k元组的个数
打造基于ILRuntime热更新的组件化开发
论治理与创新 | 2022开放原子全球开源峰会OpenAnolis分论坛圆满召开
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
从零开始,一镜到底,纯净系统搭建除草机(Grasscutter)
【云原生】DevOps(五):集成Harbor
重磅 | 基金会为白金、黄金、白银捐赠人授牌
110道 MySQL面试题及答案 (持续更新)
【C语言】操作符详解
centos7安装mysql5.7步骤(图解版)
[R language] [3] apply, tapply, lapply, sapply, mapply and par function related parameters
Understanding of the presence of a large number of close_wait states
Interview | Cheng Li, CTO of Alibaba: Cloud + open source together form a credible foundation for the digital world
Open Source Database Innovation in the Digital Economy Era | 2022 Open Atom Global Open Source Summit Database Sub-Forum Successfully Held
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
Go language study notes - dealing with timeout problems - Context usage | Go language from scratch
WPF WPF 】 【 the depth resolution of the template
开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源