azure-service-fabric

What environment variables are available to the SetupEntryPoint process?

二次信任 提交于 2019-12-11 07:46:10
问题 I'm looking to write a script to execute as a SetupEntryPoint for a Service Fabric Service. I'd like to know what environment variables would be available to the process. The environment variables available to a running service are documented here. The documentation for SetupEntryPoint may be found here but does not elude to what environment variables are available to the process. 回答1: I wrote the following simple batch file to run as the SetupEntryPoint of my service, which dumps all

Service fabric task queue with completion task

♀尐吖头ヾ 提交于 2019-12-11 07:42:16
问题 I have a job that can be broken down into smaller tasks, each that may take up to 30 minutes to complete. After the tasks are complete, then a cleanup task must be run. Each Task is a CPU intensive operation that must be run on a separate machine. The problem is that I can not find a way to know when all tasks are complete. How can I create an application in Service Fabric, such that when all tasks are complete, an additional cleanup task can be run? Additionally, how can I make it such that

NServiceBus endpoint is not starting on Azure Service Fabric local cluster

╄→гoц情女王★ 提交于 2019-12-11 07:31:05
问题 I have a .NetCore stateless WebAPI service running inside Service Fabric local cluster. return Endpoint.Start(endpointConfiguration).GetAwaiter().GetResult(); When I'm trying to start NServiceBus endpoint, I'm getting this exception : Access to the path 'C:\SfDevCluster\Data_App_Node_0\AppType_App10\App.APIPkg.Code.1.0.0.diagnostics' is denied. How can it be solved ? VS is running under administrator. 回答1: The issue you are having is because the folder you are trying to write to is not

Service Fabric can't connect to guest executable on UDP (Unreal Engine Server)

六眼飞鱼酱① 提交于 2019-12-11 07:06:37
问题 I'm trying to deploy Unreal Server guest executable to Service Fabric. I've been fallowing this blog post: http://haishibai.blogspot.com/2017/03/setting-up-highly-available-minecraft.html Except I'm not using containers and use Windows based service. On local cluster everything works. I can connect from client to deployed server. When trying to connect to remote server, I can't connect to it. When looking at my service fabric managment page It seems like my server process is working (it have

Service Fabric Client on Azure Functions - Unable to load DLL 'FabricClient.dll' or one of its dependencies

∥☆過路亽.° 提交于 2019-12-11 06:45:31
问题 I have an application running on Azure Functions, including a class that manages apps & services running on Service Fabric Cluster using Service Fabric Client API for .NET. Application works when I run it locally in debug mode from Visual Studio, and connection to Service Fabric Cluster works as expected. When I deploy the app to Azure Functions, using Service Fabric Client API causes exception: Execution result: Unable to load DLL 'FabricClient.dll' or one of its dependencies: The specified

MassTransit AzureServiceBus generated queues

江枫思渺然 提交于 2019-12-11 06:37:46
问题 I have a working configuration for a MT setup that is hosted in an Azure Service Fabric solution. I have an API that sends messages and a stateless app that reads them. Inside the stateless app I tell it to consume messages of type TestMessage with the following: container.Register(Classes.FromThisAssembly().BasedOn<IConsumer>()); var busControl = Bus.Factory.CreateUsingAzureServiceBus(cfg => { var h = cfg.Host(new Uri("sb://xxxxx.servicebus.windows.net"), host => { host.OperationTimeout =

Service Fabric local cluster creates 8 GB file when the cluster starts

不想你离开。 提交于 2019-12-11 05:05:44
问题 The file in question is replicatorshared.log , and it is the largest single file on my machine, even larger than the Windows 10 swap file. I can stop the cluster and delete the file, and it will be created again when the cluster starts. Can I control the initial size of this file? What is this file used for that it needs to be so large at the outset? 回答1: Check out this doc for more info: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-configuration The

Does service fabric create singleton instance for each stateful partition?

老子叫甜甜 提交于 2019-12-11 04:35:01
问题 Say I created a stateful service fabric service with 5 partitions on a 5 node cluster. I see that each node gets 1 partition per node. When I debug the service in VS, I notice that service fabric is creating exactly 5 instances of the stateful service [essentially 1 static instance per partition] across all 5 partitions. No mater how many calls the clients make, there are only 5 instances of this class to serve requests from. Are the following statements true? Any class level member variables

Managing Secrets in Service Fabric Applications

与世无争的帅哥 提交于 2019-12-11 04:27:00
问题 I am following the instructions at https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-secret-management to create a data encipherment certificate and use that certificate to decipher the secrets at runtime. I added below piece of code to my ApplicationManifest.xml file to grant Network Service account read access to a certificate defined by its thumbprint. <Principals> <Users> <User Name="NetworkSvc" AccountType="NetworkService" /> </Users> </Principals>

Targeting a stateless replica on the same node when communicating over the ServiceProxy client

China☆狼群 提交于 2019-12-11 04:25:25
问题 I have deployed two Stateless and SinglePartion Microservices into a Service Fabric cluster, which are hosted on Azure. Now I want to hook up the communication between these services like this: My Masterdata Web API Service should prefer to communicate with a Masterdata ServiceProxy Service replica/instance on the same node when calling a method via the ServiceProxy client. If there's no replica/instance available on the same node, connect to another node. The code looks like this: var