国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Temporal部署指南:集群架構(gòu)、服務(wù)器部署流程、部署細(xì)節(jié)及Temporal UI配置

這篇具有很好參考價(jià)值的文章主要介紹了Temporal部署指南:集群架構(gòu)、服務(wù)器部署流程、部署細(xì)節(jié)及Temporal UI配置。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

1、集群架構(gòu)

操作部署前請仔細(xì)閱讀 03 Temporal 詳細(xì)介紹 篇

2、Temporal Server 部署流程

原理是:啟動(dòng)前先用 dockerize 生成一遍實(shí)際使用的配置,然后再啟動(dòng)Server本體

Self-hosted Temporal Cluster guide | Temporal Documentation

新建應(yīng)用

app:編輯temporal-eco - 云效應(yīng)用 - temporal-eco

數(shù)據(jù)庫:temporal_eco 和 temporal_eco_vis 

數(shù)據(jù)庫 Schema 創(chuàng)建及數(shù)據(jù)初始化

涉及系統(tǒng)環(huán)境變量

TEMPORAL_STORE_DB_NAME
TEMPORAL_STORE_DB_HOST
TEMPORAL_STORE_DB_PORT
TEMPORAL_STORE_DB_USER
TEMPORAL_STORE_DB_PWD
TEMPORAL_VISIBILITY_STORE_DB_NAME
TEMPORAL_VISIBILITY_STORE_DB_HOST
TEMPORAL_VISIBILITY_STORE_DB_PORT
TEMPORAL_VISIBILITY_STORE_DB_USER
TEMPORAL_VISIBILITY_STORE_DB_PWD

參考 鏈接 和 v1.12.0 Makefile

# in https://github.com/temporalio/temporal git repo dir

export SQL_PLUGIN=mysql

export SQL_HOST=mysql_host

export SQL_PORT=3306

export SQL_USER=mysql_user

export SQL_PASSWORD=mysql_password

  

./temporal-sql-tool create-database -database temporal

SQL_DATABASE=temporal ./temporal-sql-tool setup-schema -0.0

SQL_DATABASE=temporal ./temporal-sql-tool update -schema-dir schema/mysql/v57/temporal/versioned

  

./temporal-sql-tool create-database -database temporal_visibility

SQL_DATABASE=temporal_visibility ./temporal-sql-tool setup-schema -0.0

SQL_DATABASE=temporal_visibility ./temporal-sql-tool update -schema-dir schema/mysql/v57/visibility/versioned

集群部署

frontend history matching 在創(chuàng)建服務(wù)時(shí)選 GRPC 服務(wù),worker 選擇其他 (它在某個(gè)版本后不會(huì)暴露 GRPC 端口),然后客戶端服務(wù)用 GRPC + 公司的服務(wù)發(fā)現(xiàn)連到 frontend 即可

Shards 數(shù)量

參考鏈接,確定數(shù)量為 4k = 4096。Shards 數(shù)量一旦確定,后續(xù)無法改變(唯一無法改變的配置)。Shards are very lightweight. There are no real implications on the cost of clusters. We (Temporal) have tested the system up to 16k shards.

組件數(shù)量及資源量

推薦值(v)參考鏈接

組件

數(shù)量

推薦 CPU 資源量

推薦內(nèi)存資源量

frontend344Gi
history588Gi
matching344Gi
worker244Gi

測試環(huán)境數(shù)量及資源量

組件

數(shù)量 = floor(v/2)

推薦 CPU 資源量 = floor(v/4)

推薦內(nèi)存資源量 = floor(v/4)

frontend111Gi
history222Gi
matching111Gi
worker111Gi

生產(chǎn)環(huán)境數(shù)量及資源量

組件

數(shù)量 = floor(v/2)

推薦 CPU 資源量 = floor(v/2)

推薦內(nèi)存資源量 = floor(v/2)

frontend122Gi
history244Gi
matching122Gi
worker122Gi

對接外部應(yīng)用的 Mesh 地址

update_at

${unit}--master.app.svc

2023.05.04temporal-frontend--master.temporal-eco.svc.cluster.local:80

3、部署細(xì)節(jié)

生產(chǎn)環(huán)境如何部署:Temporal Platform production deployments | Temporal Documentation

  • 支持 Cassandra、MySQL 和 PostgreSQL(版本見鏈接),需要確定與 TiDB 的兼容性

  • 數(shù)據(jù)庫 Schema 升級

  • 通過指標(biāo)來進(jìn)行系統(tǒng)性能監(jiān)控與調(diào)優(yōu)

  • Server 拓?fù)渲械牟煌?wù)特性不同,最好獨(dú)立部署

    • the Frontend service is more CPU bound

    • the History and Matching services require more memory

  • Server 的一些數(shù)據(jù)大小限制

  • what-is-the-recommended-setup-for-running-cadence-temporal-with-cassandra-on-production

    • Frontend: Responsible for hosting all service api. All client interaction goes through frontend and mostly scales with rps for the cluster. Start with 3 instances of 4 cores and 4GB memory.

    • History: This hosts the workflow state transition logic. Each history host is running a shard controller which is responsible for activating and passivating shards on that host. If you provision a cluster with 4k shards then they are distributed across all available history hosts within the cluster through shard controller. If history hosts are scalability bottleneck, you just add more history hosts to the cluster. All history hosts form its own membership ring and shards are distributed among available nodes in the hash ring. They are quite memory intensive as they host mutable state and event caches. Start with 5 history instances with 8 cores and 8 GB memory.

    • Matching: They are responsible for hosting TaskQueues within the system. Each TaskQueue partition is placed separately on all available matching hosts. They usually scale with the number of workers connecting for workflow or activity task, throughput of workflow/activity/query task, and number of total active TaskQueues in the system. Start with 3 matching instances each with 4 cores and 4 GB memory.

    • Worker: This is needed for various background logic for ElasticSearch kafka processor, CrossDC consumers, and some system workflows (archival, batch processing, etc). You can just start with 2 instances each with 4 cores and 4 GB memory.

    • Number of history shards is a setting which cannot be updated after the cluster is provisioned. For all other parameters you could start small and scale your cluster based on need with time but this one you have to think upfront about your maximum load

    • Temporal server consists of 4 roles. Although you can run all roles within same process but we highly recommend running them separately as they have completely different concerns and scale characteristics. It also makes it operationally much simpler to isolate problems in production. All of the roles are completely stateless and system scales horizontally as you spin up more instances of role once you identify any bottleneck. Here are some recommendations to use as a starting point:

  • 接入 SSO

  • 打指標(biāo)到 Prometheus

  • 如何配置 Grafana Dashboard

  • 是否部署至 K8s 的討論

4、Temporal UI 部署流程

https://temporal-eco-ui.pek01.in.zhihu.com/namespaces/default/workflows


步驟詳細(xì)遇到問題
本地部署

 
基礎(chǔ)環(huán)境
  • apt install nodejs

  • apt install npm

  • npm install pnpm -g

  • apt-get install -y nodejs

  • /usr/bin/node -v

  • npm install n -g

  • n stable # 更新到穩(wěn)定版本


安裝依賴

(會(huì)產(chǎn)出temporal web 所需要的前端環(huán)境及代碼)

安裝最新的 temporal server

  • pnpm install

  • pnpm start

構(gòu)建 ui-server

  • pnpm run build:local

  • pnpm run build:cloud

前端環(huán)境問題:nodejs、npm、pnpm

  • 本地安裝部署,前端環(huán)境及代碼整體打包到線上

pnpm build:server 生成 assets 文件,否則報(bào) ui/assets 的 all:assets 找不到

Temporal UI requires Temporal v1.16.0 or later

第三方依賴

(產(chǎn)出通信所需的 proto 文件)

  • make install

  • make build-grpc

grpc 依賴 protobuf 協(xié)議(指定了依賴的代碼路徑)

  • 配置submodule,產(chǎn)出 proto 文件

嘗試啟動(dòng)
  • go build -o ui-server ./cmd/server/main.go

  • ./ui-server start

然后切到自建的 temporal server 上,再次啟動(dòng)
需關(guān)注文件
  • package.json/script # pnpm 執(zhí)行腳本文件

  • ./env  # 映射環(huán)境配置

    • 默認(rèn) dev 環(huán)境,package.json/script

    • "start": "pnpm run dev:local -- --open"

    • "dev:local": ". ./.env && VITE_TEMPORAL_UI_BUILD_TARGET=local vite dev --port 3000"

  • config/base.yaml # 依賴 temporal server 地址

  • config/development.yaml # 暴露頁面端口

目前  temporal server 地址 是寫死在 temporal ui 代碼庫里的(但一般應(yīng)該不會(huì)變)

已做了動(dòng)態(tài)配置生成

線上部署

git clone git@git.in.zhihu.com:xujialong01/temporal-eco-server.git

配置 ui-server 服務(wù)地址

外部包導(dǎo)入個(gè)人倉庫,加快下載

與 UI 版本對齊(temporal server upgrade)

參考資料

Temporal Platform production deployments | Temporal Documentation文章來源地址http://www.zghlxwxcb.cn/news/detail-759070.html

到了這里,關(guān)于Temporal部署指南:集群架構(gòu)、服務(wù)器部署流程、部署細(xì)節(jié)及Temporal UI配置的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Redis持久化說明及其單臺(tái)Linux服務(wù)器搭建Redis集群架構(gòu)

    Redis持久化說明及其單臺(tái)Linux服務(wù)器搭建Redis集群架構(gòu)

    說明:RDB快照主要以二進(jìn)制文件的形式進(jìn)行存儲(chǔ)數(shù)據(jù),主要以文件名dump.rdb進(jìn)行存儲(chǔ),主要設(shè)置redis.conf里面設(shè)置’save 60 1000’命令可以開啟, 表示在60秒內(nèi)操作1000次進(jìn)行一次備份數(shù)據(jù)。在客戶端執(zhí)行save(同步)和bgsave(異步操作)。 redis.conf 啟動(dòng)redis相關(guān)命令 說明:主要把文件生

    2024年02月10日
    瀏覽(31)
  • minio集群部署,4臺(tái)服務(wù)器+1臺(tái)nginx

    分布式Minio里所有的節(jié)點(diǎn)需要有同樣的access秘鑰和secret秘鑰,即:用戶名和密碼 分布式Minio存放數(shù)據(jù)的磁盤目錄必須是空目錄 分布式Minio官方建議生產(chǎn)環(huán)境最少4個(gè)節(jié)點(diǎn),因?yàn)橛蠳個(gè)節(jié)點(diǎn),得至少保證有N/2的節(jié)點(diǎn)才能可讀,保證至少N/2+1的節(jié)點(diǎn)才能可寫。這里只是作演示搭建,只

    2024年02月15日
    瀏覽(31)
  • 概述、搭建Redis服務(wù)器、部署LNP+Redis、創(chuàng)建Redis集群、連接集群、集群工作原理

    概述、搭建Redis服務(wù)器、部署LNP+Redis、創(chuàng)建Redis集群、連接集群、集群工作原理

    Top 案例1:搭建redis服務(wù)器 案例2:常用命令限 案例3:部署LNP+Redis 案例4:創(chuàng)建redis集群 1.1 具體要求如下 在主機(jī)redis64運(yùn)行redis服務(wù) 修改服務(wù)運(yùn)行參數(shù) ip 地址192.168.88.64 服務(wù)監(jiān)聽的端口6364 redis服務(wù)的連接密碼為 tarenaplj 1.2 方案 準(zhǔn)備1臺(tái)新虛擬機(jī),要求如表-1所示。 ? 1.3 步驟 實(shí)

    2024年02月12日
    瀏覽(114)
  • 網(wǎng)站架構(gòu)演變、LNP+Mariadb數(shù)據(jù)庫分離、Web服務(wù)器集群、Keepalived高可用

    目錄 day02 深入理解程序的數(shù)據(jù)存儲(chǔ) 驗(yàn)證 配置NFS服務(wù)器 配置代理服務(wù)器 配置名稱解析 程序?qū)⑽淖謹(jǐn)?shù)據(jù)保存到數(shù)據(jù)庫中 程序?qū)⒎俏淖謹(jǐn)?shù)據(jù)(如圖片、視頻、壓縮包等)保存到相應(yīng)的文件目錄中 驗(yàn)證 發(fā)一篇文章,文章內(nèi)容包含文字和圖片 在數(shù)據(jù)庫中查看文字?jǐn)?shù)據(jù)。在最新的一

    2024年02月20日
    瀏覽(25)
  • Palworld服務(wù)器怎么搭建?(帕魯主機(jī)部署詳細(xì)指南)

    Palworld服務(wù)器怎么搭建?(帕魯主機(jī)部署詳細(xì)指南)

    對于《幻獸帕魯》的玩家們來說,能夠親手搭建屬于自己的服務(wù)器無疑是一種令人向往的體驗(yàn)。想象一下,與自己的小伙伴們在這個(gè)專屬且充滿冒險(xiǎn)氣息的游戲空間中暢游,探索未知的領(lǐng)域,共同創(chuàng)造屬于你們的精彩故事,這無疑是一種無與倫比的樂趣。 本文將為大家詳細(xì)介

    2024年02月21日
    瀏覽(25)
  • CIFS協(xié)議入門指南:快速部署文件共享服務(wù)器

    CIFS協(xié)議入門指南:快速部署文件共享服務(wù)器

    數(shù)據(jù)來源? 本文涉及NTFS權(quán)限的知識,不熟悉的可以先看這篇文章 ????????通過網(wǎng)絡(luò)提供文件共享服務(wù),提供文件下載和上傳服務(wù)(類似于FTP服務(wù)器) ????????方法: 文件夾右鍵屬性 -- 共享 -- 開啟共享 -- 設(shè)置共享名 -- 設(shè)置共享權(quán)限 ????????注: ???????????

    2024年02月12日
    瀏覽(29)
  • (十)服務(wù)器K8S集群部署SpringBoot項(xiàng)目實(shí)戰(zhàn)

    (十)服務(wù)器K8S集群部署SpringBoot項(xiàng)目實(shí)戰(zhàn)

    可以在 https://start.spring.io/網(wǎng)站準(zhǔn)備一個(gè)項(xiàng)目,這里作為k8s的學(xué)習(xí)所以springboot項(xiàng)目中準(zhǔn)備一個(gè)簡單的訪問接口即可。 1.更新系統(tǒng)軟件包: 2.安裝 OpenJDK 11: 3.驗(yàn)證 Java 安裝: 4.配置環(huán)境變量 5.使環(huán)境變量生效 1.可以在 https://dlcdn.apache.org/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin

    2024年02月12日
    瀏覽(23)
  • 如何將項(xiàng)目部署到服務(wù)器:從選擇服務(wù)器到維護(hù)應(yīng)用程序的全流程指南

    將項(xiàng)目部署到服務(wù)器是一個(gè)重要的技能,對于開發(fā)人員來說,它是必不可少的。在本文中,我將介紹一些關(guān)于如何將項(xiàng)目部署到服務(wù)器的最佳實(shí)踐。 一、選擇服務(wù)器 在部署項(xiàng)目之前,你需要先選擇一個(gè)適合你的服務(wù)器。如果你已經(jīng)有一個(gè)可用的服務(wù)器,你可以直接使用它,

    2024年02月05日
    瀏覽(29)
  • Cenos7 搭建Minio最新版集群部署服務(wù)器(一)

    Cenos7 搭建Minio最新版集群部署服務(wù)器(一)

    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ------ ?? ? 道 | 法 | 術(shù) | 器 | 勢? ?? ------ ? ? ? ? ? ? ? ? ? ? ? ? ? ? 多臺(tái)服務(wù)器間免密登錄|免密拷貝 Cenos7 搭建Minio集群部署服務(wù)器(一) Cenos7 搭建Minio集群Nginx統(tǒng)一訪問入口|反向動(dòng)態(tài)代理(二)? Nginx正向代理與反向

    2024年02月12日
    瀏覽(20)
  • Centos7 x86服務(wù)器一鍵部署ES集群/單機(jī)shell

    Centos7 x86服務(wù)器一鍵部署ES集群/單機(jī)shell

    ? ? ? ? 由于日常的實(shí)施工作中經(jīng)常用到單機(jī)或者集群的es,每次都手動(dòng)部署感覺很麻煩,于是抽空寫了一個(gè)一鍵部署腳本,通過簡單指定集群名稱、節(jié)點(diǎn)ip、端口等幾個(gè)配置參數(shù)后自動(dòng)部署es單機(jī)或者集群數(shù)據(jù)庫 該安裝包實(shí)現(xiàn)利用給定參數(shù)安裝單機(jī)版或者集群版es數(shù)據(jù)庫,指

    2023年04月11日
    瀏覽(28)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包