当前位置:网站首页>Start using dapr
Start using dapr
2022-06-09 16:08:00 【Wind god Shura envoy】
Official installation tutorial
https://docs.microsoft.com/zh-cn/dotnet/architecture/dapr-for-net-developers/getting-started
dapr install
wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash
https://github.com/dapr/cli/releases/download/v1.5.1/dapr_linux_amd64.tar.gz
cp to /bin
start-up
./web-port/run_web.sh
./dapr-api-go/run_api_go.sh
dapr Boot mode
// rely on Docker The pattern of , This is easy to start
dapr init
// Do not rely on Docker The pattern of , You need to start it yourself ~/.dapr/bin/placement
dapr init --slim
nohup ~/.dapr/bin/placement &
To configure consul server colony Reference resources :http://www.hdget.com/dapr-consul-config/
<!-- Download link :https://releases.hashicorp.com/consul -->
<!-- onsul Cluster node (raft Consensus ) -bootstrap-expect Number of cluster nodes -bind This machine ip -join The initial node to join ip-->
nohup ./consul agent -server -bootstrap-expect 2 -data-dir /tmp/consul -ui -client 0.0.0.0 -bind 192.168.0.5 -join 192.168.0.5 > /var/log/consul.log 2>&1 &
nohup ./consul agent -server -ui -data-dir /tmp/consul -client 0.0.0.0 -bind 192.168.0.4 -join 192.168.0.5 > /var/log/consul.log 2>&1 &
dapr client () To configure
nano ~/.dapr/config.yaml
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: daprConfig
spec:
nameResolution:
component: "consul"
configuration:
client:
address: "192.168.0.5:8500"
selfRegister: true
OR
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: appconfig
spec:
nameResolution:
component: "consul"
configuration:
selfRegister: false
nohup ./consul agent -data-dir /tmp/consul -ui -client 0.0.0.0 -bind 192.168.0.7 -join 192.168.0.4 > /var/log/consul.log 2>&1 &
dapr Server side ( The services that need to be registered for discovery are put here ) To configure
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: appconfig
spec:
nameResolution:
component: "consul"
configuration:
selfRegister: true
OR
nohup ./consul agent -data-dir /tmp/consul -ui -client 0.0.0.0 -bind 192.168.0.6 -join 192.168.0.5 > /var/log/consul.log 2>&1 &
Registration point
except consul bootstrap-expect Node is not operational dapr Everything else outside the program is OK
边栏推荐
- Build an integrated intelligent dialogue analysis platform from intelligent quality inspection to dialogue analysis, and the customer service center of Bank of Hangzhou creates a new business card of
- 期货在哪开户,找谁开安全可靠??
- June training (day 04) - greed
- 【CSDN 2021 年度总结】半年涨粉11万,铁杵磨成针
- June training (day 07) - hash table
- ps如何放大缩小图片
- ps怎么复制图层
- 枚举的替代方案 —— 枚举类
- LeetCode 1420. 生成数组
- [error reporting] no module named 'torchvision‘
猜你喜欢
随机推荐
[CSDN 2021 annual summary] 110000 yuan in half a year, grinding a pestle into a needle
五月集训(第22天) —— 有序集合
GoLand运行go程序时working directory的设置问题:报错路径找不到no such file or directory时需检查该配置
读《中台架构与实现》
LeetCode 327. 区间和的个数
67 2D drawing (antialiasing drawing / antialiasing rendering)
June training (day 09) - two point search
打新债开户安全么,怎么开户
SAP Commerce Cloud 构建过程中的文件夹可写入性问题分析
The demand for data storage is increasingly diversified, and it is a general trend to divide and conquer
重构要点学习
五月集训(第28天) —— 动态规划
Data security is urgent. What is the significance of the first SOC 2 authentication report for domestic intelligent manufacturers?
Numpy库的学习
单体应用和微服务调用区别
六月集训(第05天) —— 双指针
Aloudata创始人周卫林:以NoETL叩开数据平台变革之门
IdentityServer4 入门之一/之二
字节一面:网站显示不出来,怎么排查?
70 DOM reading XML









