event-processor-host

All instances are not running in Azure App Service

一笑奈何 提交于 2020-04-12 04:04:08
问题 I am using Azure App Service which hosts application that reads data from Event hub using EventProcessorHost . I have allocated 6 instances(Manual Scaling) to run. I checked the Metrics( CPU Time ) in App Service and found only 5 instances are running. I am getting different instances count for different metrics. Data In metrics shows 6 instances while CPU Time metrics shows 5 instances. I am confused. Please suggest. Regards, Amit Agrawal 回答1: the AlwaysOn feature is used to keep your app

Azure Event Processor Host java library - ReceiverRuntimeInformation doesn't have actual stats on a partition

情到浓时终转凉″ 提交于 2020-02-05 04:36:05
问题 I am trying to get the last enqueued sequence number to track the lag between consumer and producer at the consumer end by leveraging ReceiverRuntimeInformation object provided by PartitionContext when a event is received. However, ReceiverRuntimeInformation object doesn't have the updated values related to that particular partition of an Event Hub, it returns 0. Sample code and log output below: public class EventProcessor extends IEventProcessorImpl{ @Override public void onEvents

Unable to set checkpoint in partition

风流意气都作罢 提交于 2020-01-06 04:54:06
问题 I am trying to use this sample (https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-node-get-started-send) but I am not able to read unread data only. One more thing I am getting two different error 1) connect ETIMEDOUT 40.112.242.0:5671 2) lease lost while updating checkpoint In the node js sample, I am not able to set checkpoints. I have tried Azure/azure-sdk-for-js as well. But it is showing the same error listed above. When I have also run .netcore sample then they are working

How to pass parameters to an implementation of IEventProcessor

十年热恋 提交于 2019-12-19 03:17:07
问题 I am busy implementing a EventProcessorHost client for an azure EventBus client. I have a class that implements IEventProcessor as follows: public class MyEventProcessor : IEventProcessor { Stopwatch checkpointStopWatch; //TODO: get provider id from parent class public async Task CloseAsync(PartitionContext context, CloseReason reason) { Debug.WriteLine("Processor Shutting Down. Partition '{0}', Reason: '{1}'.", context.Lease.PartitionId, reason); if (reason == CloseReason.Shutdown) { await