azure-service-fabric

Call a specific instance of a service in Azure Service Fabric

浪子不回头ぞ 提交于 2019-12-08 05:46:12
问题 In our service fabric application we have a service that requires keeping some data in memory during operation to optimise performance, however in some rare cases we need to clear this data. So at some point, a call comes to this service and tells it to empty its cache. The problem arises that we may have several instances of this service, and when you call a service (from another service) in service fabric the call only ends up going to one instance. I need a to call all instances of this

How to get state from service fabric actor without waiting for other methods to complete?

谁说我不能喝 提交于 2019-12-08 03:40:22
问题 I have a service running that is iterating over X actors asking them for their state using the ActorProxy. Its important to me that this service is not blocked waiting for some other long running method in the actor from ect reminder callbacks. Is there some way to call the below simple example GetState() that would allow the method to complete right way without blocking incase of some reminder running. class Actor : IMyActor{ public Task<MyState> GetState() => StateManager.GetAsync("key") }

Dynamic Servicefabric Settings and Overrides

送分小仙女□ 提交于 2019-12-08 03:22:12
问题 Is there a way to not tell the service about the settings at all and just provide them at the application level? I am still unhappy with how servicefabric configuration seems to work. Near as I can tell I have to specify in the service’s settings.xml all of the possible configuration values. Then I can override those in the application’s ApplicationParameters. Per documentation this looks like it holds true for environment variables also. The complication that creates is that our

Service Fabric ETW Logs are always incomplete

一笑奈何 提交于 2019-12-08 00:23:07
问题 We have just started using Service Fabric and the only pain point so far has been ETW with WAD, which always seems to log out with missing data (message, eventmessage.) Our experience so far has that it always works in visual studio (sometimes you have to add the provider name) and that it rarely works when deployed to a cluster in Azure. When it does work in Azure - versioning & updating a function on the event source or adding another will then log out with empty data points. This is the

Removing items from reliable dictionary doesn't actually remove them from memory

こ雲淡風輕ζ 提交于 2019-12-08 00:02:11
问题 I'm having statefull service, and I'm using reliable dictionary as a work item store. Code-wise: var workItemStore = this.StateManager.GetOrAddAsync<IReliableDictionary<TKey, TValue>>(storeName); Debugging internals shows this is a returns a wrapper over DistributedDictionary class, that is using TStore class to do heavy lifting. I have a work item processor (kind of like queue), in which I'm adding values to this store ( workItemStore ) and after I'm done I'm removing them. However when I

Implement Cache in Azure Service Fabric

与世无争的帅哥 提交于 2019-12-07 18:41:15
问题 I am working on a project in which I need a set of data frequently and currently for getting that data I have to make call to 3rd party Service which is taking lot of time.So what I want is to maintain a local cache .The Data is modified very infrequently or is almost constant .What is the best way of implementing this in Azure Service Fabric.I am currently thinking of making the Microservice stateful . Is is the best way to do this?When node goes down it should copy its local cache to other

service fabric client authentication in dotnetcore UserPasswordCredential not working

依然范特西╮ 提交于 2019-12-07 17:50:52
问题 I'm building a small service fabric maintenance in aspnetcore (dotnetcore2.0) application but now doesn't recognize the UserPasswordCredential class. From here it is by design as they say. With that I need to convert my previous code so that I can create a valid FabricClient. How I can convert the GetAccessToken() method? private static FabricClient CreateSecuredFabricClient() { try { var claimsCredentials = new ClaimsCredentials(); claimsCredentials.ServerThumbprints.Add(_sslThumbprint); var

Service Fabric reverse proxy port configurability

守給你的承諾、 提交于 2019-12-07 15:36:32
I'm trying to write an encapsulation to get the uri for a local reverse proxy for service fabric and I'm having a hard time deciding how I want to approach configurability for the port (known as "HttpApplicationGatewayEndpoint" in the service manifest or "reverseProxyEndpointPort" in the arm template). The best way I've thought to do it would be to call "GetClusterManifestAsync" from the fabric client and parse it from there, but I'm also not a fan of that for a few reasons. For one, the call returns a string xml blob, which isn't guarded against changes to the manifest schema. I've also not

TraceEventSession usage in ServiceFabric application raises insufficient resource error

风格不统一 提交于 2019-12-07 10:23:10
问题 I have a State-full service fabric application running in a cluster.. I have about 20 State-full applications running in the same cluster. i have used TraceEventSession for correlation purposes. My cluster is having 10 nodes. When i deploy an application i am able to see the TPL session running active in Performance Monitor. When the number of application deployed in the cluster increased i started receiving the error specified Insufficient system resources exist to complete the requested

Service Fabric Status: Upgrade service unreachable

家住魔仙堡 提交于 2019-12-07 09:12:01
问题 I broke my service fabric cluster some how, now all it says is "Status: Upgrade service unreachable". How do I find out what's wrong? My VMs are up but I can't access the SF Explorer, and the SF blade in the Azure portal contains no nodes! I believe this has something to do with setting up the reverse proxy. I have downloaded and modified the default 5VM template and added in the reverseProxyEndpointPort property, upon deploying the VM's I get this message Starting deployment... New