azure-service-fabric

Azure ServiceFabric samples not logging to ETW

我只是一个虾纸丫 提交于 2019-11-30 19:28:28
I'm running the very first sample of ServiceFabric (Preview version 1.4.87): https://azure.microsoft.com/en-us/documentation/articles/service-fabric-create-your-first-application-in-visual-studio/ , to create a stateful service, and although the sample is running correctly, I'm not seeing the ETW output log information in the diagnostics window. The calls to log are made to ServiceEventSource.Current.ServiceMessage(...) , but when this method (implemented in ServiceEventSource.cs) runs, the call to this.IsEnabled() returns false so no diagnostics are written. If I bypass the IsEnabled() call

Service Fabric with Generic Services

别说谁变了你拦得住时间么 提交于 2019-11-30 17:16:16
问题 I am looking to have a generic type service ie - public interface IFooService<T> { Task<T> Get(int id); } However, service fabric does not allow generic classes or generic methods. I have also tried something like public interface INinjaService : IService, IFooService<SuperNinja> { } but it does not pick up inherited interfaces stating The service type 'Omni.Fabric.Services.NinjaService' does not implement any service interfaces. A service interface is the one that derives from 'Microsoft

“Partition is below target replica or instance count” error after deploying service fabric application to public service fabric cluster

时间秒杀一切 提交于 2019-11-30 17:16:08
I have created a service fabric stateless reliable service, in which i used OWIN to host a web API. When I deployed the application to the Local cluster, it worked fine and i could call the API. When i deployed the application to the public cluster, The deployment completed successfully but when i inspected the cluster using Service fabric explorer, the the replicas seemed to be in "In Build" status for sometime, then it moved to "Warning" State and finally the entire tree in the fabric explorer went red and there are no more replicas present under the partition. And showed the health status

Service Fabric Multiple Communication Listeners

大憨熊 提交于 2019-11-30 16:07:15
Basic Idea - I have a stateless service that implements an Owin communication Listener over http to service WebApi based public clients. I want to add a second listener that will receive requests within the cluster over Rpc using the built in ServiceRemotingListener(). The reason is that I don't want this listener to be public as it implements a non-public management interface for the stateless service. Here is the setup...: protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners() { return new[] { new ServiceInstanceListener(initParams => new

Access Key Vault from local Service Fabric cluster with MSI

≯℡__Kan透↙ 提交于 2019-11-30 15:49:11
问题 I want to access the Key Vault from my Service Fabric application via Managed Service Identity (MSI). I have enabled MSI on the virtual machine scale set in the Azure Portal and given it access to my Key Vault resource. This works like a charm up in the cloud. However, I am having problems with my local develop environment. As far as I understand, I can grant myself access to the Key Vault and run az login in Azure CLI. Alas, this doesn't work when running the application in a local Service

Service Fabric multi-tenant

最后都变了- 提交于 2019-11-30 15:43:59
问题 We are planning to use Azure Service Fabric for a data-oriented multi-tenant application. Typically 100+ customers each with 5 - 100 users. Looking at the documentation, I concluded that the best approach is to use an Application instance for each customer, rather than trying to use Profiles to achieve multi-tenancy. Is this the best way to go ? 回答1: An application instance for each customer is a good way to handle multi-tenant situations on a single cluster, yes. There are Service Fabric

Access Key Vault from local Service Fabric cluster with MSI

怎甘沉沦 提交于 2019-11-30 15:35:15
I want to access the Key Vault from my Service Fabric application via Managed Service Identity (MSI). I have enabled MSI on the virtual machine scale set in the Azure Portal and given it access to my Key Vault resource. This works like a charm up in the cloud. However, I am having problems with my local develop environment. As far as I understand, I can grant myself access to the Key Vault and run az login in Azure CLI. Alas, this doesn't work when running the application in a local Service Fabric cluster. I assume it is because a local cluster runs under the NETWORK SERVICE account. How can I

Design of Application in Azure Service Fabric

拥有回忆 提交于 2019-11-30 15:22:29
问题 I need help how to think about designing our application to fit into the new Azure Service Fabric template. Today we have an application built on Azure Cloud Services. The application is built around DDD and we have separate bounded contexts for different subsystem parts of the application. The bounded contexts are today hosted in one worker role that exposes these subsystems using a single WebAPI. Additionally we have one Web Role hosting the web frontend and one Worker Role processing a

Service Fabric multi-tenant

岁酱吖の 提交于 2019-11-30 15:16:16
We are planning to use Azure Service Fabric for a data-oriented multi-tenant application. Typically 100+ customers each with 5 - 100 users. Looking at the documentation, I concluded that the best approach is to use an Application instance for each customer, rather than trying to use Profiles to achieve multi-tenancy. Is this the best way to go ? An application instance for each customer is a good way to handle multi-tenant situations on a single cluster, yes. There are Service Fabric applications that do this today (Azure DB is a notable one). Here are some things you get with this approach:

Design of Application in Azure Service Fabric

断了今生、忘了曾经 提交于 2019-11-30 14:01:48
I need help how to think about designing our application to fit into the new Azure Service Fabric template. Today we have an application built on Azure Cloud Services. The application is built around DDD and we have separate bounded contexts for different subsystem parts of the application. The bounded contexts are today hosted in one worker role that exposes these subsystems using a single WebAPI. Additionally we have one Web Role hosting the web frontend and one Worker Role processing a background queue. We strive to move to a micro services architecture. The first thing I planned to do was