azure-service-fabric

Staging slot and vip-swap

≡放荡痞女 提交于 2019-12-11 00:26:07
问题 Coming from the classic Cloud Service model, after having used it to 5 years now, we are very used to the concept of a staging slot and the vip-swap capability. Yes this upgrade model has many warts but also many benefits. Clearly the SF doesn't expose this model. So I wonder was it just not a popular model in Cloud Services, or does it just really not make sense 6 years later? Is this one of those paradigm changes where I just have to re-think how we deploy, and forge ahead with the newly

Code is missing for service error Service Fabric

本秂侑毒 提交于 2019-12-11 00:16:06
问题 I am trying to deploy a new service in to my service fabric cluster I am sure I have created this in the same way as my other services. I have manually sorted out the ApplicationManifest file that seems fine However, when I try to run the local dev cluster VS crashes out with powershell error Register-ServiceFabricApplicationType : The BuildLayout of the application in 6>C:\SfDevCluster\Data\ImageBuilderProxy\AppType\Inspired.TradingPlatform.ServiceFabricType is invalid. Code is missing 6>for

How does IHostingEnvironment.ContentRootPath get set?

百般思念 提交于 2019-12-10 23:02:57
问题 In my Azure Service Fabric Web API project, I am able to add my appsettings.json files to my config using this code in my Api.cs class: protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners() { return new ServiceInstanceListener[] { new ServiceInstanceListener(serviceContext => new KestrelCommunicationListener(serviceContext, "ServiceEndpoint", (url, listener) => { ServiceEventSource.Current.ServiceMessage(serviceContext, $"Starting Kestrel on {url}"); return

Single Service Fabric application referencing multiple external Web API's

本小妞迷上赌 提交于 2019-12-10 21:26:09
问题 My question is somewhat similar to this question, but the answer doesn't really help me, unless i'm missing something. If i want to deploy 10+ stateless services (OWIN-based Web API's) into a Service Fabric cluster, well from my understanding of ASF, i would: Create a new Service Fabric Application in Visual Studio (call it "MyBackendServices") Create 10+ Stateless Web API's Add them to the Service Fabric Application Deploy to a cluster. But wouldn't this involve creating all the Web API's in

ServiceFabric standalone: Failed to get private key file

社会主义新天地 提交于 2019-12-10 18:50:11
问题 I have a standalone ServiceFabric cluster (3 nodes). I created SSL certificate for server and client authorization. Then I assign certificate thumbprint to a cluster config. Everything work okey( cluster health is Ok and my applications works as well. But there are a lot of errors in Microsoft-ServiceFabric/Admin log. Following warning and errors are writing to log every minute: CryptAcquireCertificatePrivateKey failed. Error:0x80090014 Can't get private key filename for certificate. Error:

Service Fabric Actor Interfaces implementing multiple interfaces

﹥>﹥吖頭↗ 提交于 2019-12-10 17:12:30
问题 I'm building an application, where I have multiple different actor types that have the same kind of behavior (CRUD) in respect to some different data objects. In order to more easily create code that handles this I've tried to create an interface, that these actors can implement. This means that i have an actor interface that looks something like this: public interface IMyActor1 : IActor, IDataActor<DataItem1>, IDataActor<DataItem2> Where the IDataActor<T> looks like this: public interface

Where & how does one instantiate ServiceInitializationParameters in an Azure Service Fabric service?

为君一笑 提交于 2019-12-10 17:07:14
问题 Trying to use custom application configuration in my service. This post gives part of the answer, but it doesn't explain how & where you initialize the ServiceInitializationParameters object, which is required to get it working. The object does not seem to have a constructor. Documentation from Microsoft is sketchy and the provided sample on GitHub does not seem to use any custom app config. 回答1: This post is based on the preview SDK. In the release version (2.0+) of the SDK,

Bad dll file exception when using the Service Fabric template

别来无恙 提交于 2019-12-10 16:49:51
问题 We are having an issue with Microsoft.ServiceFabric.Actors.dll file in client. When we created the project using the Service Fabric template, the dll file exists in Service, but not in client, then we tried to reference that dll file from the client project, when we run the client, we got: An unhandled exception of type 'System.BadImageFormatException' occurred in mscorlib.dll Additional information: Could not load file or assembly 'Microsoft.ServiceFabric.Actors, Version=4.0.0.0, Culture

Auto expire reliable dictionary objects in Azure Service Fabric Stateful services

你离开我真会死。 提交于 2019-12-10 16:29:53
问题 Is there any inbuilt way to set an expire time on the reliable dictionary object to expire after a certain time? Trying to see if we can start using reliable collections to store user session objects. Can a stateless service access the dictionary objects created by a stateful service? Sorry if these are lame questions. Trying to understand the concepts. Thanks! 回答1: No, there is no built-in expiration. You can certainly use collections to store user session objects but you'll have to do a

No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue

妖精的绣舞 提交于 2019-12-10 13:41:35
问题 I am currently working on cloud technology. In one of my current projects, I created the service fabric cluster in Azure. Then I tried to connect to the cluster through Windows PowerShell. I got the error No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue. Please tell me how to resolve the above issue. Regards, Pradeep 回答1: After did a lot of research, I find out the solution for my above problem using these below links. Prepare your development