简体   繁体   English

如何从 Azure 上的 Service Fabric 应用程序连接到 EventStore

[英]How to Connect to EventStore from Service Fabric App on Azure

I have created Service fabric (SF) application which interacts with my event store hosted on my local machine, up to here everything is fine.Now I want to move the application to Azure.我已经创建了 Service Fabric (SF) 应用程序,它与我本地机器上托管的事件存储进行交互,到这里一切都很好。现在我想将该应用程序移动到 Azure。 I have successfully deployed my SF application on Azure and created an Azure Scale Set with 3 nodes and installed EventStore on them.我已在 Azure 上成功部署了我的 SF 应用程序,并创建了一个具有 3 个节点的 Azure 规模集并在其上安装了 EventStore。

Now how can I connect my SF application to the hosted EventStore on Azure Scale Set ie what connection string should I pass in my application parameter file of SF.现在如何将我的 SF 应用程序连接到 Azure 规模集上托管的 EventStore,即我应该在我的 SF 应用程序参数文件中传递什么连接字符串。 I have opened port 2113 and 1113 as well.我也打开了 2113 和 1113 端口。

Ex.前任。 My Public IP to Azure Scale Set : 12.34.567.89我的公共 IP 到 Azure 规模集:12.34.567.89

Internal IPs for 3 Nodes are as 11.111.256.4 , 11.111.256.5 and 11.111.256.6 3 个节点的内部 IP 为 11.111.256.4 、 11.111.256.5 和 11.111.256.6

your connection string should contain the cluster IP with userid and password.您的连接字符串应包含带有用户 ID 和密码的集群 IP。

In your ApplicationParameters .xml file pass the following string :在您的 ApplicationParameters .xml 文件中传递以下字符串:

<Parameter Name="EventStoreConnectionString" Value="ConnectTo=discover://userid:password@clusterIP:1113; HeartBeatTimeout=500; MaxReconnections=10000; MaxRetries=100;" />

Note : Userid & passwords are those configured in EventStore, default values are admin and changeit.注意: Userid 和password 是在EventStore 中配置的,默认值为admin 和changeit。

For More details refer to following link有关更多详细信息,请参阅以下链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Service Fabric Mesh连接到Azure Cosmos DB - How to connect to Azure Cosmos DB from Service Fabric Mesh 如何将.NETCore应用程序部署到Azure Service Fabric - How to Deploy .NETCore App to Azure Service Fabric 如何从 Service Fabric 群集上运行的服务连接到 Azure 存储帐户? - How to connect to an Azure Storage account from a service running on service fabric cluster? 如何通过Service Fabric无状态服务连接和操作Azure SQL数据库 - How do you connect to and manipulate an Azure SQL Database from a Service Fabric Stateless Service 无法从MAC连接到Azure Service Fabric群集 - Unable to connect to Azure Service fabric cluster from MAC 从Azure VM连接到Azure App Service - Connect to Azure App Service from Azure VM 如何从 Azure 逻辑应用标准连接本地服务 - How to connect on prem service from Azure logic app standrad 使用PowerShell连接到azure服务结构集群 - Connect to azure service fabric cluster with powershell 我们如何将Azure服务矩阵群集连接到本地服务/数据库? - How can we connect our Azure service fabric cluster to on-premises service/ database? 使用Azure App Service中的Powershell命令连接到Azure AD - Connect to Azure AD using Powershell commands from Azure App Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM