Giter VIP home page Giter VIP logo

Comments (5)

jainharsh98 avatar jainharsh98 commented on July 30, 2024 1

@Vijay-Nirmal Can you please provide information on the number of instances running for the function app when you observed this behavior?
As the function app scales - each instance should be able to process the assigned partitions. This should lead to parallel processing of the partitions. //@krishna-kariya

from azure-functions-kafka-extension.

kWozniak-tt avatar kWozniak-tt commented on July 30, 2024 1

@jainharsh98 FUNCTIONS_WORKER_PROCESS_COUNT was already set as 10. Even with 10 it had the same behavior.

Worker count does not matter because on host you can have a situation when a buffer of messages is fulfiled by messages only from one partition, and only these messages will be procces and send to workers.

Check this KIP
https://cwiki.apache.org/confluence/display/KAFKA/KIP-41%3A+KafkaConsumer+Max+Records#KIP41:KafkaConsumerMaxRecords-EnsuringFairConsumption
image

Unfortunately, it is not the case that each worker is a separate consumer in Kafka.

from azure-functions-kafka-extension.

Vijay-Nirmal avatar Vijay-Nirmal commented on July 30, 2024

@jainharsh98 Only one instance (reason is below), but we need to process multiple events in parallel we don't care about order. Is it not possible with one instance?

The reason we have only one instance (for now) is because we are using Dedicated Plan (App Service Plan), in that there is no proper metric to perform auto-scaling.

from azure-functions-kafka-extension.

jainharsh98 avatar jainharsh98 commented on July 30, 2024

@Vijay-Nirmal If you are working with a single instance - I would suggest you try increasing the Worker Process Count as described here depending on the number of cores provided by your plan and the load being processed.
For dedicated plan you can have both autoscaling and set the number of instances you want manually - In case you want to use scaling for parallel processing of partitions on separate instances.

from azure-functions-kafka-extension.

Vijay-Nirmal avatar Vijay-Nirmal commented on July 30, 2024

@jainharsh98 FUNCTIONS_WORKER_PROCESS_COUNT was already set as 10. Even with 10 it had the same behavior.

from azure-functions-kafka-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.