azure-service-fabric

Access file system in Service Fabric

白昼怎懂夜的黑 提交于 2019-12-05 01:22:04
问题 I need to encode video using ffmpeg in Service Fabric service when I receive new message from Service Bus queue. I can extract ffmpeg.exe from resources and run it but can I save input/output video files in internal file system? 回答1: I tested it on local cluster by following code: protected override async Task RunAsync(CancellationToken cancellationToken) { while (true) { cancellationToken.ThrowIfCancellationRequested(); string filename = "testFile.txt"; File.AppendAllText(filename, "test. ")

Can I customize azure service fabric vm nodes?

谁都会走 提交于 2019-12-04 22:26:59
问题 I would like to leverage reliable actor model in the azure service fabric. Our actor model computation requires specific software installed on the vm node. Can I have custom software installed (on top of the azure service fabric software) in the vm nodes so that I can leverage this software in the actor model computation? As part of the my actor model deployment into azure service fabric, can I author this custom software installation into it? Is this how it should be done? Or are there any

Does Azure service fabric creates separate process for every service

青春壹個敷衍的年華 提交于 2019-12-04 20:59:21
Suppose there is an named application running on Azure service fabric cluster. And this named application has 5 different services. Will these services be running in different processes or in same process? And what if these services are not .net services and are executable? Guest EXEs always get their own processes. Otherwise, there are two hosting modes available: Exclusive Process - this one is very straight-forward so let's start here. In this mode, everything gets its own process. Every replica of every partition of every service instance of every application gets its own exclusive host

Service Resolver for Stateless Services in Service Fabric

大城市里の小女人 提交于 2019-12-04 20:27:09
I seem to keep getting "Service Not Found" whenever I try to resolve an endpoint for a stateless service. I have tried using the service partition resolver and also the service proxy but they both yield same results. Is there a restriction on Service Fabric or am I misunderstanding how stateless services should be used? I could not find any documentation stating either way. To give more detail on what I am attempting to do. I am building an Api Gateway. The Api Gateway is comprised of RegistryService and a RoutingService. I have multiple service fabric applications, some of which have "front

Exposing WCF/TCP Endpoints from Service Fabric with WS-MetadataExchange for external clients and WcfTestClient

六月ゝ 毕业季﹏ 提交于 2019-12-04 19:17:38
I have a Stateless Service that I am migrating some CloudService WCF Endpoints to. These enpoints are available publicly and require that I am able to discover their properties using WS-MetadataExchange via both References > Add Service Reference from a Visual Studio project as well as from WCFTestClient . I've followed a few tutorials and have a test endpoint set up: <Endpoint Protocol="tcp" Name="WcfServiceEndpoint" Type="Input" Port="8081" /> As well as a service contract [ServiceContract] public interface ITestContract { [OperationContract] int TestMethod(int value1, int value2); } The

What do the EndPoints configure in the ServiceManifest of an Service Fabric Service?

家住魔仙堡 提交于 2019-12-04 17:45:18
We have a Service Fabric Service project with multiple services: Actors, Stateful services and Stateless services combined into one ServiceManifest. Two stateful services did not work: the constructors were called, the communicationlisteners (through remoting) were created, but the RunAsync method was not called. After removing the endpoint listing from the ServiceManifest.xml the services started working again. But now we are left wondering why and how this works. Could someone explain? To illustrate, the relevant section was <Resources> <Endpoints> <Endpoint Name="WebServiceEndpoint" Type=

Azure Application Gateway with Service Fabric

狂风中的少年 提交于 2019-12-04 17:32:49
问题 Currently I have a Service Fabric cluster with 2 stateless services hosting Asp Web APIs. While creating the cluster also appropriate Azure Load Balancers got created. Now I would like to add Application Gateway in front of my cluster for various reasons like SSL offloading, url-routing etc. I'd like to understand how to configure the Application Gateway correctly. I see 2 options, not sure which one is valid: Application Gateway replaces the existing Load Balancer and points directly to SF

Get All Active Service Instances on Service Start

﹥>﹥吖頭↗ 提交于 2019-12-04 17:04:43
I'm creating a stateless service inside Azure Service Fabric. However, once service starts (or on start of custom communication listener) I need to get addresses of all other instances/partitions of that service. I'm doing so by creating new FabricClient and calling fabricClient.QueryManager.GetPartitionListAsync(serviceUri) . However I'm getting FabricServiceNotFoundException with message Service does not exist. when a first service instance starts running. I couldn't find that in documentation, so my question is: how can I get a list of listening endpoint addresses for all active instances

Unable to authenticate FabricClient to a secured Service Fabric Cluster

懵懂的女人 提交于 2019-12-04 15:46:47
I have a secured service fabric cluster. The same certificate is being used as the server certificate and for client authentication. I am unable to create a FabricClient in a console application that will allow me to connect to this cluster. I am using the code snippet documented here under "Connect to a secure cluster using a client certificate": static void Main(string[] args) { string thumb = "‎1234567890123456789012345678901234567890"; string CommonName = "somefabric.cloudapp.azure.com"; string connection = "somefabric.cloudapp.azure.com:19000"; try { X509Credentials xc = GetCredentials

Service Fabric SetupEntryPoint

戏子无情 提交于 2019-12-04 13:42:35
问题 I have a Guest Executable that needs to access a shared drive (Azure Files). My guest executable is setup in of the ServiceManifest.xml. I've tried adding a to launch a "mysetup.bat" file that has the NET USE command that setups up the connection with my Azure Files share. However, I'm getting the following vague errors: Error event: SourceId='System.Hosting', Property='CodePackageActivation:Code:SetupEntryPoint'. There was an error during CodePackage activation.The service host terminated