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